Endpoints - API Documentation

Endpoints

Check API availability

/health

Checks whether the API is available.

Sample response
{
  "status": "OK"
}

Generate from prompt or images

/generate

Credit Usage: Each successful call to this endpoint results in the consumption of 3 credits per number_of_generations.

This endpoint initiates the generation of a 3D model based on a textual prompt or on some images. Each generation task is linked to a task_token, which uniquely identifies the generation process and all related assets. This includes the resulting 3D model, any supplementary resources like external textures (when not embedded), and alternate file formats of the model.

PARAMETERTYPEDESCRIPTION
prompt *stringText describing the 3D scene.
images * **arrayList containing between 1 and 4 image URLs.
number_of_generationsintegerSpecifies how many models to generate (default: 1).
Must be between 1 and 4 if using prompt, or exactly 1 if using images.

* The fields prompt and images are mutually exclusive. Only one of them must be provided.

** Image URLs must meet the following requirements:
- Protocol: URLs must start with https://.
- Size limit: Maximum file size is 2 MB per image.
- Supported formats: png, jpeg, jpg, webp, gif and svg.

Important: The task_token is returned only once and is required to retrieve generation results. While it's not an authentication token, it's strongly recommended to save it, especially in case of script failure or future access needs.

Sample request
{
  "prompt": "A futuristic 3D building"
}
Sample response (success returns a 202 status code)
{
  "task_token": "abc123-task-token"
}

Get task informations

/task/task_token

PARAMETERTYPEDESCRIPTION
task_tokenstringThe identifier of the task.

Retrieves the details of a previously submitted task. To check when a task is complete, we recommend polling the task status at regular intervals (e.g., every 30 seconds).

Sample response
{
  "task_token": "b6a151ea273749bba00cae57db6ba2f9",
  "task_status": "files_generation",
  "number_of_generations": 1,
  "created_at": "2025-06-16T10:39:58",
  "updated_at": "2025-06-16T08:40:00",
  "message": "files are generating...",
  "progress": 55,
  "generated_files_count": 0.5,
  "generated_files": [
    "mesh_original_glb_1",
    "texture_original_1"
  ]
}

Get a download URL

/download_url

Provides a download URL for a previously generated file.

PARAMETERTYPEDESCRIPTIONDEFAULT VALUE
task_tokenstringTask identifier of the resource.-
file_keystringPath or name of the file to download.-
requested_file_formatstringTarget format, for 3D meshes.glb

Valid formats (for 3D meshes only) are: glb, fbx, stl, obj, ply, usd, abc, dae and usdz

The URL provided to download the requested file is valid for one hour only. This URL is not part of the API endpoints, and no Authorization header should be included in the request.

If the requested resource includes multiple files (such as textures), they will be bundled into a single ZIP archive for download.

Sample request
{
  "task_token": "abc123-task-token",
  "file_key": "mesh_original_glb_1",
  "requested_file_format": "glb"
}
Sample response
{
  "file_download_url": "https://my.s3.amazonaws.com/download/file.glb?option=value"
}

Edit an existing model

/edit

Credit Usage: Each successful call to this endpoint results in the consumption of 3 credits.

This endpoint allows you to edit an existing 3D model by providing additional instructions via a prompt. The parent_task_token must correspond to a completed task. The result of this endpoint is a new task, identified by a new task_token.

PARAMETERTYPEDESCRIPTION
edit_promptstringText describing the modifications to apply to the existing model.
parent_task_tokenstringThe task_token of the completed task whose model you want to edit.
Sample request
{
  "edit_prompt": "Add a black hat on the top",
  "parent_task_token": "abc123-task-token"
}
Sample response
{
  "task_token": "new-abc123-task-token"
}