File Keys
File keys are unique identifiers for files generated by the API. They follow specific naming conventions based on the type of task and the generation parameters.
Key Components:
- type: original if created via the /generate endpoint, or edited if created via the /edit endpoint.
- number: Generation number, an integer between 1 and 4.
- format: File format for 3D meshes, glb is available by default, others are created with the /download_url endpoint.
Base File Keys:
For each generation, the following 4 file keys are created:
| FILE KEY | DESCRIPTION | FORMAT |
|---|---|---|
| gif_type_number | GIF preview of the generated model. | GIF |
| mesh_image_reference_type_number | Reference image of the generated model. | PNG |
| mesh_type_glb_number | Primary 3D model in GLB format. | GLB |
| texture_type_number | Textures associated with the model. | ZIP |
Example of 'file_key' for a single task generation using the /generate endpoint
The following 4 file keys are expected:
| FILE KEY | DESCRIPTION | FORMAT |
|---|---|---|
| gif_original_1 | GIF preview of the generated model. | GIF |
| mesh_image_reference_original_1 | Reference image of the generated model. | PNG |
| mesh_original_glb_1 | Primary 3D model in GLB format. | GLB |
| texture_original_1 | Textures associated with the model. | ZIP |
Additional File Keys:
When downloading a mesh in a format other than its default format (e.g., downloading mesh_original_glb_1 in OBJ format), a new file key is created following the pattern: mesh_type_format_number.