MiniMax logo

MiniMax-H3

by MiniMax

minimax/MiniMax-H3

Generate video from a text prompt or reference images.

Billed per
second
Price
768p (default)Reference $0.08Plan $0.056
Provider
MiniMax
Timeout
14 min

Overview

Generate video using the supplier configured for your account plan. The pricing table lists each resolution once with your price per second; unsupported resolutions are unavailable. Send provider minimax and endpoint MiniMax-H3. The quality parameter does not override your configured supplier. Supported durations and reference options depend on the configured supplier. 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. Duration reporting and whole-second billing follow your configured supplier. Download the temporary video URL promptly.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
promptstringYesDescribe the scene and movement. The maximum prompt length depends on the supplier configured for your account plan.
duration_snumberNoRequested duration. Supported values and whole-second billing behavior follow your configured supplier.
Default: 4
Minimum: 3
Maximum: 15
resolutionstringNoOutput resolution. Availability follows your configured supplier; resolution spelling is case-insensitive.
Allowed: 480p, 768p, 768P, 1080p, 2K, 4K
qualitystringNoOptional quality setting when supported by your configured supplier. This does not select a different supplier.
Allowed: low, high
aspect_ratiostringNoOutput aspect ratio. Adaptive frame sizing is available when supported by your configured supplier.
Allowed: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive
Default: "1:1"
first_frame_image_urlstringNoHTTPS first frame image; cannot combine with reference images.
last_frame_image_urlstringNoHTTPS last frame image; cannot combine with reference images and may require a first frame.
reference_image_urlarrayNoHTTPS reference images; the configured supplier determines the maximum count. 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.","duration_s":4,"resolution":"768p"}}'
# If status is READY/RUNNING, poll GET /v1/runs/{runId} with the same API key.

Pricing

Prices by resolution. Your account plan controls the supplier, availability, and price. Read the final customer charge from price.amount.value after the run finishes. A RUNNING response is not the final bill.

ResolutionAvailabilityReferencePlan price (USD per second)
480pAvailable$0.08$0.056
768p (default)Available$0.08$0.056
1080pAvailable$0.08$0.056
2KAvailable$0.13$0.091
4KAvailable$0.20$0.14

Questions