POST /minimax/v2/video_generation, then poll GET /minimax/v2/query/video_generation/{task_id} until the task finishes.
The
/minimax prefix is required on AnyFast. The routes without this prefix are MiniMax’s upstream routes, not the AnyFast routes shown on this page.Key capabilities
- Text to video — Generate a video from one text prompt.
- Frame-guided image to video — Supply a first frame, a last frame, or both.
- Multimodal reference to video — Combine reference images, videos, and audio with a prompt.
- 768P and 2K output — Select either output resolution.
- Generated audio — Generated MP4 outputs can include an audio track.
- Asynchronous processing — Create once, then poll the returned task ID.
Model ID
Use the case-sensitive model IDMiniMax-H3.
For specific content requests, select the
MiniMax-H3-nsfw model under the Direct resource group. The NSFW model ID adds the -nsfw suffix to the standard model ID.Quickstart
Create a 768P text-to-video task:cURL
cURL
Choose an input workflow
- Text to video
- Image to video
- Reference to video
Include exactly one non-empty
text item. Set a concrete ratio; adaptive is not valid for text-only generation.Request parameters
The text prompt can contain up to 7,000 characters. Send
aigc_watermark as a JSON boolean; null, strings, and numbers are not part of the documented contract.
Media limits
Use publicly reachable HTTP or HTTPS URLs. Base64 media input is not supported. MiniMax must be able to download each URL while processing the task.
Keep the combined number of image, video, and audio files at 12 or fewer. Do not mix
first_frame or last_frame with any reference_* role.
Query task status
The task progresses throughqueued and running, then ends as succeeded, failed, or cancelled. When it succeeds, download the generated video from task.content.url. The URL may expire, so copy the file to your own storage promptly.
The task.usage object describes processed media:
output_secondsis the generated duration used by the API.input_secondsis the processed reference-video duration and may be omitted when no reference video is used.input_image_countis the number of input images.total_secondsis the sum of reported input and output seconds.
The requested duration and
usage.output_seconds are integer seconds. A downloaded MP4 container can be slightly longer because of encoded frame and audio boundaries.API reference
View all request fields, response fields, and error formats for MiniMax-H3.