v2 migration reference
Look up the differences between API v1 and v2 that affect a migration. For the migration steps, see Migrate to API v2.
The following table shows which sections to read for each thing your code does. Read the rows that match your code, and skip the rest.
| If your code | Read |
|---|---|
| Calls any v1 endpoint | Endpoint paths and Errors |
| Gets, lists, streams, or deletes tasks | Task reads |
| Reads task results, such as model URLs or thumbnails | The task object and Response fields |
| Creates tasks | Parameter handling |
| Creates Image to 3D or Multi-Image to 3D tasks | Image to 3D and Multi-Image to 3D |
| Creates or reads Text to 3D tasks | Text to 3D |
| Creates Retexture tasks | Retexture |
| Creates Remesh tasks | Remesh |
| Creates Convert or Resize tasks | Convert and Resize |
| Downloads STL or 3MF files | Model size |
| Creates Text to Image or Image to Image tasks | Text to Image and Image to Image |
| Calls UV Unwrap, Rigging, Animation, Text to Motion, or a 3D printing endpoint | Other endpoints |
| Receives webhooks | Webhook payloads |
Reads response headers, such as Retry-After | Headers |
Endpoint paths
Every /openapi/v1 endpoint that creates a task has a v2 version at the same path under /openapi/v2/, and so do Balance, Usage, and Animation Library. For example, POST /openapi/v1/image-to-3d becomes POST /openapi/v2/image-to-3d.
Creative Lab and the other v1 endpoints have no v2 version, so those calls stay on v1.
Some endpoints need more detail:
- Text to 3D has only a v2 path,
/openapi/v2/text-to-3d, so its create path doesn't change. - Reads use one set of routes for every task type except Creative Lab. See Task reads.
- Balance and Animation Library return the same bodies as v1.
- Usage,
GET /openapi/v2/usage/tasks, takes the same parameters and returns the same records and errors as v1, wrapped in{"data": [...], "has_more": ...}.
Task reads
On v2, you read every task type through the same four routes, including tasks you created on v1. Creative Lab tasks aren't included. Read them on their v1 routes.
| Operation | v1 | v2 |
|---|---|---|
| Get a task | GET /openapi/v1/<endpoint>/{id} | GET /openapi/v2/tasks/{id} |
| List tasks | GET /openapi/v1/<endpoint> | GET /openapi/v2/tasks?type=<type> |
| Stream a task | GET /openapi/v1/<endpoint>/{id}/stream | GET /openapi/v2/tasks/{id}/stream |
| Delete a task | DELETE /openapi/v1/<endpoint>/{id} | DELETE /openapi/v2/tasks/{id} |
Per-endpoint read routes, such as GET /openapi/v2/image-to-3d/{id}, don't exist on v2. Text to 3D keeps its own routes, which return a different shape. See Text to 3D reads.
The four task routes work like this:
- Get: while a task is
PENDINGorIN_PROGRESS, theRetry-Afterheader says how many seconds to wait before you poll again. - List: the response is
{"data": [...], "has_more": ...}, newest first, with no total count. Withouttype, it includes every task type except Creative Lab. The other parameters are:page_num: from1to255page_size:10by default, and at most100. Values from101to255return at most 100 tasks.sort_by:-created_ator+created_at
- Stream: each
messageevent carries the full task object, and the latest state repeats every 10 seconds. The stream closes when the task finishes, or after about 21 minutes even if it hasn't. If it closes before the task finishes, open it again or get the task. Anerrorevent carries the error object plusstatus_code, as in{"type": ..., "code": ..., "message": ..., "doc_url": ..., "status_code": ...}. - Delete: works as on v1. It returns
200with an empty body, refunds aPENDINGtask, and returns409for anIN_PROGRESStask.
Example: list request and response
curl "https://api.meshy.ai/openapi/v2/tasks?type=image-to-3d&page_size=2" \
-H "Authorization: Bearer ${MESHY_API_KEY}"
{
"data": [
{ "id": "018a210d-8ba4-705c-b111-1f1776f7f578", "type": "image-to-3d", "status": "SUCCEEDED" },
{ "id": "018a210d-7a91-7c2e-9b10-5d6e7f8a9b0c", "type": "image-to-3d", "status": "PENDING" }
],
"has_more": true
}
Each item in data is a full task object, shortened here.
The task object
You get the same task object from all of these:
- The create response
GET /openapi/v2/tasks/{id}- Each list item
- Each stream event
- Each v2 webhook delivery
Apart from two top-level fields described after the following table, only input and output depend on the task type. A webhook delivery sends progress differently. See Webhook payloads.
| Field | Type | Description |
|---|---|---|
id | string | Task ID. A task you created on v1 keeps its ID on v2. |
type | string | Task type. See Task types. |
status | string | PENDING, IN_PROGRESS, SUCCEEDED, FAILED, or CANCELED. |
progress | integer | 0 to 100. 100 after the task succeeds. |
created_at | integer | Creation time in Unix milliseconds. |
started_at, finished_at | integer or null | Start and finish times. |
expires_at | integer or null | When the links in output expire. |
preceding_tasks | integer | Queue position while PENDING. 1 means next. |
consumed_credits | integer or null | Credits charged, net of refunds. |
task_error | object or null | Why the task failed. |
input | object or null | The request you sent. See input. |
output | object or null | The results. null until the task succeeds. |
Every field in this table is always present. A value that doesn't exist yet is null, never 0 or "". Arrays are never null, except dimensions_mm in an intended_print object, so texture_urls is [] when there are no textures.
Meshy can add fields at any time, so ignore fields you don't use.
Six fields have extra rules:
expires_atis 3 days afterfinished_at. It'snulluntil the task succeeds, and alwaysnullfor Text to 3D tasks and Enterprise accounts. v1 also set it on failed tasks. For Text to 3D tasks on other accounts,nulldoesn't mean Meshy keeps the files. Meshy still deletes them 3 days after the task finishes. Download what you need within those 3 days. See Asset retention.preceding_tasksis0after the task leaves the queue, and always0in list results.consumed_creditsis0for failed tasks. It'snullonly when Meshy couldn't read the charge for that response. In that case, read the task again. List items never havenull.task_errorisnullunless the task failed. On a failed task,task_errorhas every field of the error object, andtypeis nevernull, so branch ontype.codeanddoc_urlarenullfor errors that have no public code, for example allservice_unavailableerrors, mostserver_errorerrors, and someinvalid_inputerrors. See the error reference.prompt_ignoredappears on some Auto Split tasks. This happens when an Auto Split request setsmodetoby_partsorby_colorand Meshy can't read any part names from itsprompt. The task splits along the parts Meshy identifies in the model's reference image instead, in the mode you chose. The task then has a top-level"prompt_ignored": true, starting with the create response. On v1, it appeared from the first read. If the model has no reference image, or Meshy finds fewer than two parts in it, the request returns400instead.intended_printappears on every Repair Printability task you create on v2, because v2 checks wall thickness by default. On v1, it appeared only when the request named a printer type or a print size. It's at the top level, as on v1, not underoutput. On v2, it's there starting with the create response, and on v1 from the first read. Itsdimensions_mmisnulluntil Meshy measures the model, and it staysnullif the input isn't a GLB or Meshy couldn't measure it. Every v2 analysis has the same object inoutput.printability.intended_print.
Example: a succeeded Image to 3D task
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "image-to-3d",
"status": "SUCCEEDED",
"progress": 100,
"created_at": 1790640079880,
"started_at": 1790640079892,
"finished_at": 1790640153381,
"expires_at": 1790899353381,
"preceding_tasks": 0,
"consumed_credits": 30,
"task_error": null,
"input": {
"image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
"should_texture": true,
"target_formats": ["glb", "fbx"]
},
"output": {
"model_urls": {
"fbx": "https://assets.meshy.ai/***/output/model.fbx?Expires=***",
"glb": "https://assets.meshy.ai/***/output/model.glb?Expires=***"
},
"thumbnail_url": "https://assets.meshy.ai/***/output/preview.png?Expires=***",
"thumbnail_urls": null,
"texture_urls": [
{
"base_color": "https://assets.meshy.ai/***/output/texture_0.png?Expires=***",
"metallic": null,
"roughness": null,
"normal": null,
"metallic_roughness": null,
"emission": null
}
]
}
}
Example: task_error on a failed task
{
"task_error": {
"type": "timeout",
"code": "timeout",
"message": "Your request took too long to process. Please retry. If this persists, try simplifying your input.",
"doc_url": "https://docs.meshy.ai/en/api/v2/errors#timeout"
}
}
An internal error has null for code and doc_url, for example {"type": "server_error", "code": null, "message": "Generation failed due to resource constraints. Please retry. If this persists, try simplifying your input.", "doc_url": null}. v1 left out those two fields.
Task input
input echoes the create request you sent, limited to the parameters the endpoint accepts. Use it for debugging, not as a request to replay. If your code needs the request later, keep your own copy. input differs from your request in these ways:
inputhas only the parameters the endpoint defines. See Parameter handling.- v2 doesn't fill in defaults or the values Meshy chose. If you omitted
target_formats,inputdoesn't include it, although v2 used["glb"]. v1 tasks also returned some values Meshy chose, such as theremove_lighting,hd_texture, andtexture_resolutionit used. v2 has no field for them. - A parameter in
inputcan still have been ignored, for example one the chosen model can't use. - v2 replaces a data URI with a link to Meshy's stored copy, or with
data:<type>;base64,[omitted ~<size>]when there's no copy. It removes the query string from signed URLs, and the user name and password from any URL. - Tasks created on v1 show v1 parameter names.
inputisnullwhen Meshy has no saved copy of the request. This can happen for a moment right after the create call, and on tasks created before June 2026. The create response always includesinput.
Task types
The type field and the type list filter use these values. The filter type=text-to-3d matches all three Text to 3D types.
type | Endpoint | output fields |
|---|---|---|
image-to-3d, multi-image-to-3d | Image to 3D, Multi-Image to 3D | model_urls, thumbnail_url, thumbnail_urls, texture_urls |
text-to-3d-preview, text-to-3d-refine, text-to-3d | Text to 3D | model_urls, thumbnail_url, alpha_thumbnail_url, texture_urls |
retexture, remesh | Retexture, Remesh | model_urls, thumbnail_url, texture_urls |
convert, resize | Convert, Resize | model_urls, texture_urls |
uv-unwrap | UV Unwrap | model_urls, thumbnail_url |
rig | Rigging | rigged_character_glb_url, rigged_character_fbx_url, basic_animations |
rig-check | Rigging Check | riggable, animation_type, animatable, reasons |
animate | Animation | animation_glb_url, animation_fbx_url, processed_usdz_url, processed_armature_fbx_url, processed_animation_fps_fbx_url |
text-to-motion | Text to Motion | motion_url, motion_format, duration_ms, mode |
text-to-image, image-to-image | Text to Image, Image to Image | image_urls |
print-multi-color | Multi-Color Print | model_urls, with a 3mf key |
print-repair | Repair Printability | model_urls, thumbnail_url, print_repair_report |
print-split | Auto Split | model_urls, thumbnail_url, part_count |
relief | Relief | model_urls, texture_urls, depth_map_url, thumbnail_url |
print-analyze | Analyze Printability | printability |
The output fields follow these rules:
model_urlshas one key for each format the task produced, such asglb,obj, orblend. A texturedobjcomes with anmtl.- On Image to 3D and Multi-Image to 3D tasks sent with
save_pre_remeshed_model,model_urlscan also havepre_remeshed_glb, the model before remeshing, when the model was remeshed. It isn't a format, so skip it if your code reads the keys as formats. - Each
texture_urlsitem always has these maps, withnullfor a map that wasn't produced:base_colormetallicroughnessnormalmetallic_roughnessemission
thumbnail_urlsisnullunless you requestedmulti_view_thumbnails. With it,thumbnail_urlshas these previews:frontrightbackleft
alpha_thumbnail_urlis on Text to 3D tasks only, and isnullunless you requestedalpha_thumbnail.printabilityhas the same fields as on v1, except_version, which v2 drops.metricsandevaluated_atare always present, andnulluntil Meshy computes them.
Response fields
Use this table to update code that reads a task. Fields that aren't listed keep their names and values. The exception is the values Meshy chose that v1 returned next to your request. See Task input.
| v1 field | v2 field | Change |
|---|---|---|
model_urls.<format> | output.model_urls.<format> | Moved |
model_url | output.model_urls.glb | Moved |
thumbnail_url | output.thumbnail_url | Moved, and null instead of "" |
thumbnail_urls | output.thumbnail_urls | Moved, and present on the task types that list it |
alpha_thumbnail_url | output.alpha_thumbnail_url on Text to 3D tasks | Moved on Text to 3D. Removed on other task types, where thumbnail_url is already a PNG with a transparent background. |
texture_urls | output.texture_urls | Moved, and [] instead of null |
image_urls | output.image_urls | Moved |
printability, part_count, print_repair_report | The same names under output | Moved. part_count and print_repair_report are always present, and null when not set, where v1 left them out. |
printability._version | None | Removed |
result.<field> (Rigging, Animation, Text to Motion) | output.<field> | Moved, and null instead of "" |
result.<field> (Rigging Check) | output.<field> | Moved. output is null until the task succeeds, where v1 left result out. |
Request parameters, such as prompt and ai_model | input.<parameter> | Moved, and only if you sent them |
text_style_prompt, image_style_url (Retexture) | input.texture_prompt, input.texture_image_url | Renamed. texture_image_url is the URL you sent, while v1 returned a link to Meshy's copy. |
art_style, object_prompt, style_prompt, negative_prompt | None | Removed, with no replacement |
started_at, finished_at, expires_at | The same names | null until set, instead of 0. expires_at has more null cases, see The task object. |
preceding_tasks | preceding_tasks | Always present |
Three differences depend on the task:
alpha_thumbnail_urlandthumbnail_urlsarenullunless you requested them. A texture map that wasn't produced isnullinstead of missing.- Convert, Resize, and Multi-Color Print tasks have no
thumbnail_urlon v2, where v1 sent"". Only Text to 3D tasks havealpha_thumbnail_url. UV Unwrap, Repair Printability, and Multi-Color Print tasks have notexture_urls. - Tasks created on v1 keep v1 parameter names in
input, for exampletext_style_prompt.
Request parameters
Parameter handling
v2 handles request parameters like this:
- A create request with a parameter the endpoint doesn't define returns
400with the codeparameter_unknown. This includes a misspelled name, a removed v1 parameter, and a name in the wrong case, such asenablePbr. v1 ignores a parameter it doesn't define. So does Text to 3D when the request hasmode. messagenames each unknown parameter. For a removed v1 parameter, it also names the replacement. For a near miss, it names the parameter you probably meant. Some removed parameters changed results on v1, so send the replacement listed for your endpoint.- A request with both
input_task_idandmodel_urlreturns400with the codeparameters_conflict. v1 usesinput_task_id, so send only that one. - v2 ignores
remove_lightingon Image to 3D, Multi-Image to 3D, and Retexture, because the texture models thattexture_modeltakes don't use it. It also ignoresimage_enhancementwhenai_modelismeshy-6-lite, and on Image to 3D with Smart Topology models. v1 returns400for some of these requests. - With
"should_texture": false, v2 ignorestexture_modeland the other texture parameters. v1 returns400for"enable_pbr": truewith"should_texture": false.
All other validation still applies. For example, a texture_resolution the texture model doesn't support returns 400, and so does a parameter with the wrong type. Sending "image_url": 123 returns image_url must be a string.
Texture model
On v2, a request that makes a textured model names its texture model in texture_model. Meshy doesn't pick one for you:
- Image to 3D, Multi-Image to 3D, and Text to 3D one-call requests need
texture_modelunlessshould_textureisfalse. A textured request without it returns400with the codeparameter_missing. - Retexture needs
texture_modelin every request. It replacesai_model.
Text to 3D requests with mode ignore texture_model. For the texture models that each ai_model takes on each endpoint, and the options each texture model supports, see Texture models.
To keep the textures your v1 requests made, send the texture model that v1 used. The following table shows it for each v1 request.
| v1 request | Send on v2 |
|---|---|
ai_model of meshy-7.1, latest, meshy-t2.5, or meshy-t2, without texture_model | "texture_model": "meshy-7" |
"ai_model": "meshy-6-lite" without texture_model (Image to 3D) | "texture_model": "meshy-6-lite" |
"ai_model": "meshy-6-lite" without texture_model (Multi-Image to 3D) | "texture_model": "meshy-7". Multi-Image to 3D takes meshy-7 or meshy-n1. |
"ai_model": "meshy-6" without texture_model, or "texture_model": "meshy-6" | "texture_model": "meshy-7", the closest match. v2 has no Meshy 6 texture model. |
texture_model of meshy-7, meshy-n1, or meshy-6-lite | The same texture_model |
Retexture without ai_model, or with latest or meshy-standard-latest | "texture_model": "meshy-7" |
Retexture with ai_model of meshy-7, meshy-n1, or meshy-6-lite | texture_model with the same value |
Retexture with "ai_model": "meshy-6" | "texture_model": "meshy-7", the closest match |
The texture model doesn't change the price. A textured task costs the mesh plus the texture at its resolution, as on v1.
Image to 3D and Multi-Image to 3D
To get the same results as on v1, change these parts of your request. Rows marked Image to 3D apply to that endpoint only.
| v1 request | On v2 | Send on v2 |
|---|---|---|
target_formats omitted | Returns GLB only | "target_formats": ["glb", "obj", "fbx", "stl", "usdz"], or the formats you use |
texture_model omitted on a textured request | 400 | The texture model v1 used. See Texture model. |
"hd_texture": true | 400 | "texture_resolution": "4k" |
"is_a_t_pose": true | 400 | "pose_mode": "t-pose" |
"ultra_mode": true | 400 | "geometry_resolution": "2k" |
texture_prompt with texture_image_url | 400 | texture_prompt only |
"model_type": "smart-topology" without ai_model (Image to 3D) | 400 | "ai_model": "meshy-smart-topology-latest" |
"model_type": "smart-topology" with ai_model (Image to 3D) | 400 | Nothing. Your results don't change. |
symmetry_mode | 400 | Nothing. Your results don't change. |
surface_mode (Image to 3D) | 400 | Nothing. Your results don't change. |
alpha_thumbnail | 400 | Nothing. thumbnail_url is already a PNG with a transparent background. |
A few details about these replacements:
"texture_resolution": "4k"needs a texture model that makes 4K textures, as"hd_texture": truedoes on v1. On v2, that's"texture_model": "meshy-7", with anyai_model.is_a_t_poseasked for a T-pose."pose_mode": "t-pose"also asks for one, but with a different image model and prompt, so the mesh can differ from the v1 result.- When you sent both texture inputs, v1 used
texture_promptand ignoredtexture_image_url. - On Image to 3D,
ai_modelalone selects the model. A v1"model_type": "smart-topology"request withoutai_modelruns Meshy T2.5. On v2,meshy-smart-topology-latestruns it too. It follows the newest Smart Topology model, so its results can change. For results that stay the same, sendmeshy-t2.5. - Both endpoints accept
"ai_model": "meshy-standard-latest", which works likelatest.latestfollows the standard model Meshy points it to on v1 and v2, so its results can change. For results that stay the same, send a specific model, such asmeshy-6. - STL and 3MF files follow the model size rules.
Example: the same Image to 3D request on v1 and v2
Image to 3D request
# v1: Smart Topology through model_type, 4K textures through hd_texture, all formats by default
curl https://api.meshy.ai/openapi/v1/image-to-3d \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
"model_type": "smart-topology",
"ai_model": "meshy-t2",
"should_texture": true,
"hd_texture": true,
"symmetry_mode": "auto"
}'
Example: the same Multi-Image to 3D request on v1 and v2
Multi-Image to 3D request
# v1: texture_prompt wins over texture_image_url, 4K through hd_texture
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"image_urls": [
"https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
"https://docs.meshy.ai/images/api/quick-start/source-photo.webp"
],
"ai_model": "meshy-7.1",
"should_texture": true,
"hd_texture": true,
"texture_prompt": "weathered bronze",
"texture_image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp"
}'
Retexture
To get the same results as on v1, change these parts of your request.
| v1 request | On v2 | Send on v2 |
|---|---|---|
text_style_prompt, image_style_url | 400 | texture_prompt, texture_image_url |
ai_model | Renamed | texture_model. See Texture model. |
ai_model omitted | 400 | "texture_model": "meshy-7" |
enable_original_uv omitted | Keeps usable UVs | "uv_mode": "regenerate" |
"enable_original_uv": false | 400 | "uv_mode": "regenerate" |
"enable_original_uv": true | 400 | "uv_mode": "preserve" |
target_formats omitted | Returns GLB only | The formats you use |
"hd_texture": true | 400 | "texture_resolution": "4k" |
text_style_prompt with image_style_url | 400 | texture_image_url only |
art_style | 400 | Nothing. v2 has no art styles. With cartoon, v1 skipped Meshy's prompt rewrite, which v2 can apply to a short prompt. |
name | 400 | Nothing. Your results don't change. |
alpha_thumbnail | 400 | Nothing. thumbnail_url is already a PNG with a transparent background. |
These replacements need more detail:
uv_modedecides the UVs. A model with no UVs gets new ones with every value. The values work like this:auto, the default, keeps the model's UVs if the box around all its UV coordinates covers at least 5% of the UV square. Otherwise, it generates new ones.regeneratealways generates new ones, like v1.preservekeeps them. A model whose UV box covers less than 5% fails withmodel_insufficient_uv.
- With
input_task_id, keeping the UVs also keeps the mesh's size and position. With new UVs, or amodel_urlupload, Meshy re-centers the mesh and keeps its size. See Model size. - When you sent both texture inputs, v1 used
image_style_urland ignoredtext_style_prompt. - STL and 3MF files follow the model size rules.
Example: the same Retexture request on v1 and v2
Retexture request
# v1: style prompt name, default UV behavior regenerates UVs
curl https://api.meshy.ai/openapi/v1/retexture \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"model_url": "https://cdn.meshy.ai/model/example_model_2.glb",
"text_style_prompt": "weathered bronze with green patina",
"ai_model": "meshy-7",
"enable_pbr": true,
"hd_texture": true
}'
Remesh
v2 Remesh changes topology and polycount, and returns the formats you list in target_formats, as v1 Remesh does. Without target_formats, it returns GLB. Quad topology stays quad in OBJ and FBX files. Remesh accepts these parameters:
input_task_idormodel_urltopologytarget_polycountdecimation_modetarget_formats
Remesh doesn't take alpha_thumbnail, because thumbnail_url is already a PNG with a transparent background. A request with it returns 400.
The result keeps the model's size, including the size of a model_url upload. A model_url upload comes back as one centered mesh, so it doesn't keep its position. Remesh drops rigs, animations, and morph targets. STL and 3MF files follow the model size rules, so their size can differ from v1 Remesh files.
Remove these parameters from the request:
resize_heightresize_longest_sideorigin_atauto_sizeconvert_format_only
If any of them is present, even as null or false, the request returns 400.
To get a v1 result that used these parameters, run a chain of tasks. Pass each task's id as the next task's input_task_id, and wait for each task to succeed before you create the next one:
- For Remesh with a new size, run Remesh, then Resize, then Convert if you need other formats.
- For Remesh with
origin_atand no size, run the same chain and send onlyorigin_atto Resize. - For
"convert_format_only": true, run one Convert task. v1 didn't remesh in this mode either.
Like a v1 Remesh with a new size, the chain keeps quad topology in OBJ, FBX, and Blend files. A textured OBJ comes with its mtl file.
Resize sets the size with resize_height, resize_longest_side, or auto_size, and puts the origin at the bottom unless you send origin_at, as v1 Remesh did when it resized. Sent alone, origin_at moves only the origin and keeps the size, as on v1.
Resize and Convert tasks have no thumbnail_url. If you read the thumbnail from your v1 Remesh result, read it from the Remesh task. When you ran only Convert, read it from the input task. Their texture_urls lists the input task's texture maps.
Meshy charges each task separately. A Remesh with formats costs 5 credits on v1 and v2. A v1 Remesh with formats and a resize or an origin move cost 5 credits. The v2 chain costs 7: Remesh 5, Resize 1, and Convert 1. A convert_format_only request becomes one Convert task for 1 credit instead of 5.
Example: a v1 Remesh request as a v2 chain
Remesh request
# v1: remesh, resize, and convert in one task
curl https://api.meshy.ai/openapi/v1/remesh \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"input_task_id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"topology": "triangle",
"target_polycount": 10000,
"resize_height": 1.8,
"origin_at": "bottom",
"target_formats": ["glb", "fbx"]
}'
Convert and Resize
The requests work as on v1, and Convert still requires target_formats. v2 Resize also takes origin_at without a size: it moves only the origin and keeps the size. Tasks that take a v2 Resize task as input_task_id use the resized model, including an OBJ, FBX, or STL file resized from model_url. On v2, Convert keeps the size of a model_url upload in every format, and its STL and 3MF files follow the model size rules.
Model size
On v2, a model's size depends on where it comes from:
- Image to 3D and Multi-Image to 3D scale their STL and 3MF files down to at most 150 mm on the longest side, keeping the proportions. Other formats keep the model's size. Tasks that start from a model Meshy generated do the same, for example a Remesh or Convert of an Image to 3D or Text to 3D task, and so does a model scaled with
auto_size. - Text to 3D, Resize, Repair Printability, and Relief don't apply the cap to their own files.
- A model you upload with
model_urlkeeps its own size in every format on Convert, Remesh, Retexture, and Multi-Color Print. - A model you resize with
resize_heightorresize_longest_sidekeeps the size you set, in every format.
To print a generated model at another size, run Resize, then Convert to stl or 3mf.
An upload comes back as one centered mesh without rigs or animations. Remesh also drops morph targets. If Meshy can't read an upload's size, it returns the model at a standard size, with STL and 3MF files at most 150 mm.
A scaled-down STL file, and every 3MF file, has its origin at the bottom. Auto Split always applies the cap.
Text to Image and Image to Image
Replace remove_background with background. A request with remove_background returns 400. By default, v2 returns PNG images with a transparent background, for single and multi-view images. Background removal keeps only the main subject, so a generated scene or environment is removed too. If background removal fails, the task still succeeds with the original image. To keep the background of a single image, send "background": "opaque". Multi-view images always have a transparent background, and "background": "opaque" with generate_multi_view: true returns 400. Credits don't change.
Example: the same Text to Image request on v1 and v2
Text to Image request
# v1: background removal is opt-in
curl https://api.meshy.ai/openapi/v1/text-to-image \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"ai_model": "nano-banana",
"prompt": "a brass robot, full body",
"remove_background": true
}'
Other endpoints
These endpoints keep their v1 requests, except for the removed parameters listed after this list. Their responses change to the v2 task object:
- UV Unwrap
- Rigging
- Rigging Check
- Animation
- Text to Motion
- Multi-Color Print
- Repair Printability
- Analyze Printability
- Auto Split
- Relief
Some of them have extra details:
- For Rigging, Rigging Check, Animation, and Text to Motion, the fields v1 nested under
resultmove tooutput. See Response fields. - Rigging defaults
skeleton_templatetomixamo, and some models return422. See Rigging. For the bones and units, see Rigging skeleton in Changes in v2. - Rigging's
height_metershas no default on v2, and defaults to1.7for a biped rig on v1. To keep the v1 size, send"height_meters": 1.7. - Rigging and Animation name each animation clip as a download from the Meshy web app does:
WalkingandRunningfor the basic animations, and the animation'skeyfor a library animation, such asBig_Wave_Hello. A Text to Motion clip takes its task'sid, such as_018a210d_1c22_7e0f_9d3a_4a5b6c7d8e9f. On v1, it's namedretarget_clip. See Animation. - Rigging doesn't take
texture_image_url, and a request with it returns400. Meshy uses the textures embedded in themodel_urlfile, or the input task's textures. To rig a textured character from amodel_url, embed its textures in the GLB. - Repair Printability doesn't take
alpha_thumbnail, becausethumbnail_urlis already a PNG with a transparent background. A request with it returns400. - Multi-Color Print keeps the size of a
model_urlupload, and its 3MF file follows the model size rules. - Relief's
target_formatsdefaults to["glb"]on v2, and to["glb", "stl"]on v1. To keep the STL file, send"target_formats": ["glb", "stl"]. - Analyze Printability is still free. If Meshy already analyzed the
input_task_idmodel at the same printer type and print size, the create response can already beSUCCEEDEDwithoutput.printabilityfilled in. Checkstatusbefore you poll. - Repair Printability and Analyze Printability check wall thickness by default, for an FDM print 150 mm tall. To judge the walls at your own print, send
printer_typeand a size. For the default size of each file format, see Repair Printability.
Example: a Rigging result on v1 and v2
Rigging result
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "rig",
"status": "SUCCEEDED",
"result": {
"rigged_character_fbx_url": "https://assets.meshy.ai/***/output/Character_output.fbx?Expires=***",
"rigged_character_glb_url": "https://assets.meshy.ai/***/output/Character_output.glb?Expires=***",
"basic_animations": {
"walking_glb_url": "https://assets.meshy.ai/***/output/Animation_Walking_withSkin.glb?Expires=***",
"running_glb_url": "https://assets.meshy.ai/***/output/Animation_Running_withSkin.glb?Expires=***"
}
}
}
Both examples are shortened to the fields that change.
Text to 3D
Text to 3D has no v1 version, and its create requests don't change. Its route already runs on v2, so these changes to its responses and errors apply to your current Text to 3D code:
- The create response is the full task object, with the
LocationandRetry-Afterheaders. It still includesresultwith the task ID, so existing code keeps working. - Read Text to 3D tasks through
/openapi/v2/tasks, like every other task type. See Text to 3D reads. - Most error responses change to the v2 error object. See Errors.
- A refine or one-call request with both
texture_promptandtexture_image_urlreturns400. To keep your current results, send onlytexture_prompt.
One-call requests
mode, which splits the work into a preview and a refine, is deprecated and stops working on March 15, 2027.
To make a model in one request, omit mode. A one-call request returns a textured model unless you send "should_texture": false, and needs texture_model for the texture. The task has the type text-to-3d, and costs the same as a preview plus a refine. One-call requests follow these rules:
- If you also send
mode, Text to 3D ignoresshould_textureandtexture_model, and runs the two-step flow. "should_texture": falsecreates the mesh only, and costs the same as a preview. With it, Meshy ignorestexture_modeland the other texture parameters.- Every
ai_modeltakestexture_modelofmeshy-7,meshy-n1, ormeshy-6-lite. Withmeshy-6ormeshy-6-lite,meshy-n1needstexture_image_url. See Texture models. ai_modelcan be one of these values:latestmeshy-standard-latestmeshy-7.1meshy-6meshy-6-lite- A Smart Topology model, such as
meshy-t2
meshy-7returns400, so sendmeshy-7.1instead.geometry_resolution2kand4kneedmeshy-7.1, orlatestwhen it resolves to Meshy 7.1.- A one-call request with
ultra_modereturns400, so sendgeometry_resolutioninstead. - A one-call request with a parameter Text to 3D doesn't define returns
400with the codeparameter_unknown. See Parameter handling. countabove 1 returns400.- If your refine sent
ai_model, send its texture model astexture_model. Formeshy-7,meshy-7.1, orlatest, that'smeshy-7. Formeshy-n1ormeshy-6-lite, send the same value. Formeshy-6, sendmeshy-7, the closest match. - You can't refine a one-call task. To check the mesh before you texture it, send
"should_texture": false. Then texture the finished task with Retexture, using itsidasinput_task_id.
Example: a one-call request
cURL
# One call: omit mode, and name the texture model
curl https://api.meshy.ai/openapi/v2/text-to-3d \
-X POST \
-H "Authorization: Bearer ${MESHY_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a monster mask",
"ai_model": "meshy-7.1",
"texture_model": "meshy-7",
"enable_pbr": true,
"texture_prompt": "weathered bronze with green patina",
"target_formats": ["glb", "fbx"]
}'
Text to 3D reads
GET /openapi/v2/tasks/{id} returns Text to 3D tasks in the same shape as every other task type. If your code reads them from /openapi/v2/text-to-3d/{id}, its list, its stream, or v1 webhooks, these fields change when you move to the task routes. The Text to 3D routes and v1 webhooks also include input and output, next to the top-level fields.
| Field | Text to 3D routes | Task routes |
|---|---|---|
model_urls, thumbnail_url, texture_urls, and other results | Top level | Under output |
prompt, mode, texture_prompt, and other request fields | Top level | Under input, and only the ones you sent |
texture_image_url | A link to Meshy's copy | input.texture_image_url, the URL you sent |
started_at, finished_at before they're set | 0 | null |
preceding_tasks | Only while the task is queued, never in list items | Always present |
consumed_credits when Meshy couldn't read the charge | Missing | null |
input holds only the request you sent, so values Meshy filled in, such as model_type, are on the Text to 3D routes only. A refine's input has a prompt only if the refine request sent one, while the Text to 3D routes show its preview's prompt.
Unchanged behavior
Text to 3D keeps these behaviors:
model_typestill works, but you can leave it out.ai_modelalone picks the model, someshy-t2.5andmeshy-t2run Smart Topology without it.- Without
target_formats, Text to 3D returns GLB, OBJ, FBX, STL, and USDZ. It returns3mfonly when you request it. It doesn't acceptgltf, and it has no print size cap. - Most parameters a model can't use still return
400. For example,remove_lightingon a refine withmeshy-6-litereturnsremove_lighting is only supported for meshy-6. Meshy 7, Meshy 7.1, and Smart Topology texturing ignoreremove_lightinginstead. - Requests with
modeignore these parameters, and one-call requests return400for them. Remove them from your requests:negative_promptart_stylesymmetry_modetexture_richness
- Text to 3D responses don't include these fields:
negative_promptart_styletexture_richnessvideo_url
- Call
https://api.meshy.ai/openapi/v2/text-to-3d. The path without/openapiis deprecated. See the changelog.
Webhook payloads
Each webhook has a payload version, v1 or v2, that you set on the Webhooks page. The version doesn't depend on which API version created the task. Your existing webhooks stay on v1 until you switch them. A webhook you add on the Webhooks page starts on v2 unless you pick v1.
The two versions differ like this:
- A v2 delivery has the header
Meshy-Webhook-Version: v2and the same task object asGET /openapi/v2/tasks/{id}, exceptprogress. A delivery sendsprogressas50while the task isIN_PROGRESS,100when it succeeds, and0when it fails or is canceled. - A v1 delivery has the header
Meshy-Webhook-Version: v1and the v1 body for its task type. Text to 3D deliveries on a v1 webhook also haveinputandoutput, so tell the versions apart by the header, not the body.
Creative Lab is the one exception. Its deliveries keep their current body and the v1 header, even on a v2 webhook.
v1 and v2 webhooks receive the same tasks, whichever API version created them. Each webhook receives the tasks that run as its Meshy user, and a team API key runs as the team owner. See Webhooks.
A test from Send test on the Webhooks page has the same body and headers as a real delivery of that task, plus Meshy-Webhook-Test: true. Real deliveries never have this header. A test doesn't count as a delivery, and it doesn't change the webhook.
To test a webhook and switch it to v2, see Move your webhooks to v2.
Headers
v2 adds the Location header, sends Retry-After on the create response too, and keeps the rest.
| Header | v1 | v2 |
|---|---|---|
Location | Not sent | /openapi/v2/tasks/{id} on a 202 create response, or /openapi/v2/text-to-3d/{id} for Text to 3D |
Retry-After | On a 429 for too many requests per second, and on reads of a PENDING or IN_PROGRESS task | The same, and on the 202 create response as a hint for your first poll |
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset | Sent | Sent |
v1 and v2 share the same rate limits. For Text to 3D, Location points to the Text to 3D routes.
Errors
An error response is the same object as a failed task's task_error, in the form {"type": "...", "code": "...", "message": "...", "doc_url": ...}. HTTP status codes don't change, and message is still there, but many messages are more specific. For example, a v2 message names a parameter the way you sent it, or says why a download failed or why Meshy can't use a task ID. If your code matches message text, branch on code instead. See Request error codes.
Text to 3D errors use this object too. The exception is a request Meshy rejects before it reads the API key, for example because the key is missing or invalid. That response keeps the {"message": "..."} body.
v1 message | v2 code and message |
|---|---|
Invalid values: TargetPolycount must be 100 or greater | parameter_out_of_range: target_polycount must be between 100 and 300000 |
Invalid values: FPS must be one of [24 25 30 60] | parameter_invalid_value: post_process.fps must be one of: 24, 25, 30, 60 |
Invalid values: InputTaskID is a required field; ModelURL is a required field | parameter_missing: Provide either input_task_id or model_url |
failed to validate and download the input image, Fail to download image | input_download_failed: Could not download image_url: the host example.invalid, or a URL it redirects to, could not be found |
Task not found, for an input_task_id | input_task_not_found: input_task_id does not match any of your tasks |
Input task is not succeeded, status is FAILED | input_task_not_ready: input_task_id names a task that failed; use a task that succeeded |
These requests worked on v1 and return 400 on v2:
parameter_missingwithtexture_model is required unless should_texture is false. Send texture_model (meshy-7, meshy-n1 or meshy-6-lite), or should_texture: false for an untextured mesh.: a request for a textured model has notexture_model. On Retexture, the message istexture_model is required. Send meshy-7, meshy-n1 or meshy-6-lite.See Texture model.parameter_unknown: the request has a parameter the endpoint doesn't define, such as a removed v1 parameter or a misspelled name.messagenames the parameter and what to send instead. See Parameter handling.parameters_conflictwithSend either "input_task_id" or "model_url", not both.: the request has both model inputs. Send onlyinput_task_id, the one v1 used.parameters_conflictwithtexture_prompt and texture_image_url are mutually exclusive: the request has both texture inputs, on Image to 3D, Multi-Image to 3D, Retexture, or a Text to 3D refine or one-call request. Send only one. See Request parameters.parameter_unknownwithUnknown parameter "<parameter>": it is a v1 parameter. Use /openapi/v2/convert or /openapi/v2/resize instead.: a Remesh request has a resize parameter orconvert_format_only. See Remesh.
Three 404 responses are worth telling apart:
route_not_foundwithNoMatchingRoute: Please double check the path and method: the route doesn't exist on v2, for exampleGET /openapi/v2/image-to-3d/{id}. Use/openapi/v2/tasks/{id}.task_not_foundwithTask not found, orTask "<id>" not foundon a delete: the task ID doesn't exist, belongs to another account, was deleted, or was removed after its retention period. See Asset retention. Creative Lab task IDs also return this.input_task_not_foundwithinput_task_id does not match any of your tasks, or the same text forpreview_task_idorrig_task_id: a create request names a task that doesn't exist, belongs to another account, or was deleted.