> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/v2/text-to-3d, part of the Meshy API v2 docs.
>
> - v2 docs index: https://docs.meshy.ai/api/v2/llms.txt
> - All v2 pages in one file: https://docs.meshy.ai/api/v2/llms-full.txt
> - OpenAPI spec for v2: https://docs.meshy.ai/api/v2/openapi.yaml

---

# Text to 3D API

Turn a text prompt into a 3D model in one call.

> **Note:** Text to 3D already runs on `/openapi/v2/text-to-3d`, so the path stays the same. Requests with `mode` (preview and refine) stop working on March 15, 2027, so make new models in one call. Two rules are new. Sending both `texture_prompt` and `texture_image_url` returns `400`, and a textured one-call request, which omits `mode`, needs `texture_model`. Read its tasks through [Tasks](https://docs.meshy.ai/api/v2/tasks.md) like every other task, and read the results from `output`. A webhook set to v2 delivers Text to 3D tasks in that shape. See [what changed for Text to 3D](/api/migrate-to-v2/reference#text-to-3d).

---

## POST /openapi/v2/text-to-3d -- Create a Text to 3D task

Creates a Text to 3D task and returns the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object). The task runs in the background. To read its result, see [Get the result](#get-the-result). For how long a task usually takes, see [Processing times](/api/task-lifecycle#processing-times).

### Parameters

  - `should_texture` · *boolean* · default: `true`

  Whether to texture the model. `true` returns a textured model, and `false` returns the mesh only. With `false`, Meshy ignores `texture_model` and the other texture parameters. To check the mesh before you texture it, send `false`, then texture the finished task with [Retexture](https://docs.meshy.ai/api/v2/retexture.md), using its `id` as `input_task_id`. If you also send `mode`, Meshy ignores this setting.

  - `mode` · *string* · **deprecated**

  The step of a two-step task, for integrations that already use preview and refine. Send `should_texture` instead.

  Available values:
  * `preview`: makes an untextured mesh
  * `refine`: textures the mesh of a preview task

  - `prompt` · *string* · **required**

  Required for one-call and preview tasks. Text that describes the model to generate, up to 800 characters. Longer text returns `400`. A refine uses its preview's prompt instead.

  - `preview_task_id` · *string* · **required** · **deprecated**

  Send `should_texture: true` instead, or texture an existing task with [Retexture](https://docs.meshy.ai/api/v2/retexture.md). Required for refine tasks. The ID of the preview task to texture. The task must be one of your preview tasks and have the status `SUCCEEDED`.

  - `ai_model` · *string* · default: `latest`

  The model that generates the 3D model.

  Standard models:
  * `latest`: Meshy 7.1
  * `meshy-7.1`
  * `meshy-6`
  * `meshy-6-lite`
  * `meshy-standard-latest`: same as `latest`

  Smart Topology models build a clean triangle mesh at the face count you set with `target_polycount`:
  * `meshy-t2.5`: sharper detail for game assets
  * `meshy-t2`
  * `meshy-smart-topology-latest`: Meshy T2.5, the newest Smart Topology model. Results can change when a new one comes out. For results that stay the same, send `meshy-t2.5`.

  See [Models](https://docs.meshy.ai/api/v2/models.md#choose-by-project) for which model fits your project, such as a game character or a 3D print.

  On a refine, `ai_model` picks the texture model, because the mesh comes from the preview. Leave it out to texture with the model that matches the preview. For the values a refine takes, see [Legacy preview and refine](#preview-and-refine).

  - `model_type` · *string* · **deprecated**

  Leave it out. `ai_model` picks the model.

  - `geometry_resolution` · *string* · default: `standard`

  How much geometry detail to generate. Applies only to one-call and preview tasks. A refine with this parameter returns `400`.

  Available values:
  * `standard`
  * `2k`: adds the Ultra pass
  * `4k`: adds the Ultra pass, then a super-resolution pass

  `2k` and `4k` need `meshy-7.1` or `latest`. With other models, they return `400`.

  - `should_remesh` · *boolean* · default: `true (meshy-6-lite), false (other models)`

  Whether to remesh the model after generation. `false` keeps the mesh as generated. Applies only to one-call and preview tasks. Smart Topology models ignore this setting.

**Only when `should_remesh` is set:**
  - `topology` · *string* · default: `triangle`

  The face type of the remeshed model, `triangle` or `quad`. Smart Topology models make triangles only, so `quad` with a Smart Topology model returns `400`. With `texture_model: "meshy-n1"`, `quad` returns `400`.

  - `decimation_mode` · *integer*

  Adaptive face count, by level. When you set it, Meshy ignores `target_polycount`.

  Available values:
  * `1`: ultra
  * `2`: high
  * `3`: medium
  * `4`: low

  - `target_polycount` · *integer*

  The number of faces to aim for. Applies only to one-call and preview tasks. The range and default depend on how the mesh is built:

  | Mesh | Range | Default |
  | --- | --- | --- |
  | Remeshed | `100` to `300000` | `30000` |
  | `meshy-t2.5` or `meshy-smart-topology-latest` | `100` to `30000` | `15000` |
  | `meshy-t2` | `100` to `15000` | `4000` |

  A value outside the range returns `400`.

  For a low-poly game asset, use a Smart Topology model instead of remeshing a standard model. See [Models](https://docs.meshy.ai/api/v2/models.md#choose-by-project).

  - `pose_mode` · *string*

  The pose for a character model, `a-pose` or `t-pose`. Leave it out for no pose. Applies only to one-call and preview tasks.

**Only when `should_texture` is set:**
  - `texture_model` · *string* · **required**

  Required unless `should_texture` is `false`. The model that textures a one-call task. Every `ai_model` takes each of these values.

  Available values:
  * `meshy-7`: Meshy 7, with PBR maps, a text prompt, and textures up to 8K
  * `meshy-n1`: Meshy N1, a 2K base color texture from reference images only
  * `meshy-6-lite`: Meshy 6 Lite, a 2K texture

  With `meshy-6` or `meshy-6-lite`, `meshy-n1` needs `texture_image_url`, because those models make no reference image from the prompt. A textured request without `texture_model` returns `400`, and so does an option the texture model doesn't support. With `mode`, Meshy ignores `texture_model`. See [Texture models](https://docs.meshy.ai/api/v2/image-to-3d.md#texture-models).

  - `texture_prompt` · *string*

  Text that guides the texture, up to 800 characters. Longer text returns `400`. Send `texture_prompt` or `texture_image_url`, not both. Sending both returns `400`. With `meshy-n1`, sending it returns `400`.

  - `texture_image_url` · *string*

  Image that guides the texture, as a public URL or a data URI (`data:image/png;base64,...`). With `meshy-n1`, Meshy textures from this image as the front view. A one-call task with `texture_model: "meshy-n1"` and an `ai_model` of `meshy-6` or `meshy-6-lite` needs it.

  The image must be a JPG, JPEG, PNG, or WebP file of at most 20 MB, at least 32 pixels on each side, and at most 178,956,970 pixels (width × height).

  - `enable_pbr` · *boolean* · default: `false`

  Whether to also generate metallic, roughness, and normal maps. With `meshy-n1`, `true` returns `400`.

  - `texture_resolution` · *string* · default: `2k`

  Size of the base color texture. A preview with this parameter returns `400`.

  Available values:
  * `2k`
  * `4k`
  * `8k`

  `4k` and `8k` return `400` with `meshy-n1` or `meshy-6-lite`, whether `texture_model` picks it on a one-call task or `ai_model` picks it on a refine.

  - `remove_lighting` · *boolean* · default: `true`

  Whether to remove highlights and shadows from the base color texture. Only `meshy-6` uses this setting. Meshy 7 and Smart Topology models ignore it. With `meshy-6-lite`, sending it returns `400`.

  - `target_formats` · *string[]* · default: `["glb", "obj", "fbx", "stl", "usdz"]`

  The file formats to generate.

  Available values:
  * `glb`
  * `obj`
  * `fbx`
  * `stl`
  * `usdz`
  * `3mf`

  Text to 3D doesn't apply the 150 mm cap that other v2 endpoints use for print files. STL files keep the model's size, and Meshy scales a `3mf` file to 75 mm tall.

  - `alpha_thumbnail` · *boolean* · default: `false`

  Whether to also render a preview with a transparent background, returned in `output.alpha_thumbnail_url`.

  - `thumbnail_resolution` · *integer* · default: `512`

  The width and height, in pixels, of the task's preview images: `512` or `1024`. It applies to `output.thumbnail_url` and to any optional preview you request. Any other value returns `400`.

  - `moderation` · *boolean* · default: `false`

  Whether to screen these inputs for harmful content before generating:
  * `prompt`
  * `texture_prompt`
  * `texture_image_url`

  - `auto_size` · *boolean* · default: `false`

  Whether to estimate the object's real-world height and scale the model to it.

**Only when `auto_size` is set:**
  - `origin_at` · *string* · default: `bottom`

  Where to place the model's origin, `bottom` or `center`.

### Returns

`202 Accepted` with the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object). The task starts as `PENDING`, with your request in `input` and `output` set to `null`. The response also has `result`, which repeats the `id` for clients written before v2.

These headers help you follow the task:
* `Retry-After`: how many seconds to wait before you first read the task
* `Location`: `/openapi/v2/text-to-3d/{id}`, a [legacy route](#legacy-routes). Read the task through [Tasks](https://docs.meshy.ai/api/v2/tasks.md#get-a-task) instead.

### Failure modes

  - `400 - Bad Request`

  The request can't run. For example:
  * `prompt` is missing
  * A textured one-call task didn't send `texture_model`
  * A one-call task sent `texture_model: "meshy-n1"` with `meshy-6` or `meshy-6-lite` and no `texture_image_url`
  * The texture model doesn't support an option in the request, for example `enable_pbr: true` with `meshy-n1`
  * `preview_task_id` doesn't match one of your preview tasks with the status `SUCCEEDED`. The message says whether the task doesn't exist, isn't finished, or isn't a preview.
  * Both `texture_prompt` and `texture_image_url` were sent
  * `texture_resolution` was sent with a preview
  * `geometry_resolution` was sent with a refine, or with a model that can't run it
  * A one-call task asked for `meshy-7` (send `meshy-7.1` instead)
  * A one-call task sent a parameter Text to 3D doesn't define, such as a misspelled name. With `mode`, Meshy ignores it.

  The error message says which problem it found. See [Errors](https://docs.meshy.ai/api/v2/errors.md#request-errors).

  - `401 - Unauthorized`

  The API key is missing or invalid. Check the `Authorization` header.

  - `402 - Payment Required`

  One of these applies:
  * The account doesn't have enough credits.
  * The account reached a credit limit.
  * The account is on the free plan.

  Check your credits and plan, then retry.

  - `403 - Forbidden`

  Content moderation blocked the prompt or an input image. Change the input, then retry.

  - `429 - Too Many Requests`

  One of these limits was reached:
  * You sent too many requests. Wait the number of seconds in `Retry-After`, then retry.
  * Too many of your tasks are queued or running. Wait for some to finish, then retry.
  * On an unlimited plan with no credits left, you reached the number of tasks that can run without credits. Wait for a task to finish, or add credits.

**cURL**

```bash
# One call: a textured model in one task
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 small wooden treasure chest with iron bands",
    "should_texture": true,
    "texture_model": "meshy-7",
    "target_formats": ["glb", "fbx"]
  }'
```

```javascript
// One call: a textured model in one task
const response = await fetch("https://api.meshy.ai/openapi/v2/text-to-3d", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MESHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    prompt: "a small wooden treasure chest with iron bands",
    should_texture: true,
    texture_model: "meshy-7",
    target_formats: ["glb", "fbx"],
  }),
});
const task = await response.json();
console.log(task.id, task.status);
```

```python
import os
import requests

# One call: a textured model in one task
response = requests.post(
    "https://api.meshy.ai/openapi/v2/text-to-3d",
    headers={"Authorization": f"Bearer {os.environ['MESHY_API_KEY']}"},
    json={
        "prompt": "a small wooden treasure chest with iron bands",
        "should_texture": True,
        "texture_model": "meshy-7",
        "target_formats": ["glb", "fbx"],
    },
)
response.raise_for_status()
task = response.json()
print(task["id"], task["status"])
```

**Response**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "text-to-3d",
  "status": "PENDING",
  "progress": 0,
  "created_at": 1790640079880,
  "started_at": null,
  "finished_at": null,
  "expires_at": null,
  "preceding_tasks": 3,
  "consumed_credits": 30,
  "task_error": null,
  "input": {
    "prompt": "a small wooden treasure chest with iron bands",
    "should_texture": true,
    "texture_model": "meshy-7",
    "target_formats": ["glb", "fbx"]
  },
  "output": null,
  "result": "018a210d-8ba4-705c-b111-1f1776f7f578"
}
```

---

## Get the result
Read Text to 3D tasks the same way as every other v2 task, through the [Tasks](https://docs.meshy.ai/api/v2/tasks.md) routes. To list Text to 3D tasks, filter by `type`:

* `text-to-3d`: all three kinds of Text to 3D task
* `text-to-3d-preview`: preview tasks only
* `text-to-3d-refine`: refine tasks only

One-call tasks have no filter of their own.

| To | Call |
| --- | --- |
| Get one task | [`GET /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#get-a-task) |
| Wait for updates | [`GET /openapi/v2/tasks/{id}/stream`](https://docs.meshy.ai/api/v2/tasks.md#stream-a-task) or a [webhook](https://docs.meshy.ai/api/v2/webhooks.md) |
| List your tasks | [`GET /openapi/v2/tasks?type=text-to-3d`](https://docs.meshy.ai/api/v2/tasks.md#list-tasks) |
| Delete a task | [`DELETE /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#delete-a-task) |

---

## Text to 3D output
When the task succeeds, `output` holds these fields. The rest of the [task object](https://docs.meshy.ai/api/v2/tasks.md#the-task-object) is the same for every task type.

For Text to 3D, `expires_at` is always `null`. Meshy still deletes the task 3 days after it finishes, so download the files within that window. Enterprise accounts keep their tasks. See [Asset retention](https://docs.meshy.ai/api/v2/asset-retention.md).

  - `model_urls` · *object*

  Signed URLs to the generated files, keyed by format. There is one URL for each format in `target_formats`, or for each default format if you left it out. A textured `obj` also gets an `mtl` key, with the URL of its material file.

  - `thumbnail_url` · *string*

  Signed URL to a preview image of the model.

  - `alpha_thumbnail_url` · *string | null*

  Signed URL to the preview with a transparent background. `null` unless you sent `alpha_thumbnail: true`.

  - `texture_urls` · *array*

  One item per texture set, with a signed URL for each of these maps:
  * `base_color`
  * `metallic`
  * `roughness`
  * `normal`
  * `metallic_roughness`
  * `emission`

  A map that wasn't produced is `null`. The array is empty for a preview and for an untextured one-call task.

**Succeeded one-call task**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "text-to-3d",
  "status": "SUCCEEDED",
  "progress": 100,
  "created_at": 1790640079880,
  "started_at": 1790640079894,
  "finished_at": 1790640197052,
  "expires_at": null,
  "preceding_tasks": 0,
  "consumed_credits": 30,
  "task_error": null,
  "input": {
    "prompt": "a small wooden treasure chest with iron bands",
    "should_texture": true,
    "texture_model": "meshy-7",
    "target_formats": ["glb", "fbx"]
  },
  "output": {
    "model_urls": {
      "glb": "https://assets.meshy.ai/***/output/model.glb?Expires=***",
      "fbx": "https://assets.meshy.ai/***/output/model.fbx?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/output/preview.png?Expires=***",
    "alpha_thumbnail_url": 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
      }
    ]
  }
}
```

---

<span id="create-a-text-to-3d-preview-task" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />
<span id="create-a-text-to-3d-refine-task" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />

## Legacy preview and refine
`mode` is deprecated and stops working on March 15, 2027. Before then, make the model in one call with `should_texture`, which costs the same as a preview plus a refine.

1. Create a preview with `"mode": "preview"`, your `prompt`, and the geometry parameters, such as `geometry_resolution` and `should_remesh`. The preview makes the untextured mesh.
2. Wait until the preview's status is `SUCCEEDED`.
3. Create a refine with `"mode": "refine"`, the preview's `id` as `preview_task_id`, and the texture parameters. The refine keeps the preview's prompt and mesh. Leave `ai_model` out to texture with the model that matches the preview, which is Meshy 7 for a Smart Topology preview.

On a refine, `ai_model` names the texture model, and Meshy ignores `texture_model`:

* `meshy-7`: Meshy 7
* `latest`: the newest texture model, now Meshy 7
* `meshy-6`: Meshy 6
* `meshy-6-lite`: Meshy 6 Lite
* `meshy-n1`: Meshy N1, a 2K base color texture from a reference image only

A Smart Topology preview (`meshy-t2`, `meshy-t2.5`) has no Meshy 6 Lite texturing: a refine of one with `meshy-6-lite` textures with Meshy 6, so with `enable_pbr: true` it also returns an emission map. A `meshy-6-lite` refine of a Meshy 6, Meshy 6 Lite or Meshy 7 preview returns none, and neither does a refine of a Smart Topology preview that doesn't set `ai_model`.

To refine with Meshy N1, send `"ai_model": "meshy-n1"`. Meshy textures from `texture_image_url`, or from the reference image that a `meshy-7.1` or `latest` preview stores. Any other preview returns `400` unless you send `texture_image_url`. Meshy N1 makes a 2K base color texture only. Sending any of these with it returns `400`:

* `texture_prompt`
* `enable_pbr: true`
* `remove_lighting: true`
* a `texture_resolution` of `4k` or `8k`

The preview can have at most 7,999,999 triangles. A preview remeshed to quads returns `400`. To texture a one-call task with Meshy N1, use [Retexture](https://docs.meshy.ai/api/v2/retexture.md).

You can refine a preview more than once, for example with different texture prompts, until the preview is deleted. You can't refine a one-call task. Meshy deletes Text to 3D tasks 3 days after they finish, and Enterprise accounts keep theirs. A refine of a deleted preview returns `400`, with the code `input_task_expired` once the retention period has ended. See [Asset retention](https://docs.meshy.ai/api/v2/asset-retention.md).

---

<span id="retrieve-a-text-to-3d-task" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />
<span id="delete-a-text-to-3d-task" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />
<span id="list-text-to-3d-tasks" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />
<span id="stream-a-text-to-3d-task" className="block scroll-mt-[calc(var(--header-h)+2rem)]" />

## Legacy routes
The Text to 3D read routes from before v2 stop working on March 15, 2027. Before then, move your reads to [Tasks](https://docs.meshy.ai/api/v2/tasks.md).

| Route | Use instead |
| --- | --- |
| `GET /openapi/v2/text-to-3d/{id}` | [`GET /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#get-a-task) |
| `GET /openapi/v2/text-to-3d/{id}/stream` | [`GET /openapi/v2/tasks/{id}/stream`](https://docs.meshy.ai/api/v2/tasks.md#stream-a-task) |
| `GET /openapi/v2/text-to-3d` | [`GET /openapi/v2/tasks?type=text-to-3d`](https://docs.meshy.ai/api/v2/tasks.md#list-tasks) |
| `DELETE /openapi/v2/text-to-3d/{id}` | [`DELETE /openapi/v2/tasks/{id}`](https://docs.meshy.ai/api/v2/tasks.md#delete-a-task) |

These routes return the fields of the [original Text to 3D task object](#the-text-to-3d-task-object), with `task_error` in its v2 form. They also return these fields, the same as Tasks:

* `input`
* `output`
* `expires_at`

The list route returns a plain array, with no `has_more`.

The same routes under `/v2/text-to-3d`, without `/openapi`, are deprecated. Their responses have a `Deprecation` header, and a `Link` header that points to the `/openapi/v2/text-to-3d` route.

### The original Text to 3D task object
The legacy routes return this object. `type` says whether the task is a preview, a refine, or a one-call task.

- `id` · *string*

  The task ID. Treat it as an opaque string, and don't rely on its format.

- `type` · *string*

  The task type: `text-to-3d-preview` for a preview, `text-to-3d-refine` for a refine, or `text-to-3d` for a one-call task.

- `model_urls` · *object*

  Download URLs for the generated 3D model, one per file format. A format the task didn't generate has no key, rather than an empty string.

  - `glb` · *string*

  The GLB file.

  - `fbx` · *string*

  The FBX file.

  - `usdz` · *string*

  The USDZ file.

  - `obj` · *string*

  The OBJ file.

  - `mtl` · *string*

  The MTL file.

  - `stl` · *string*

  The STL file.

  - `3mf` · *string*

  The 3MF file. Present only when `target_formats` includes `3mf`.

- `prompt` · *string*

  The `prompt` you sent to create the task, unmodified.

- `texture_prompt` · *string*

  The text prompt you sent to guide the texturing in the refine stage.

- `ultra_mode` · *boolean* · **deprecated**

  Read `geometry_resolution` instead.

- `geometry_resolution` · *string*

  The Ultra tier the preview task ran, `2k` or `4k`. The field is absent for `standard`.

- `texture_image_url` · *string*

  Download URL for the image you sent to guide the texturing.

- `thumbnail_url` · *string*

  Download URL for a thumbnail image of the 3D model.

- `alpha_thumbnail_url` · *string*

  Download URL for a version of `thumbnail_url` with a transparent background (RGBA). Present only when you created the task with `alpha_thumbnail: true` and Meshy rendered the transparent preview.

- `progress` · *integer*

  How much of the task is done, as a percentage. It's `0` until the task starts and `100` when it succeeds.

- `started_at` · *timestamp*

  Time the task started, in Unix milliseconds. It's `0` until the task starts.

- `created_at` · *timestamp*

  Time the task was created, in Unix milliseconds.

- `finished_at` · *timestamp*

  Time the task finished, in Unix milliseconds. It's `0` until the task finishes.

- `status` · *string*

  The task's status. See [How a task runs](https://docs.meshy.ai/api/v2/tasks.md#how-a-task-runs).

- `texture_urls` · *array*

  Download URLs for the generated texture maps, as an array of objects. It usually holds one object. Each object has these fields:

  - `base_color` · *string*

  The base color map.

  - `metallic` · *string*

  The metallic map. Absent when you created the task with `enable_pbr: false`.

  - `normal` · *string*

  The normal map. Absent when you created the task with `enable_pbr: false`.

  - `roughness` · *string*

  The roughness map. Absent when you created the task with `enable_pbr: false`.

  - `emission` · *string*

  The emission map. Absent in any of these cases:
  * You created the task with `enable_pbr: false`.
  * `ai_model` is `meshy-7`, `meshy-7.1`, or `latest`, or it is `meshy-6-lite` on any preview but `meshy-t2` and `meshy-t2.5`.
  * `texture_resolution` is `8k`.
  * The task refines a `meshy-t2` or `meshy-t2.5` preview without setting `ai_model`.

- `preceding_tasks` · *integer*

  The number of tasks ahead of this one in the queue. The value is meaningful only while the task is `PENDING`.

- `task_error` · *object*

  The error details when the task fails, in its v2 form. It's `null` unless the status is `FAILED`. See [Task errors](https://docs.meshy.ai/api/v2/errors.md#task-errors).

- `consumed_credits` · *integer*

  The number of credits the task used. Present when the status is `PENDING`, `IN_PROGRESS`, or `SUCCEEDED`. It's `0` for a `FAILED` task, because Meshy refunds the credits when a task fails.

<span id="example-text-to-3d-task-object" />

**Example Text to 3D Task Object**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "text-to-3d-preview",
  "model_urls": {
    "glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.glb?Expires=***",
    "fbx": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.fbx?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "mtl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.mtl?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***"
  },
  "prompt": "a monster mask",
  "texture_prompt": "green slimy skin with scales and warts",
  "texture_image_url": "",
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "progress": 100,
  "started_at": 1692771667037,
  "created_at": 1692771650657,
  "finished_at": 1692771669037,
  "status": "SUCCEEDED",
  "texture_urls": [
    {
      "base_color": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0.png?Expires=***",
      "metallic": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_metallic.png?Expires=XXX",
      "normal": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_normal.png?Expires=XXX",
      "roughness": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_roughness.png?Expires=XXX",
      "emission": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/texture_0_emission.png?Expires=XXX"
    }
  ],
  "preceding_tasks": 0,
  "task_error": null,

  "consumed_credits": 20
}
```
