Migrate to API v2
Use one response shape, one set of task routes, and one error format for every task type. Every v2 endpoint is under https://api.meshy.ai/openapi/v2/. This guide shows what changes and how to move your code.
Start with Changes in v2, which compares v1 and v2 for each change. Then move your code with your AI coding agent, as in Migrate with an AI agent, or by hand, as in Migrate step by step.
Creative Lab endpoints aren't part of v2, so your Creative Lab calls stay on v1. If you get Creative Lab results through webhooks, see the Creative Lab note in Move your webhooks to v2.
API v1 is deprecated. Plan your move around these dates:
- January 15, 2027: API v1 gets no new features after this date.
- March 15, 2027: every v1 endpoint that has a v2 version stops working.
Changes in v2
Pick a change to compare v1 and v2. The examples are shortened. For the details of each change, see the v2 migration reference.
On v2, you read every task type except Creative Lab through /openapi/v2/tasks. Routes such as GET /openapi/v2/image-to-3d/{id} don't exist.
GET /openapi/v1/image-to-3d/{id}
GET /openapi/v1/image-to-3d
GET /openapi/v1/image-to-3d/{id}/stream
DELETE /openapi/v1/image-to-3d/{id}
GET /openapi/v2/tasks/{id}
GET /openapi/v2/tasks?type=image-to-3d
GET /openapi/v2/tasks/{id}/stream
DELETE /openapi/v2/tasks/{id}
v2 puts the results in output and echoes your request in input. For example, read task.output.model_urls.glb instead of task.model_urls.glb.
Results such as these move into output:
model_urlstexture_urlsthumbnail_urlimage_urls
Fields such as these stay at the top level:
statusprogressconsumed_creditstask_error
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "image-to-3d",
"status": "SUCCEEDED",
"model_urls": {
"glb": "https://assets.meshy.ai/***/model.glb"
},
"thumbnail_url": "https://assets.meshy.ai/***/preview.png"
}
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "image-to-3d",
"status": "SUCCEEDED",
"input": {
"image_url": "https://example.com/photo.png"
},
"output": {
"model_urls": {
"glb": "https://assets.meshy.ai/***/model.glb"
},
"thumbnail_url": "https://assets.meshy.ai/***/preview.png"
}
}
A v2 create call returns the full task object instead of only its ID. Read the task ID from id.
Text to 3D already ran on /openapi/v2/text-to-3d, so for backward compatibility its create response also keeps result, which repeats the task ID. New code should read id.
{
"result": "018a210d-8ba4-705c-b111-1f1776f7f578"
}
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "image-to-3d",
"status": "PENDING",
"progress": 0,
"output": null
}
A v2 list returns an object instead of an array. Read the tasks from data. has_more is true when there's another page.
[
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"status": "SUCCEEDED"
}
]
{
"data": [
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"status": "SUCCEEDED"
}
],
"has_more": true
}
On v2, a value that doesn't exist yet is null instead of 0 or "". That includes URLs for results a task didn't produce, so check a URL for null before you download it.
{
"status": "PENDING",
"started_at": 0,
"finished_at": 0,
"thumbnail_url": ""
}
{
"status": "PENDING",
"started_at": null,
"finished_at": null,
"task_error": null,
"output": null
}
An error response is the same object as a failed task's task_error, with a code to branch on. 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. If your code matches message text, branch on code instead.
{
"message": "Invalid values: FPS must be one of [24 25 30 60]"
}
{
"type": "invalid_input",
"code": "parameter_invalid_value",
"message": "post_process.fps must be one of: 24, 25, 30, 60",
"doc_url": null
}
On v2, a create request with a parameter the endpoint doesn't define returns 400 with the code parameter_unknown. This includes a misspelled name, a name in the wrong case, and a v1 parameter that v2 removed. v1 ignores a parameter it doesn't define. So does Text to 3D when the request has mode.
{
"image_url": "https://example.com/photo.png",
"texure_prompt": "weathered bronze"
}
Creates the task. v1 ignores the misspelled name.
{
"type": "invalid_input",
"code": "parameter_unknown",
"message": "Unknown parameter \"texure_prompt\". Did you mean \"texture_prompt\"?",
"doc_url": null
}
The same request returns 400 and creates no task.
For a removed v1 parameter, message names what to send instead, for example Unknown parameter "hd_texture": it is a v1 parameter. Send "texture_resolution": "4k" instead.
Remove these v1 parameters from your v2 requests. The table shows what to send instead to keep your v1 results.
| Removed parameter | Endpoints | Send on v2 |
|---|---|---|
hd_texture | Image to 3D, Multi-Image to 3D, Retexture | "texture_resolution": "4k" |
ultra_mode | Image to 3D, Multi-Image to 3D, Text to 3D one-call | "geometry_resolution": "2k" |
is_a_t_pose | Image to 3D, Multi-Image to 3D | "pose_mode": "t-pose", the closest match |
model_type | Image to 3D | "ai_model": "meshy-smart-topology-latest" if v1 sent "model_type": "smart-topology" without ai_model. Otherwise nothing. |
text_style_prompt | Retexture | texture_prompt |
image_style_url | Retexture | texture_image_url |
enable_original_uv | Retexture | "uv_mode": "regenerate" for the v1 default, "uv_mode": "preserve" for true |
art_style | Retexture | Nothing. v2 has no art styles. |
alpha_thumbnail | Image to 3D, Multi-Image to 3D, Retexture, Remesh, Repair Printability | Nothing. thumbnail_url is already a transparent PNG. |
remove_background | Text to Image, Image to Image | "background": "opaque" if v1 left remove_background out or set it to false. Nothing if v1 sent remove_background: true, because v2 removes the background by default. |
symmetry_mode | Image to 3D, Multi-Image to 3D | Nothing. Your results don't change. |
surface_mode | Image to 3D | Nothing. Your results don't change. |
name | Retexture | Nothing. Your results don't change. |
texture_image_url | Rigging | Nothing. Meshy uses the textures embedded in the model_url file, or the input task's textures. If your GLB has no textures, embed them in the file. |
On v2, a request that makes a textured model names its texture model in texture_model. Image to 3D, Multi-Image to 3D, and Text to 3D one-call requests return 400 without it, unless they send "should_texture": false. On Retexture, texture_model replaces ai_model, and every request sends it.
{
"image_url": "https://example.com/photo.png",
"ai_model": "meshy-7.1"
}
Meshy picks the texture model for ai_model.
{
"image_url": "https://example.com/photo.png",
"ai_model": "meshy-7.1",
"texture_model": "meshy-7"
}
texture_model names the texture model.
To keep the textures your v1 requests made, send the texture model that v1 used for your ai_model:
v1 ai_model | Send texture_model |
|---|---|
meshy-7.1, latest, meshy-t2.5, or meshy-t2 | meshy-7 |
meshy-6-lite | meshy-6-lite on Image to 3D, and meshy-7 on Multi-Image to 3D |
meshy-6 | meshy-7, the closest match |
Retexture without ai_model | meshy-7 |
If your v1 request already sent texture_model, or Retexture's ai_model of meshy-7, meshy-n1, or meshy-6-lite, send the same value as texture_model. For the texture models each endpoint takes, see Texture model in the reference.
Meshy is retiring the Meshy 6 texture model, so v2 doesn't offer it. We recommend these pairs:
- High fidelity:
"ai_model": "meshy-7.1"(orlatest) with"texture_model": "meshy-7" - Low poly: the Smart Topology model
"ai_model": "meshy-t2.5"with"texture_model": "meshy-n1"
To choose a pair for your project, see Models.
v1 accepted these requests, and v2 rejects them with 400. To get the result v1 gave you, change the request as follows.
- Both
texture_promptandtexture_image_urlin one request:- On Image to 3D, Multi-Image to 3D, or a Text to 3D refine or one-call request, send only
texture_prompt, the one v1 used. - On Retexture, send only
texture_image_url. v1 usedimage_style_urlwhen you sent both style inputs.
- On Image to 3D, Multi-Image to 3D, or a Text to 3D refine or one-call request, send only
- Both
input_task_idandmodel_urlin one request. Send onlyinput_task_id, the one v1 used. - Remesh:
On Image to 3D, Multi-Image to 3D, and Retexture, a v2 request without target_formats returns only a GLB file. v1 returned GLB, OBJ, FBX, STL, and USDZ. To keep getting all five, list them in target_formats.
{
"image_url": "https://example.com/photo.png"
}
Returns GLB, OBJ, FBX, STL, and USDZ.
{
"image_url": "https://example.com/photo.png",
"target_formats": ["glb", "obj", "fbx", "stl", "usdz"]
}
Returns the formats you list. Without target_formats, it returns only GLB.
On v1, Image to 3D picks a model with two fields: model_type for the kind of model and ai_model for the version. On v2, ai_model alone picks the model, and a request with model_type returns 400.
{
"image_url": "https://example.com/photo.png",
"model_type": "smart-topology",
"ai_model": "meshy-t2"
}
Two fields pick Smart Topology.
{
"image_url": "https://example.com/photo.png",
"ai_model": "meshy-t2"
}
ai_model alone picks the same model.
v2 also adds two ai_model values that follow the newest model in a family. The v1 endpoints don't accept them.
| To get | Send ai_model | Endpoints |
|---|---|---|
| The newest standard model | meshy-standard-latest, which works like latest | Image to 3D, Multi-Image to 3D, Text to 3D |
| The newest Smart Topology model | meshy-smart-topology-latest | Image to 3D, Text to 3D |
A v1 Image to 3D request with "model_type": "smart-topology" and no ai_model runs Meshy T2.5. To get the same model on v2, replace model_type with "ai_model": "meshy-smart-topology-latest".
Like latest, these values move to each new model Meshy releases, so your results can change. For results you can rely on, send a specific model, such as meshy-6 or meshy-t2.5.
Unlike Image to 3D, Text to 3D on v2 still reads model_type: "model_type": "smart-topology" without ai_model runs meshy-t2.5. You can leave model_type out, because a Smart Topology ai_model such as meshy-t2.5 picks Smart Topology on its own.
On v2, Text to Image and Image to Image return PNG images with a transparent background by default. Background removal keeps only the main subject, so a generated scene or environment is removed too. To keep the background of a single image, send "background": "opaque". Multi-view images always have a transparent background.
{
"ai_model": "nano-banana",
"prompt": "a brass robot, full body"
}
Returns the image with its background.

{
"ai_model": "nano-banana",
"prompt": "a brass robot, full body"
}
Returns a transparent PNG.

The images are two results of the same request.
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, so they fit most printer beds. 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.
- Text to 3D files don't change.
- A model you upload with
model_urlkeeps its own size in every format. - 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 tostlor3mf.
v2 Repair Printability and Analyze Printability check for walls too thin to print by default, so the models you print come out sturdier. Your request doesn't change.
v1's default Rigging files have 24 bones in centimeters, and the GLB has a root scale of 0.01. v2's mixamo and meshyrig files without include_fingers have 28 bones in meters. The 4 extra bones are tips at the hands and toes, and they carry no skin weight. Deleting them by name leaves 24 bones, and nothing in the mesh or the animation moves.
The following table shows the tip bones of these two skeletons.
skeleton_template | Tip bones |
|---|---|
mixamo, the v2 default | mixamorig:LeftHandMiddle4, mixamorig:RightHandMiddle4, mixamorig:LeftToe_End, and mixamorig:RightToe_End |
meshyrig, which keeps v1's bone names | LeftHand_End, RightHand_End, LeftToe_end, and RightToe_end |
Each webhook has its own payload version, which you set on the Webhooks page. Switching your API calls to v2 doesn't change it. Every delivery has the header Meshy-Webhook-Version, which is v2 for the v2 task object and v1 for the v1 body. To switch, see Move your webhooks to v2.
POST /your-webhook HTTP/1.1
Content-Type: application/json
Meshy-Webhook-Version: v1
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"status": "SUCCEEDED",
"model_urls": {
"glb": "https://assets.meshy.ai/***/model.glb"
}
}
POST /your-webhook HTTP/1.1
Content-Type: application/json
Meshy-Webhook-Version: v2
{
"id": "018a210d-8ba4-705c-b111-1f1776f7f578",
"type": "image-to-3d",
"status": "SUCCEEDED",
"output": {
"model_urls": {
"glb": "https://assets.meshy.ai/***/model.glb"
}
}
}
Text to 3D already runs on /openapi/v2/text-to-3d, so its create requests don't change, and its create response still has result. A refine that sends both texture_prompt and texture_image_url returns 400.
Move your Text to 3D reads to the task routes with your other reads, and read the results from output. A webhook set to v2 also delivers Text to 3D tasks in this shape. On the task routes, input holds only the parameters you sent, so a refine task has no prompt unless the refine request sent one.
Text to 3D already runs on v2, so both flows work. We recommend one call: omit mode and send texture_model to create the mesh and the texture in one task. The two-step preview and refine flow is deprecated and keeps working for existing integrations.
Two steps (deprecated)
POST /openapi/v2/text-to-3d
{"mode": "preview",
"prompt": "a monster mask"}
POST /openapi/v2/text-to-3d
{"mode": "refine",
"preview_task_id": "<preview id>"}
One call (recommended)
POST /openapi/v2/text-to-3d
{"prompt": "a monster mask",
"texture_model": "meshy-7"}
Migrate with an AI agent
The Meshy migration skill gives your coding agent the rules for this migration and every v1 to v2 mapping. It works with Claude Code, Codex, Cursor, GitHub Copilot, and other agents that can read files in your project.
If you're an AI agent helping with this migration:
- Ask your user before you download the skill from
https://docs.meshy.ai/downloads/meshy-v2-migration.zip. If they agree, unzip it in the project's root folder, and followmeshy-v2-migration/SKILL.mdbefore you change any code. - Without the skill, show your plan and wait for approval before you change any code. Keep the v1 code behind a switch that defaults to v1, and don't call the Meshy API.
-
Download the skill, and unzip it in your project's root folder.
Download skillThe skill is a set of Markdown files and one read-only Python script that makes no network calls. Don't commit its
meshy-v2-migrationfolder. -
Open your coding agent in the project, on a new branch.
-
Paste this prompt.
Use the skill in meshy-v2-migration/SKILL.md to migrate this project's Meshy API calls from v1 to v2. Follow its phases: show me the inventory and the plan first, and wait for my approval before you change anything.
The skill tells the agent to:
- Find your Meshy calls, show you a plan, and wait for your approval before it edits code.
- Add the v2 calls next to your v1 code, behind a switch that starts on v1.
Cloud agents, such as Codex cloud and the Copilot coding agent, stop after the plan. To approve it, reply in the same task or pull request.
Some steps need you, because the agent can't change your Meshy account settings or deploy your code. When it finishes, it gives you these steps:
- Review and merge the changes, then deploy them. Your app keeps calling v1.
- If you receive webhooks, switch each webhook to v2 on the Webhooks page. With a team API key, only the team owner can see and switch the team's webhooks.
- Try v2 with a few real tasks, then set the switch to v2.
- Delete the
meshy-v2-migrationfolder. - Later, remove the v1 code and the switch.
Migrate step by step
Before you change any code, we strongly recommend trying v2 with your API key to get familiar with it. Create a task with POST /openapi/v2/<endpoint>, and read it with GET /openapi/v2/tasks/{id}.
Build the v2 calls next to your v1 code, behind one switch that starts on v1. Then test v2 with real tasks, switch all your traffic at once, and switch back if anything looks wrong.
Add a switch
Add the v2 calls next to your v1 code, and choose between them with one switch, such as a MESHY_API_VERSION environment variable set to v1. Your app keeps calling v1 until you set the switch to v2. Leave Creative Lab calls out of the switch, because they stay on v1.
Add the switch
import os
# Which Meshy API version to call. Set MESHY_API_VERSION=v2 to switch.
API_VERSION = os.environ.get("MESHY_API_VERSION", "v1")
Add v2 task reads
For each v1 call that gets, lists, streams, or deletes a task, add a v2 version next to it. This includes Text to 3D reads on /openapi/v2/text-to-3d/{id}. The v2 versions use the v2 task routes and read the results from output.
The following code has a polling function and an example that uses the switch from Add a switch to pick v1 or v2. The polling function works for every task type except Creative Lab.
Poll a task on v2
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"}
# Waits for a task to finish on v2. Works for every task type except Creative Lab.
def wait_for_task(task_id):
while True:
# v1: one route per endpoint, such as /openapi/v1/image-to-3d/{task_id}
response = requests.get(f"https://api.meshy.ai/openapi/v2/tasks/{task_id}", headers=headers)
response.raise_for_status()
task = response.json()
if task["status"] in ("SUCCEEDED", "FAILED", "CANCELED"):
return task
time.sleep(int(response.headers.get("Retry-After", 5)))
# Example: read a task's result, with v1 and v2 side by side.
if API_VERSION == "v2":
task = wait_for_task(task_id)
if task["status"] == "SUCCEEDED":
glb_url = task["output"]["model_urls"]["glb"] # v1: task["model_urls"]["glb"]
elif task["status"] == "FAILED":
print(task["task_error"]["message"])
else:
... # your current v1 code
Response fields lists every field that moved. If you save Meshy responses and read them later, make your code handle both the v1 and v2 shapes.
Add v2 create calls
For each create call, add a v2 version next to the v1 one. It calls /openapi/v2/ instead of /openapi/v1/, and reads the task ID from id. Add v2 versions of your balance, usage, and animation library calls the same way.
In each v2 create call, change the parameters listed for that endpoint in Request parameters. Most requests need a change from at least one of these tabs in Changes in v2:
- GLB-only default
- Unknown parameters
- Texture model
- Other breaking changes
For example, this v2 Image to 3D request keeps the 4K textures a v1 request got with "hd_texture": true, names the texture model v1 used, and asks for the formats it needs. The comments show what each line replaces.
Create an Image to 3D task on v2
# Example: create an Image to 3D task, with v1 and v2 side by side.
if API_VERSION == "v2":
response = requests.post(
"https://api.meshy.ai/openapi/v2/image-to-3d", # v1: /openapi/v1/image-to-3d
headers=headers,
json={
"image_url": "https://docs.meshy.ai/images/api/quick-start/source-photo.webp",
"should_texture": True,
"texture_model": "meshy-7", # v1: picked from ai_model (latest, so Meshy 7)
"texture_resolution": "4k", # v1: "hd_texture": True
"target_formats": ["glb", "fbx"], # v1 returned five formats by default; on v2, list the ones you need
},
)
response.raise_for_status()
task_id = response.json()["id"] # v1: response.json()["result"]
else:
... # your current v1 call
Move your webhooks to v2
If you use webhooks, follow this step. If not, skip to Move your API calls to v2.
Your webhook stays on v1 until you switch it at the end of this step. Every delivery names its version in the Meshy-Webhook-Version header. Deliveries for tasks created with a team API key go to the team owner's webhooks, so the team owner signs in to test and switch them.
Update your webhook code
Make the code behind your webhook URL accept both versions by branching on the header:
v2: the body is the v2 task object.v1: the body is the v1 body you handle today.
Branch on the webhook version
@app.post("/meshy-webhook")
def meshy_webhook():
task = request.get_json()
if request.headers.get("Meshy-Webhook-Version") == "v2":
handle_v2(task) # results under task["output"]
else:
handle_v1(task) # your current code
return "", 200
Creative Lab deliveries keep their current body and the v1 header, even on a v2 webhook.
Test your v2 webhook code
- Deploy your updated code. Its v1 branch is the code you run today.
- On the Webhooks page, edit your webhook and set Payload version to v2. Don't save yet.
- Under Test before saving, pick a task that succeeded and click Send test.
- Check that your server answered without an error and that your code took the v2 branch.


A test is a real delivery of that task with one extra header, Meshy-Webhook-Test: true. When it's there, skip paid follow-up work, such as a Retexture you start after an Image to 3D task.
Send test needs a URL that's reachable from the internet. To test code on your computer, forward a public URL to it as in Forwarding Webhooks for Local Testing.
Switch your webhook to v2
When your tests pass, click Save with Payload version set to v2. Your webhook then gets v2 deliveries for every task except Creative Lab, while your create calls stay on v1 until you move your API calls to v2.
- To switch back, set Payload version to v1.
- Switching doesn't resend past deliveries. Read any you missed with
GET /openapi/v2/tasks/{id}.
For the payload details, see Webhook payloads.
Move your API calls to v2
When your v2 code passes your tests, and your webhooks are on v2 if you use them, move your traffic:
-
Try v2 with a few real tasks in a test environment. Set the switch to
v2there, and run each of your flows. Compare the results with what you get on v1, including the files and formats, the fields your code reads, and the model size. These tasks use credits. -
Set the switch to
v2in production. Your app then calls v2 for every Meshy API except Creative Lab. To go back, set the switch tov1.MESHY_API_VERSION=v2 -
When v2 has run well for a while, remove the v1 code and the switch. Your migration is done.