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

# Image to Video

> Animate a first frame, a last frame, or both into a 4–15 second video with generated stereo audio using MiniMax H3.

## Models

| Model | Resolutions | Duration | Frames | Prompt length |
| - | - | - | - | - |
| `minimax-h3/image-to-video` | 768P, 2K | 4–15 s | First frame and/or last frame | 7000 |

MiniMax H3 videos always include generated stereo audio; there is no option to turn it off.
This model has no `aspect_ratio` field.

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

## Body Parameters

**model** `string` *required*

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

**input** `object` *required*

Input parameters for the generation.

**properties**

**prompt** `string` *required*

Video description. Maximum length: 7000 characters.

**first\_frame\_url** `string`

First frame image URL (public HTTP(S)). At least one of `first_frame_url` and `last_frame_url` is required.

**last\_frame\_url** `string`

Last frame image URL (public HTTP(S)). At least one of `first_frame_url` and `last_frame_url` is required.

**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 |

Frame images may additionally be billed as image input at \$0.04 per image. At submit, the request is
pre-deducted for `duration` (default 6) output seconds plus \$0.04 for each frame provided. Completed tasks are
settled from actual usage and the unused part of the pre-deduction is refunded. The final charge never exceeds
the pre-deduction. Failed tasks are refunded.

For example, a 6-second `2K` request with a first and a last frame pre-deducts \$0.13 × 6 + 2 × \$0.04 = \$0.86.

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/image-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-h3/image-to-video",
    "input": {
      "prompt": "The paper boat drifts down the stream and sails into the sunset",
      "first_frame_url": "https://cdn.example.com/boat-start.png",
      "last_frame_url": "https://cdn.example.com/boat-end.png",
      "duration": 6,
      "resolution": "2K"
    },
    "metadata": {
      "project": "launch-video"
    }
  }'
```

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

```json 400 theme={null}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "input.first_frame_url or input.last_frame_url is required"
  }
}
```


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