This is an optimized API that converts text prompts to 3D models.
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"
}
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"
}
Use the provided URLs to download the GLB, OBJ, and PLY files.
GET /health
Provides information about the service status and resource usage.