Skip to main content
MiniMax-H3 is MiniMax’s multimodal video generation model. Submit an asynchronous task to 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 ID MiniMax-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
The response contains a task ID:
Poll the task ID. Polling does not create another generation task.
cURL
Every accepted POST creates a separate generation task and may be billed separately. Do not retry a create request blindly. Save the returned task_id and retry only the GET query while the task is queued or running.

Choose an input workflow

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.
A create request can return a task_id before MiniMax finishes downloading and validating remote media. An unreachable URL or a reference video even slightly longer than 15 seconds can therefore fail asynchronously. Continue polling until a terminal status instead of treating task creation as generation success.

Query task status

The task progresses through queued 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_seconds is the generated duration used by the API.
  • input_seconds is the processed reference-video duration and may be omitted when no reference video is used.
  • input_image_count is the number of input images.
  • total_seconds is 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.

Official references