One model, two focused workflows
The API keeps the common text-to-video path minimal while still offering deterministic scene endpoints when a first or last frame matters.
Generate 480p or 768p video from text or controlled first and last frames.
MiniMax H3 Max supports focused text-to-video and first/last-frame image-to-video workflows through one asynchronous API. Create 5–15 second clips, choose six fixed aspect ratios for text generation, or provide one to two images for frame-guided output. Billing depends only on output duration and resolution; input images are free.
Read the official model and pricing documentationModel capabilities
Use MiniMax H3 Max from the same platform surface as the rest of your video and image stack: API keys, credits, logs, webhooks, and docs stay consistent across providers.
Omit generation_type to create video directly from a prompt. Choose 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16 without sending reference media upstream.
Set generation_type to first_and_last_frames and provide one image for the opening frame or two images for both endpoints. Frame mode automatically follows the supplied image composition.
Input images carry no credit charge. The estimate and final debit use the same per-second rate selected by output resolution, making cost predictable before submission.
Submit through the unified video endpoint, receive a task ID, and collect the finished hosted video by callback or status polling using the same task shape as the rest of the API.
Leave generation_type out for text-to-video. For image-to-video, explicitly select first_and_last_frames and attach one or two public HTTP(S) image URLs.
Choose an integer duration from 5 to 15 seconds and either 480p or 768p. Text mode accepts six fixed ratios; frame mode derives its ratio from the images.
POST to the unified generation endpoint, then use the returned task ID for polling or rely on a callback URL. Credits are based only on successful output duration and resolution.
curl -X POST https://api.aivideoapi.ai/v1/videos/generations \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-max",
"input": {
"prompt": "A cinematic tracking shot through a rain-lit night market",
"duration": 5,
"resolution": "768p",
"aspect_ratio": "16:9"
}
}'Why choose MiniMax H3 Max
The API keeps the common text-to-video path minimal while still offering deterministic scene endpoints when a first or last frame matters.
Only resolution and output seconds affect credits. Ignored images in text mode and valid frame images never add input fees.
Existing task polling, callbacks, hosted outputs, authentication, and permission controls work without a separate integration stack.
Frequently asked questions
Omit generation_type. Any string-array image_urls included in that request are ignored and are neither forwarded nor billed.
The first_and_last_frames mode requires one or two valid HTTP(S) image URLs. The first maps to the opening frame and the second, when present, maps to the ending frame.
Choose 480p or 768p and an integer duration from 5 through 15 seconds. The defaults are 768p and 5 seconds.
No. This model does not support task cancellation. Use polling or a callback to wait for the final task state.
Pricing and usage
A 5-second output costs 63.5 credits
Default; a 5-second output costs 96.15 credits
One or two images in frame mode; no input-material charge
Create one API key, use one credit balance, and switch between video and image models without provider-specific plumbing.