> **Reading as an AI agent?** This is the Markdown version of https://docs.meshy.ai/api/multi-image-to-3d.
>
> - Full docs index: https://docs.meshy.ai/llms.txt
> - Single-fetch full content: https://docs.meshy.ai/llms-full.txt
> - Tool-calling access via MCP server: https://docs.meshy.ai/api/ai

---
# Multi-Image to 3D API

Generate a 3D model from one to four images of the same object, taken from different angles.

---

## POST /openapi/v1/multi-image-to-3d -- Create a Multi-Image to 3D task

Creates a Multi-Image to 3D task. The task runs in the background. For how long a task usually takes, see [Processing times](/api/task-lifecycle#processing-times). For the fields a task has, see [The Multi-Image to 3D task object](#the-multi-image-to-3d-task-object).

### Parameters

  - `input_task_id` · *string* · **required**

  Required unless you send `image_urls`. The ID of a Text to Image or Image to Image task, including a multi-view one. Meshy uses its one to four images as the input. The task must be one you created with the API and have the status `SUCCEEDED`.

  - `image_urls` · *array* · **required**

  Required unless you send `input_task_id`. One to four images, each as a public URL or a data URI, such as `data:image/jpeg;base64,<your base64-encoded image data>`. If you send both, Meshy uses `input_task_id`.

  Each 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). More than four images returns `400`.

  For the best results, the images should show the same object from different angles. With `meshy-7.1` or `latest`, Meshy uses the first image as the front view, and the order of the others doesn't matter.

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

  The AI model that generates the 3D model.

  Available values:
  * `latest`: Meshy 7.1
  * `meshy-7.1`
  * `meshy-6`
  * `meshy-6-lite`
  * `meshy-7`: deprecated, send `meshy-7.1` instead

  See [Models](/api/models#choose-by-project) for which model fits your project, such as a real object or a 3D print.

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

  How much geometry detail to generate.

  Available values:
  * `standard`
  * `2k`: runs the Ultra pass at 2048³. Needs `meshy-7.1`, `latest`, or the deprecated `meshy-7`.

  - `ultra_mode` · *boolean* · default: `false` · **deprecated**

  Send `geometry_resolution` instead. `ultra_mode: true` is the same as `geometry_resolution: "2k"`.

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

  Whether to generate textures. `true` returns a textured model, and `false` skips the texture step and returns a mesh without textures.

**Only when `should_texture` is set:**
  - `texture_model` · *string* · default: `depends on ai_model`

  The AI model that textures the 3D model from several views, in the same task. Leave it out to use the default texture model for your `ai_model`. It doesn't change the credit cost.

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

  Every `ai_model` takes both. A textured request with `meshy-6` or `meshy-6-lite` returns `400`, and so does an option that the chosen texture model doesn't support. With `should_texture: false`, Meshy ignores `texture_model`, but an unknown value still returns `400`.

  With `meshy-n1`, Meshy textures from `texture_image_urls` or `texture_image_url`, or from the input images when you send neither. The first image is the front view. A generated model over 7,999,999 triangles fails the task, and Meshy refunds its credits.

  See [Models](/api/models#texture-models) for what each texture model does and which to pick.

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

  Whether to also generate metallic, roughness, and normal maps, in addition to the base color. The Meshy 6 texture model also generates an emission map, except at `texture_resolution: 8k`. With `texture_model: meshy-n1`, `true` returns `400`.

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

  The size of the base color texture. A larger size captures more surface detail.

  Available values:
  * `2k`: 2048×2048
  * `4k`: 4096×4096
  * `8k`: 8192×8192

  `4k` and `8k` need the Meshy 7 or Meshy 6 texture model, and return `400` with the others. At `8k`, Meshy doesn't generate an emission map.

  - `hd_texture` · *boolean* · default: `false` · **deprecated**

  Send `texture_resolution` instead. `hd_texture: true` is the same as `texture_resolution: "4k"`. If you send both, Meshy uses `texture_resolution`.

  - `texture_prompt` · *string*

  Text that guides the texture, up to 800 characters. Longer text returns `400`. With `texture_model: meshy-n1`, sending it returns `400`.

  - `texture_image_url` · *string*

  One 2D image that guides the texture, as a public URL or a data URI, such as `data:image/jpeg;base64,<your base64-encoded image data>`. 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).

  If you send both `texture_image_url` and `texture_prompt`, Meshy uses `texture_prompt`. With `texture_model: meshy-n1`, Meshy textures from this image as the front view.

  > **Note:** The texture might not come out well when the shape in the image differs a lot from the 3D model.

  - `texture_image_urls` · *string[]*

  One to four images of the object from different views that guide the texture. Meshy uses the first image as the front view. The order of the other views (left, back, right) doesn't matter.

  Each image follows the same rules as `texture_image_url`. It's a public URL or a data URI, in `.jpg`, `.jpeg`, `.png`, or `.webp` format, of at most 20 MB, at least 32 pixels on each side, and at most 178,956,970 pixels (width × height).

  These images guide only the texture and don't depend on `image_urls`. The two lists can hold different images and different numbers of images.

  `texture_image_urls` needs the Meshy 7 or Meshy N1 texture model. Send it with one of these:
  * `ai_model` of `meshy-7.1`, `latest`, or the deprecated `meshy-7`
  * `texture_model` of `meshy-7` or `meshy-n1`

  You can't send it with `texture_image_url` or `texture_prompt`.

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

  Whether to remesh the model after generation. For the highest-quality 3D model, set it to `false`.

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

  The face type of the remeshed model.

  Available values:
  * `quad`: a quad-dominant mesh
  * `triangle`: a decimated triangle mesh

  With `texture_model: meshy-n1`, `quad` returns `400` when the model is remeshed, which `meshy-6-lite` does by default.

  - `target_polycount` · *integer* · default: `30000`

  The number of faces to aim for, from `100` to `300000`. The result can differ from the target, depending on the model's geometry. A value outside the range 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

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

  Whether to also save the GLB from before the remesh, returned in `model_urls.pre_remeshed_glb`.

  - `symmetry_mode` · *string* · default: `auto` · **deprecated**

  Leave it out. It doesn't affect the output.

  Available values:
  * `off`: no symmetry
  * `auto`: symmetry based on the input geometry
  * `on`: enforced symmetry

  - `pose_mode` · *string* · default: `""`

  The pose of the generated model.

  Available values:
  * `a-pose`: an A pose
  * `t-pose`: a T pose
  * `""` (empty string): no specific pose

  - `is_a_t_pose` · *boolean* · default: `false` · **deprecated**

  Send `pose_mode` instead. Whether to generate the model in an A or T pose.

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

  Whether to optimize the input images before generating. `false` keeps the exact look of the input images, with no style processing. Supported only with `meshy-6`, `meshy-7.1`, or `latest`. Sending it with `meshy-6-lite` returns `400`.

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

  Whether to remove highlights and shadows from the base color texture. The cleaner result works better under your own lighting. Only the Meshy 6 texture model uses it, and at `texture_resolution: 8k` it always removes lighting. With `texture_model: meshy-n1`, `true` returns `400`. With `ai_model: meshy-6-lite` and its default texture model, sending it returns `400`.

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

  Whether to screen the inputs for harmful content. Meshy screens each input image, `texture_image_url` or each image in `texture_image_urls`, and the text in `texture_prompt`. If Meshy finds harmful content, the request returns `400` and Meshy doesn't create a task.

  - `target_formats` · *string[]*

  The 3D file formats to generate. Meshy generates and returns only the formats you list, which can shorten the task.

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

  If you leave it out, Meshy generates every format except `3mf`. Meshy generates `3mf` only when you list it.

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

  Whether to estimate the object's real-world height with AI vision and resize the model to it. Meshy puts the origin at the bottom unless you set `origin_at`.

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

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

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

  Whether to also render a preview with a transparent background (RGBA), returned in `alpha_thumbnail_url` when you get the task. `thumbnail_url` doesn't change.

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

  Whether to also render front, right, back, and left previews, returned in `thumbnail_urls` when you get the task. `thumbnail_url` doesn't change and still shows the front view. This adds about 5 seconds to the task.

### Returns

The `result` field of the response holds the ID of the new Multi-Image to 3D task.

### Failure modes

  - `400 - Bad Request`

  The request can't run. The error message says which problem it found. For example:
  * **Missing parameter**: Neither `image_urls` nor `input_task_id` was sent.
  * **Invalid input task**: `input_task_id` isn't a `SUCCEEDED` Text to Image or Image to Image task, or a multi-view one.
  * **Invalid image count**: `image_urls` or `texture_image_urls` doesn't hold 1 to 4 images.
  * **Invalid image format**: An image in `image_urls` isn't in a supported format.
  * **Conflicting texture inputs**: `texture_image_urls` was sent with `texture_image_url`, with `texture_prompt`, or with `should_texture: false`.
  * **Unsupported model for multi-view texture**: `texture_image_urls` was sent with `ai_model` of `meshy-6` or `meshy-6-lite`, unless `texture_model` is `meshy-7` or `meshy-n1`.
  * **Unreachable URL**: Meshy can't download an image in `image_urls` or `texture_image_urls`.
  * **Image too large**: An image in `image_urls`, `texture_image_url`, or `texture_image_urls` is over 20 MB.
  * **Invalid image size**: An image in `image_urls`, `texture_image_url`, or `texture_image_urls` has a side shorter than 32 pixels, or more than 178,956,970 pixels (width × height).
  * **Unsupported resolution for multi-image input**: `geometry_resolution` is `"4k"`, which this endpoint doesn't support. Use `2k` or `standard`.
  * **Unsupported model for image options**: `image_enhancement` was sent with `ai_model: "meshy-6-lite"`, or `remove_lighting` was sent with `ai_model: "meshy-6-lite"` and its default texture model.
  * **Invalid texture model**: `texture_model` isn't a valid texture model name.
  * **Texture model not available**: A textured request sent `texture_model` of `meshy-6` or `meshy-6-lite`. Multi-Image to 3D takes only the texture models that texture from several views. Send `meshy-7` or `meshy-n1`, or leave `texture_model` out.
  * **Unsupported option for the texture model**: The request asks the texture model for an option it doesn't support, such as `enable_pbr: true` with `meshy-n1` or a `4k` texture with `meshy-6-lite`. See [Models](/api/models#texture-models).

  Fix the request, then send it again. See [Errors](/api/errors#request-errors).

  - `401 - Unauthorized`

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

  - `402 - Payment Required`

  For example:
  * **Insufficient credits**: The account doesn't have enough credits for this task, or the account reached a credit limit. Check your credit balance, then retry.
  * **Free plan**: Creating a task requires a paid plan. Upgrade your plan in your [subscription settings](https://www.meshy.ai/settings/subscription), then retry.

  - `403 - Forbidden`

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

  - `404 - Not Found`

  `input_task_id` doesn't match any of your tasks. Check the task ID, then send the request again.

  - `429 - Too Many Requests`

  You exceeded your rate limit. Wait, then retry. See [Rate limits](/api/rate-limits).

**cURL**

```bash
# Simple request
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ]
  }'

# With Ultra 2K geometry, PBR texturing, and GLB format
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ],
    "ai_model": "meshy-7.1",
    "geometry_resolution": "2k",
    "should_texture": true,
    "enable_pbr": true,
    "target_formats": ["glb"]
  }'

# Textured with Meshy N1 from the input images, the first as the front view
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d \
  -X POST \
  -H "Authorization: Bearer ${YOUR_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_urls": [
      "<your front view image url or base64-encoded data URI>",
      "<your back view image url or base64-encoded data URI>"
    ],
    "ai_model": "meshy-7.1",
    "texture_model": "meshy-n1"
  }'
```

```javascript
import axios from 'axios'

const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };

// Simple request
const payload = {
  image_urls: [
    "<your publicly accessible image url or base64-encoded data URI>",
    "<your second publicly accessible image url or base64-encoded data URI>"
  ],
};

try {
  const response = await axios.post(
    'https://api.meshy.ai/openapi/v1/multi-image-to-3d',
    payload,
    { headers }
  );
  console.log(response.data);
} catch (error) {
  console.error(error);
}

// With Ultra 2K geometry, PBR texturing, and GLB format
const advancedPayload = {
  image_urls: [
    "<your publicly accessible image url or base64-encoded data URI>",
    "<your second publicly accessible image url or base64-encoded data URI>"
  ],
  ai_model: "meshy-7.1",
  geometry_resolution: "2k",
  should_texture: true,
  enable_pbr: true,
  target_formats: ["glb"],
};

try {
  const response = await axios.post(
    'https://api.meshy.ai/openapi/v1/multi-image-to-3d',
    advancedPayload,
    { headers }
  );
  console.log(response.data);
} catch (error) {
  console.error(error);
}

// Textured with Meshy N1 from the input images, the first as the front view
const meshyN1Payload = {
  image_urls: [
    "<your front view image url or base64-encoded data URI>",
    "<your back view image url or base64-encoded data URI>"
  ],
  ai_model: "meshy-7.1",
  texture_model: "meshy-n1",
};

try {
  const response = await axios.post(
    'https://api.meshy.ai/openapi/v1/multi-image-to-3d',
    meshyN1Payload,
    { headers }
  );
  console.log(response.data);
} catch (error) {
  console.error(error);
}
```

```python
import requests

# Simple request
payload = {
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ],
}

headers = {
    "Authorization": f"Bearer {YOUR_API_KEY}"
}

# Simple request
response = requests.post(
    "https://api.meshy.ai/openapi/v1/multi-image-to-3d",
    headers=headers,
    json=payload,
)
response.raise_for_status()
print(response.json())

# With Ultra 2K geometry, PBR texturing, and GLB format
advanced_payload = {
    "image_urls": [
      "<your publicly accessible image url or base64-encoded data URI>",
      "<your second publicly accessible image url or base64-encoded data URI>"
    ],
    "ai_model": "meshy-7.1",
    "geometry_resolution": "2k",
    "should_texture": True,
    "enable_pbr": True,
    "target_formats": ["glb"],
}

response = requests.post(
    "https://api.meshy.ai/openapi/v1/multi-image-to-3d",
    headers=headers,
    json=advanced_payload,
)
response.raise_for_status()
print(response.json())

# Textured with Meshy N1 from the input images, the first as the front view
meshy_n1_payload = {
    "image_urls": [
      "<your front view image url or base64-encoded data URI>",
      "<your back view image url or base64-encoded data URI>"
    ],
    "ai_model": "meshy-7.1",
    "texture_model": "meshy-n1",
}

response = requests.post(
    "https://api.meshy.ai/openapi/v1/multi-image-to-3d",
    headers=headers,
    json=meshy_n1_payload,
)
response.raise_for_status()
print(response.json())
```

**Response**

```json
{
  "result": "018a210d-8ba4-705c-b111-1f1776f7f578"
}
```

---

## GET /openapi/v1/multi-image-to-3d/:id -- Get a Multi-Image to 3D task

Returns a Multi-Image to 3D task by its ID.

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

The [Multi-Image to 3D task object](#the-multi-image-to-3d-task-object).

**cURL**

```bash
curl https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
```

```javascript
import axios from 'axios'

const taskId = '018a210d-8ba4-705c-b111-1f1776f7f578';
const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };

try {
  const response = await axios.get(
    `https://api.meshy.ai/openapi/v1/multi-image-to-3d/${taskId}`,
    { headers }
  );
  console.log(response.data);
} catch (error) {
  console.error(error);
}
```

```python
import requests

task_id = "018a210d-8ba4-705c-b111-1f1776f7f578"
headers = {
    "Authorization": f"Bearer {YOUR_API_KEY}"
}

response = requests.get(
    f"https://api.meshy.ai/openapi/v1/multi-image-to-3d/{task_id}",
    headers=headers,
)
response.raise_for_status()
print(response.json())
```

**Response**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "multi-image-to-3d",
  "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=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
    "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "thumbnail_urls": {
    "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
    "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
    "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
    "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
  },
  "texture_prompt": "",
  "progress": 100,
  "started_at": 1692771667037,
  "created_at": 1692771650657,
  "expires_at": 1692771679037,
  "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"
    }
  ],
  "preceding_tasks": 0,
  "task_error": null,

  "consumed_credits": 30
}
```

---

## DELETE /openapi/v1/multi-image-to-3d/:id -- Delete a Multi-Image to 3D task

Permanently deletes a Multi-Image to 3D task, including its models and data. You can't undo a delete.

### Path parameters

  - `id` · *path*

  The ID of the task to delete.

### Task status
Deleting a `PENDING` task refunds the credits it used when you created it.

An `IN_PROGRESS` task can't be deleted. The request returns `409 Conflict`,
and the task keeps running. Meshy doesn't refund a task that has started,
so deleting it would cost you both the credits and the result. Wait for it
to reach `SUCCEEDED`, `FAILED`, or `CANCELED`, then delete it.

Deleting a task in a final status (`SUCCEEDED`, `FAILED`, or `CANCELED`)
doesn't refund its credits.

### Returns
`200 OK` when the task is deleted, or `409 Conflict` when the task is
`IN_PROGRESS`.

  **cURL**

  ```bash
  curl --request DELETE \
    --url https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578 \
    -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  import axios from 'axios'

  const taskId = '018a210d-8ba4-705c-b111-1f1776f7f578'
  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` }

  try {
    await axios.delete(
      `https://api.meshy.ai/openapi/v1/multi-image-to-3d/${taskId}`,
      { headers }
    )
  } catch (error) {
    console.error(error)
  }
  ```

  ```python
  import requests

  task_id = "018a210d-8ba4-705c-b111-1f1776f7f578"
  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.delete(
      f"https://api.meshy.ai/openapi/v1/multi-image-to-3d/{task_id}",
      headers=headers,
  )
  response.raise_for_status()
  ```

**Response**

```json
// 200 OK on success, with an empty body.
//
// 409 Conflict when the task is IN_PROGRESS. The task keeps running:
{
  "message": "Task is IN_PROGRESS and cannot be deleted. Credits for a task the worker has already started are not refundable; wait for it to reach SUCCEEDED, FAILED or CANCELED, then delete it."
}
```

---

## GET /openapi/v1/multi-image-to-3d -- List Multi-Image to 3D tasks

Returns a list of your Multi-Image to 3D tasks.

### Parameters

  - `page_num` · *integer* · default: `1`

  The page number to return, up to `255`. A larger value returns `400`.

  - `page_size` · *integer* · default: `10`

  The number of tasks per page, up to `100`.

  - `sort_by` · *string*

  The sort order.

  Available values:
  * `+created_at`: oldest first
  * `-created_at`: newest first

### Returns

A paginated list of [Multi-Image to 3D task objects](#the-multi-image-to-3d-task-object).

  **cURL**

  ```bash
  curl https://api.meshy.ai/openapi/v1/multi-image-to-3d?page_size=10 \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  import axios from 'axios'

  const headers = { Authorization: `Bearer ${YOUR_API_KEY}` };

  try {
   const response = await axios.get(
     `https://api.meshy.ai/openapi/v1/multi-image-to-3d?page_size=10`,
  { headers }
    );
   console.log(response.data);
  } catch (error) {
   console.error(error);
  }
  ```

  ```python
  import requests

  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}"
  }

  response = requests.get(
      "https://api.meshy.ai/openapi/v1/multi-image-to-3d",
      headers=headers,
      params={"page_size": 10}
  )
  response.raise_for_status()
  print(response.json())
  ```

**Response**

```json
[
  {
    "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "type": "multi-image-to-3d",
    "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=***",
      "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
      "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
      "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
    "thumbnail_urls": {
      "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
      "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
      "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
      "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
    },
    "texture_prompt": "",
    "progress": 100,
    "started_at": 1692771667037,
    "created_at": 1692771650657,
    "expires_at": 1692771679037,
    "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"
      }
    ],
    "preceding_tasks": 0,
    "task_error": null,

    "consumed_credits": 30
  }
]
```

---

## GET /openapi/v1/multi-image-to-3d/:id/stream -- Stream a Multi-Image to 3D task

Streams a Multi-Image to 3D task's updates as Server-Sent Events (SSE).

### Parameters

  - `id` · *path*

  The task ID from the create response.

### Returns

A stream of [Multi-Image to 3D task objects](#the-multi-image-to-3d-task-object) as Server-Sent Events.

Each event holds the full task object, in the same shape the Get endpoint returns. While the task is `PENDING` or `IN_PROGRESS`, its result fields don't have values yet.

  **cURL**

  ```bash
  curl -N https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578/stream \
  -H "Authorization: Bearer ${YOUR_API_KEY}"
  ```

  ```javascript
  const response = await fetch(
    'https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578/stream',
    {
      headers: { Authorization: `Bearer ${YOUR_API_KEY}` }
    }
  );

  const reader = response.body.getReader();
  const decoder = new TextDecoder();
  let buffer = '';

  while (true) {
    const { done, value } = await reader.read();
    if (done) break;

    buffer += decoder.decode(value, { stream: true });
    const lines = buffer.split('\n');
    buffer = lines.pop();

    for (const line of lines) {
      if (line.startsWith('data:')) {
        const data = JSON.parse(line.slice(5));
        console.log(data);

        if (['SUCCEEDED', 'FAILED', 'CANCELED'].includes(data.status)) {
          reader.cancel();
        }
      }
    }
  }
  ```

  ```python
  import requests
  import json

  headers = {
      "Authorization": f"Bearer {YOUR_API_KEY}",
      "Accept": "text/event-stream"
  }

  response = requests.get(
      'https://api.meshy.ai/openapi/v1/multi-image-to-3d/018a210d-8ba4-705c-b111-1f1776f7f578/stream',
      headers=headers,
      stream=True
  )

  for line in response.iter_lines():
      if line:
          if line.startswith(b'data:'):
              data = json.loads(line.decode('utf-8')[5:])
              print(data)

              if data['status'] in ['SUCCEEDED', 'FAILED', 'CANCELED']:
                  break

  response.close()
  ```

  **Response Stream**

  ```text
  // Error event example
  event: error
  data: {
    "status_code": 404,
    "message": "Task not found"
  }

  // Message event examples illustrate task progress.
  // These examples are shortened. Each event holds the full task object.
  event: message
  data: {
    "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "progress": 0,
    "status": "PENDING"
  }

  event: message
  data: {
    "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
    "type": "multi-image-to-3d",
    "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=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
    "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
    },
    "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
    "thumbnail_urls": {
    "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
    "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
    "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
    "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
    },
    "texture_prompt": "",
    "progress": 100,
    "started_at": 1692771667037,
    "created_at": 1692771650657,
    "expires_at": 1692771679037,
    "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"
      }
    ],
    "preceding_tasks": 0,
    "task_error": null,

    "consumed_credits": 30
  }
```

---

## The Multi-Image to 3D task object
A Multi-Image to 3D task object describes one generation of a 3D model from one to four images of an object. It holds the status, the progress, and the model files when the task succeeds.

### Properties

- `id` · *string*

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

- `type` · *string*

  The task type, always `multi-image-to-3d`.

- `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.

  - `obj` · *string*

  The OBJ file.

  - `usdz` · *string*

  The USDZ file.

  - `mtl` · *string*

  The MTL file, returned with the OBJ file when the model has textures.

  - `stl` · *string*

  The STL file.

  - `3mf` · *string*

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

  - `pre_remeshed_glb` · *string*

  The GLB file from before the remesh. Present only when you created the task with both `should_remesh: true` and `save_pre_remeshed_model: true`.

- `thumbnail_url` · *string*

  Download URL for a preview image of the model. It's the same as `thumbnail_urls.front` when that field is present.

- `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.

- `thumbnail_urls` · *object*

  Download URLs for previews of the 3D model from four sides. Each is a signed URL to a 512×512 PNG, rendered with the same materials and lighting as `thumbnail_url`. You can use them to preview the model from several angles without downloading the GLB.

  Present only when you created the task with `multi_view_thumbnails: true` and the task reached `SUCCEEDED`. A task created without `multi_view_thumbnails: true` doesn't have this field.

  - `front` · *string*

  The front view, at 0° around the vertical axis. It matches `thumbnail_url`.

  - `right` · *string*

  The right view, at 90°.

  - `back` · *string*

  The back view, at 180°.

  - `left` · *string*

  The left view, at 270°.

- `texture_prompt` · *string*

  The text prompt that guided the texture.

- `texture_image_urls` · *string[]*

  Download URLs for the texture reference images you created the task with, in the order you sent them. Present only when you created the task with `texture_image_urls`.

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

  Read `geometry_resolution` instead.

- `geometry_resolution` · *string*

  The Ultra tier the task ran, which is `2k`. A `standard` task doesn't have this field.

- `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.

- `expires_at` · *timestamp*

  Time the task's results expire, in Unix milliseconds.

- `finished_at` · *timestamp*

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

- `status` · *string*

  The task status, one of `PENDING`, `IN_PROGRESS`, `SUCCEEDED`, `FAILED`, or `CANCELED`.

- `texture_urls` · *array*

  Download URLs for the texture maps the task generated, 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. Not included when you created the task with `enable_pbr: false`.

  - `normal` · *string*

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

  - `roughness` · *string*

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

  - `emission` · *string*

  The emission map. Included only when you created the task with all of these:
* `ai_model: meshy-6`, with its default texture model
* `enable_pbr: true`
* a `texture_resolution` of `2k` or `4k`

- `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. It's `null` unless the status is `FAILED`. See [Errors](/api/errors#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-multi-image-to-3d-task-object" />

**Example Multi-Image to 3D Task Object**

```json
{
  "id": "018a210d-8ba4-705c-b111-1f1776f7f578",
  "type": "multi-image-to-3d",
  "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=***",
    "obj": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.obj?Expires=***",
    "usdz": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.usdz?Expires=***",
    "stl": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/model.stl?Expires=***",
    "pre_remeshed_glb": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/pre_remeshed_model.glb?Expires=***"
  },
  "thumbnail_url": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview.png?Expires=***",
  "thumbnail_urls": {
    "front": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_front.png?Expires=***",
    "right": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_right.png?Expires=***",
    "back": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_back.png?Expires=***",
    "left": "https://assets.meshy.ai/***/tasks/018a210d-8ba4-705c-b111-1f1776f7f578/output/preview_left.png?Expires=***"
  },
  "texture_prompt": "",
  "progress": 100,
  "started_at": 1692771667037,
  "created_at": 1692771650657,
  "expires_at": 1692771679037,
  "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"
    }
  ],
  "preceding_tasks": 0,
  "task_error": null,

  "consumed_credits": 30
}
```
