> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-stale2000-router-model-pages.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Meshy 7 with Comfy Router

> Call meshy/meshy-7 through Comfy Router: endpoint, request shape and the response Router returns.

Use `meshy/meshy-7` with the Comfy Router API. Meshy provides the model; Router gives it the shared authentication and request route below.

## Quick start

Create a key at [platform.comfy.org/profile/api-keys](https://platform.comfy.org/profile/api-keys) and export it as `COMFY_API_KEY`. The Python and TypeScript snippets use the Comfy SDKs (`pip install comfy-sdk`, `npm install @comfyorg/sdk`); the cURL snippet is the same call over raw HTTP.

**Model ID:** `meshy/meshy-7`

**Endpoint:** `POST https://api.comfy.org/v2/models/meshy/meshy-7`

<CodeGroup>
  ```python Python theme={null}
  import uuid
  from comfy_sdk import Comfy

  # Reads COMFY_API_KEY from the environment. Save this key and reuse it if you
  # retry this request after the SDK returns an error.
  idempotency_key = str(uuid.uuid4())
  with Comfy() as client:
      result = client.models.run(
          "meshy/meshy-7",
          {
              # Request fields are the provider's own — see Input below.
          },
          idempotency_key=idempotency_key,
      )

  print(result)
  ```

  ```typescript TypeScript theme={null}
  import { comfy } from "@comfyorg/sdk";

  // Reads COMFY_API_KEY from the environment. Save this key and reuse it if you
  // retry this request after the SDK returns an error.
  const idempotencyKey = crypto.randomUUID();
  const { data } = await comfy.models.run("meshy/meshy-7", {
    // Request fields are the provider's own — see Input below.
  }, { idempotencyKey });

  console.log(data);
  ```

  ```bash cURL theme={null}
  # Request fields are the provider's own — see Input below.
  # Run this line once. Reuse ROUTER_REQUEST_KEY if you retry the curl command.
  ROUTER_REQUEST_KEY=$(uuidgen)
  curl https://api.comfy.org/v2/models/meshy/meshy-7 \
    -H "X-API-Key: $COMFY_API_KEY" \
    -H "Idempotency-Key: $ROUTER_REQUEST_KEY" \
    -H "Content-Type: application/json" \
    -d '{}'
  ```
</CodeGroup>

## Schema

### Input

*The schema declares no fixed fields: any JSON object is accepted.*

Generated from the schema Router serves at `GET /v2/models/meshy/meshy-7/openapi.json`, the same document it validates a call against before the request reaches the provider.

### Output

<ResponseField name="art_style" type="string">
  The unmodified art\_style that was used to create the preview task.
</ResponseField>

<ResponseField name="created_at" type="integer">
  Timestamp of when the task was created, in milliseconds.

  Format: `int64`
</ResponseField>

<ResponseField name="finished_at" type="integer">
  Timestamp of when the task was finished, in milliseconds. 0 if not finished.

  Format: `int64`
</ResponseField>

<ResponseField name="id" type="string" required>
  Unique identifier for the task.
</ResponseField>

<ResponseField name="model_urls" type="object">
  Downloadable URLs to the textured 3D model files generated by Meshy.
</ResponseField>

<ResponseField name="model_urls.fbx" type="string">
  Downloadable URL to the FBX file.
</ResponseField>

<ResponseField name="model_urls.glb" type="string">
  Downloadable URL to the GLB file.
</ResponseField>

<ResponseField name="model_urls.mtl" type="string">
  Downloadable URL to the MTL file.
</ResponseField>

<ResponseField name="model_urls.obj" type="string">
  Downloadable URL to the OBJ file.
</ResponseField>

<ResponseField name="model_urls.usdz" type="string">
  Downloadable URL to the USDZ file.
</ResponseField>

<ResponseField name="negative_prompt" type="string">
  Deprecated field maintained for backward compatibility.
</ResponseField>

<ResponseField name="preceding_tasks" type="integer">
  The count of preceding tasks. Only meaningful when status is PENDING.
</ResponseField>

<ResponseField name="progress" type="integer">
  Progress of the task. 0 if not started, 100 when succeeded.

  Range: `0` to `100`
</ResponseField>

<ResponseField name="prompt" type="string">
  The unmodified prompt that was used to create the task.
</ResponseField>

<ResponseField name="started_at" type="integer">
  Timestamp of when the task was started, in milliseconds. 0 if not started.

  Format: `int64`
</ResponseField>

<ResponseField name="status" type="string" required>
  Possible values: `SUCCEEDED`
</ResponseField>

<ResponseField name="task_error" type="object">
  Error object that contains the error message if the task failed.
</ResponseField>

<ResponseField name="task_error.message" type="string">
  Detailed error message.
</ResponseField>

<ResponseField name="texture_image_url" type="string">
  Downloadable URL to the texture image that was used to guide the texturing process.
</ResponseField>

<ResponseField name="texture_prompt" type="string">
  Additional text prompt provided to guide the texturing process during the refine stage.
</ResponseField>

<ResponseField name="texture_richness" type="string">
  Deprecated field maintained for backward compatibility.
</ResponseField>

<ResponseField name="texture_urls" type="object[]">
  An array of texture URL objects that are generated from the task.
</ResponseField>

<ResponseField name="texture_urls[].base_color" type="string">
  Downloadable URL to the base color map image.
</ResponseField>

<ResponseField name="texture_urls[].metallic" type="string">
  Downloadable URL to the metallic map image.
</ResponseField>

<ResponseField name="texture_urls[].normal" type="string">
  Downloadable URL to the normal map image.
</ResponseField>

<ResponseField name="texture_urls[].roughness" type="string">
  Downloadable URL to the roughness map image.
</ResponseField>

<ResponseField name="thumbnail_url" type="string">
  Downloadable URL to the thumbnail image of the model file.
</ResponseField>

<ResponseField name="type" type="string">
  Type of the Text to 3D task.

  Possible values: `text-to-3d-preview`, `text-to-3d-refine`
</ResponseField>

<ResponseField name="video_url" type="string">
  Deprecated field returning the downloadable URL to the preview video.
</ResponseField>

## Examples

### Input

```json theme={null}
{
  "art_style": "realistic",
  "mode": "preview",
  "prompt": "a red cube"
}
```

### Output

```json theme={null}
{
  "art_style": "realistic",
  "created_at": 1767225600000,
  "finished_at": 1767225719000,
  "id": "018f2c7a-4b1e-7c3d-9a05-6e2f8b41d0c9",
  "model_urls": {
    "fbx": "https://example.invalid/meshy/text-to-3d/model.fbx",
    "glb": "https://example.invalid/meshy/text-to-3d/model.glb",
    "mtl": "https://example.invalid/meshy/text-to-3d/model.mtl",
    "obj": "https://example.invalid/meshy/text-to-3d/model.obj",
    "usdz": "https://example.invalid/meshy/text-to-3d/model.usdz"
  },
  "progress": 100,
  "prompt": "a red cube",
  "started_at": 1767225601000,
  "status": "SUCCEEDED",
  "thumbnail_url": "https://example.invalid/meshy/text-to-3d/thumbnail.png",
  "type": "text-to-3d-preview"
}
```

## Before you ship

Save one `Idempotency-Key` for each call and reuse it for retries. Router can hold the connection for up to 10 minutes. The SDKs handle authentication; raw HTTP clients send the headers themselves.

Use `X-Comfy-Error-Type` to classify a failure. A `422` means Router rejected the input before calling the provider. Download generated assets promptly because [result URLs can expire](/development/comfy-router/reference#result-assets).

<CardGroup cols={3}>
  <Card title="Headers" icon="list" href="/development/comfy-router/headers">
    Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.
  </Card>

  <Card title="Using the Router API" icon="code" href="/development/comfy-router/models">
    Find models, inspect schemas, and retry safely.
  </Card>

  <Card title="Limitations" icon="triangle-exclamation" href="/development/comfy-router/limitations">
    What Router does not do today, and what to use instead.
  </Card>
</CardGroup>
