Text to 3D API

This is an optimized API that converts text prompts to 3D models.

How to use:

Step 1: Submit a generation job

POST /generate
Content-Type: application/json
{
    "prompt": "A futuristic building"
}
            

Response:

{
    "success": true,
    "message": "Job submitted successfully",
    "job_id": "123e4567-e89b-12d3-a456-426614174000",
    "status_url": "/status/123e4567-e89b-12d3-a456-426614174000"
}
            

Step 2: Check job status

GET /status/123e4567-e89b-12d3-a456-426614174000
            

Response (while processing):

{
    "success": null,
    "message": "Job is still processing",
    "job_id": "123e4567-e89b-12d3-a456-426614174000"
}
            

Response (when complete):

{
    "success": true,
    "message": "3D model generated successfully",
    "glb_url": "/download/abc123.glb",
    "obj_url": "/download/abc123.obj",
    "ply_url": "/download/abc123.ply"
}
            

Step 3: Download the files

Use the provided URLs to download the GLB, OBJ, and PLY files.

Health Check:

GET /health

Provides information about the service status and resource usage.