MiniMax-H3
minimax/MiniMax-H3Generate video with official or compatibility options.
- second
- Price: $0.08Price: $0.13UnavailableUnavailableUnavailablePrice: $0.08Price: $0.08
- MiniMax
- 14 min
Overview
Omitting compatibility options selects the official route: 768P or 2K, integer durations of 4–15 seconds, default four seconds at 768P and 1:1, billed by verified output seconds. To use compatibility pricing, explicitly send quality: "low" as in the example, keeping provider "minimax" and endpoint "MiniMax-H3". This selects the compatibility route even at 768p or 2K; it supports 480p, 768p, 1080p, 2K and 4K with 3–15 requested seconds, billed by requested seconds rounded up. For a 4K compatibility request, change resolution to "4K" and keep quality: "low". The pricing tables list both routes separately under your account plan. The example uses compatibility pricing. Accepted tasks are checkpointed. If a run is RUNNING, poll GET /v1/runs/{runId}; after a network timeout, repeat the identical request with the same Idempotency-Key to recover it.
After COMPLETED, read run.output.video_url, run.output.duration and run.output.resolution. Official duration is supplier-measured; compatibility duration is requested duration and billing rounds it up. Download the temporary video URL promptly.
Input
These go in the input object of the run request.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Describe the scene and movement. Maximum: 1000 |
| duration_s | number | No | Official route: integer 4–15 seconds. Compatibility route: 3–15 seconds, including fractions; billing rounds up. Default: 4Minimum: 3 Maximum: 15 |
| resolution | string | No | Official route: 768P or 2K, default 768P. With quality set: case-sensitive 480p, 768p, 1080p, 2K or 4K, default 768p. Do not send 768P on the compatibility route. Allowed: 480p, 768p, 768P, 1080p, 2K, 4K |
| quality | string | No | Explicitly setting low or high selects the compatibility route. Omit for the official route. The example uses low. Allowed: low, high |
| aspect_ratio | string | No | Official route: frame inputs use adaptive; text-only input requires a concrete ratio. Compatibility requires a concrete ratio, including for frame inputs. Allowed: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive Default: "1:1" |
| first_frame_image_url | string | No | HTTPS first frame image; cannot combine with reference images. |
| last_frame_image_url | string | No | HTTPS last frame image; cannot combine with reference images. Compatibility requires a first frame. |
| reference_image_url | array | No | Official route: one to five HTTPS reference images. Compatibility: one to four. Cannot combine with frame images. |
Requests up to 1 MB.
Example
Use your own API key and a saved idempotency key for each new job. Replace image or media placeholders with your own publicly reachable HTTPS URLs. Keep the same key and request body when recovering a timeout.
# Set once per job; reuse this key and the identical body after a timeout.
: "${AGENTSKY_IDEMPOTENCY_KEY:?Set a unique, saved key for this job}"
curl --fail-with-body https://gateway.agentsky.dev/v1/run \
-H "authorization: Bearer $AGENTSKY_API_KEY" \
-H "content-type: application/json" \
-H "Idempotency-Key: $AGENTSKY_IDEMPOTENCY_KEY" \
-d '{"provider":"minimax","endpoint":"MiniMax-H3","input":{"prompt":"A small blue sphere slowly rotates on a white background.","quality":"low","duration_s":4,"resolution":"768p"}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.Pricing
Prices by supplier route and resolution, using your plan when signed in. Read the final customer charge from price.amount.value after the run finishes. A RUNNING response is not the final bill.
MiniMax official
Omit quality and compatibility options. Use 768P or 2K with integer duration_s from 4 to 15.
| Resolution | Availability | USD per second |
|---|---|---|
| 768P (default) | Available | Price: $0.08 |
| 2K | Available | Price: $0.13 |
Compatibility — used by the example
Set quality to low (as in the example) or high. Use case-sensitive 480p, 768p, 1080p, 2K or 4K. Requested seconds are rounded up for billing.
| Resolution | Availability | USD per second |
|---|---|---|
| 480p | Unavailable | — |
| 768p (default) | Unavailable | — |
| 1080p | Unavailable | — |
| 2K | Available | Price: $0.08 |
| 4K | Available | Price: $0.08 |
