Image To 3D API is a feature that allows you to integrate Meshy's Image To 3D capabilities into your own application. In this section, you'll find all the information
you need to get started with this API.
The Image To 3D Task model is a work unit that Meshy keeps track of to generate a 3D model from an image input.
The model has the following properties:
Properties
Name
id
Type
string
Description
Unique identifier for the task. While we use a k-sortable UUID for task ids as the
implementation detail, you should not make any assumptions about the format of the id.
Name
model_url
Type
string
Description
Downloadable URL to the textured 3D model file generated by Meshy.
This field is deprecated and will be removed in the upcoming releases, prefer to use model_urls instead.
Name
model_urls
Type
object
Description
Downloadable URL to the textured 3D model file generated by Meshy.
Name
glb
Type
string
Description
Downloadable URL to the GLB file.
Name
fbx
Type
string
Description
Downloadable URL to the FBX file.
Name
usdz
Type
string
Description
Downloadable URL to the USDZ file.
Name
thumbnail_url
Type
string
Description
Downloadable URL to the thumbnail image of the model file.
Name
progress
Type
integer
Description
Progress of the task. If the task is not started yet, this property will be 0. Once the task has succeeded, this will become 100.
Name
started_at
Type
timestamp
Description
Timestamp of when the task was started, in miliseconds. If the task is not started yet, this property will be 0.
A timestamp represents the number of milliseconds elapsed since January 1, 1970 UTC, following
the RFC 3339 standard.
For example, Friday, September 1, 2023 12:00:00 PM GMT is represented as 1693569600000. This applies
to all timestamps in Meshy API.
Name
created_at
Type
timestamp
Description
Timestamp of when the task was created, in miliseconds.
Name
expires_at
Type
timestamp
Description
Timestamp of when the task result expires, in miliseconds.
Name
finished_at
Type
timestamp
Description
Timestamp of when the task was finished, in miliseconds. If the task is not finished yet, this property will be 0.
Name
status
Type
string
Description
Status of the task. Possible values are one of PENDING, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.
Name
task_error
Type
object
Description
Error object that contains the error message if the task failed. The message property should be empty if the task succeeded.
Name
message
Type
string
Description
Detailed error message.
Name
texture_urls
Type
array
Description
An array of texture URL objects that are generated from the task. Normally this only contains one texture URL object. Each texture URL has the following properties:
If the task is created with art_style: "voxel", this property will be an empty list.
Name
base_color
Type
string
Description
Downloadable URL to the base color map image.
Name
metallic
Type
string
Description
Downloadable URL to the metallic map image.
If the task is created with enable_pbr: false, this property will be omitted.
Name
normal
Type
string
Description
Downloadable URL to the normal map image.
If the task is created with enable_pbr: false, this property will be omitted.
Name
roughness
Type
string
Description
Downloadable URL to the roughness map image.
If the task is created with enable_pbr: false, this property will be omitted.
This endpoint allows you to create a new Image To 3D task. Refer to
The Image To 3D Task Model to see which
properties are included with Image To 3D task object.
Parameters
Required attributes
Name
image_url
Type
string
Description
Downloadable URL to the image for Meshy to create the model from. Currently, we support .jpg / .jpeg / .png formats.
Optional attributes
Name
enable_pbr
Type
boolean
Description
Generate PBR Maps (metallic, roughness, normal) in addition to the base color.
Default to true if not specified.
Name
surface_mode
Type
string
Description
Describe your desired surface mode. Default to organic if not specified. Available values:
organic
hard
Returns
The result property of the response contains the task id of the newly created Image To 3D task.
This endpoint allows you to retrieve an Image To 3D task given a valid task id.
Refer to The Image To 3D Task Model to see which
properties are included with Image To 3D task object.
Parameters
Name
id
Type
path
Description
Unique identifier for the Image To 3D task to retrieve.
Returns
The response contains the Image To 3D task object. Check
The Image To 3D Task Model section for details.