> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelhunter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text to Video

> Generate 4–15 second videos with generated stereo audio from text using MiniMax H3.

## Models

| Model | Resolutions | Duration | Prompt length |
| - | - | - | - |
| `minimax-h3/text-to-video` | 768P, 2K | 4–15 s | 7000 |

MiniMax H3 videos always include generated stereo audio; there is no option to turn it off.

> [!NOTE]
>
> This endpoint only accepts `minimax-h3/text-to-video`. Any other `model` returns a `400` "Invalid route" error.

## Body Parameters

**model** `string` *required*

Model to use: `minimax-h3/text-to-video`.

**input** `object` *required*

Input parameters for the generation.

**properties**

**prompt** `string` *required*

Video description. Maximum length: 7000 characters.

**aspect\_ratio** `string` (default: 16:9)

Output aspect ratio: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.

**duration** `integer` (default: 6)

Output duration in seconds, integer from `4` to `15`.

**resolution** `string` (default: 2K)

Output resolution: `768P` or `2K`.

**webhookUrl** `string`

URL to receive a webhook when the task completes.

**metadata** `object`

Custom key-value metadata to attach to the task.

## Pricing

Billed per second of output video (audio included):

| Resolution | Price |
| - | -: |
| `768P` | \$0.08/sec |
| `2K` | \$0.13/sec |

For example, a 10-second `2K` video costs \$0.13 × 10 = \$1.30. Failed tasks are refunded.

Prices are in USD and current as of November 23, 2026.

## Example

```bash theme={null}
curl -X POST https://api.modelhunter.ai/api/v1/minimax/text-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-h3/text-to-video",
    "input": {
      "prompt": "A street drummer performs in a neon-lit alley at night as the crowd cheers",
      "aspect_ratio": "16:9",
      "duration": 10,
      "resolution": "2K"
    },
    "metadata": {
      "project": "launch-video"
    }
  }'
```

```json 202 theme={null}
{
  "success": true,
  "data": {
    "id": "task_abc123",
    "status": "pending",
    "type": "text-to-video",
    "provider": "minimax",
    "model": "minimax-h3/text-to-video",
    "created_at": "2026-11-23T10:00:00Z",
    "estimated_seconds": 300
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "input.duration must be an integer between 4 and 15"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.