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

# Use MiniMax H3 with Comfy Router

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

API Reference for `minimax/minimax-h3`, served by Comfy Router from MiniMax.

## Request setup

Create a key in [your Comfy workspace](https://platform.comfy.org/profile/api-keys) and export it as `COMFY_API_KEY`. For Python, run `pip install comfy-sdk`. For TypeScript, run `npm install @comfyorg/sdk`. cURL uses raw HTTP.

**Model ID:** `minimax/minimax-h3`

**Endpoint:** `POST https://api.comfy.org/v2/models/minimax/minimax-h3`

<Note>
  This model has no runnable request example. Build the body from the input documentation below, then use it with the [Router quickstart](/development/comfy-router/quickstart).
</Note>

## Schema

### Input

<Note>
  Router has not published an authored input schema for this model yet: `GET /v2/models/minimax/minimax-h3/openapi.json` returns an open object with `x-comfy-input-schema-authored: false`. Router forwards the body to MiniMax unchanged, so [MiniMax's own API reference](https://platform.minimax.io/docs/api-reference) is authoritative for the request fields, and Router does not perform model-specific input validation. Provider validation still applies.
</Note>

### Output

<ResponseField name="task" type="object">
  A Minimax V2 video generation task.
</ResponseField>

<ResponseField name="task.content" type="object">
  Generated output; present when status is succeeded.
</ResponseField>

<ResponseField name="task.content.prompt" type="string">
  The enhanced video prompt produced by a succeeded h3\_context\_ir task.
</ResponseField>

<ResponseField name="task.content.url" type="string">
  Time-limited URL of the generated MP4. Query again for a refreshed URL.
</ResponseField>

<ResponseField name="task.duration" type="number">
  The duration of the generated video in seconds.
</ResponseField>

<ResponseField name="task.error" type="object">
  Error details when status is failed; carries code and message.
</ResponseField>

<ResponseField name="task.id" type="string">
  The task ID.
</ResponseField>

<ResponseField name="task.model" type="string">
  The model used for the task.
</ResponseField>

<ResponseField name="task.ratio" type="string">
  The actual aspect ratio of the generated video.
</ResponseField>

<ResponseField name="task.resolution" type="string">
  The resolution of the generated video.
</ResponseField>

<ResponseField name="task.status" type="string">
  Task status. Options: queued, running, succeeded, failed, cancelled, expired.
</ResponseField>

<ResponseField name="task.task_type" type="string">
  The type of the task.
</ResponseField>

<ResponseField name="task.usage" type="object">
  Usage recorded for the task.
</ResponseField>

<ResponseField name="task.usage.completion_tokens" type="integer" />

<ResponseField name="task.usage.input_image_count" type="integer" />

<ResponseField name="task.usage.input_seconds" type="number" />

<ResponseField name="task.usage.output_seconds" type="number" />

<ResponseField name="task.usage.prompt_tokens" type="integer" />

<ResponseField name="task.usage.total_seconds" type="number" />

<ResponseField name="task.usage.total_tokens" type="integer" />

## Examples

### Output

```json theme={null}
{
  "task": {
    "content": {
      "url": "https://example.invalid/minimax/minimax-h3/generated.mp4"
    },
    "duration": 6,
    "id": "3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60",
    "model": "MiniMax-H3",
    "ratio": "16:9",
    "resolution": "768P",
    "status": "succeeded",
    "usage": {
      "output_seconds": 6,
      "total_seconds": 6
    }
  }
}
```

## Before you ship

The SDKs create an `Idempotency-Key` and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes.

When a request fails, Router sends an `X-Comfy-Error-Type` response header explaining why. 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/api">
    Model discovery, validation errors, retries, and billing.
  </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>
