Skip to main content
MiniMax-H3 provides asynchronous multimodal video generation through AnyFast. Create a task with POST /minimax/v2/video_generation, then query it with GET /minimax/v2/query/video_generation/{task_id}.
For specific content requests, select the MiniMax-H3-nsfw model under the Direct resource group.
The /minimax prefix is part of the AnyFast route and is required in both requests.

Create task

POST /minimax/v2/video_generation
cURL
200

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Must be application/json.

Request parameters

string
required
Case-sensitive model ID. Use MiniMax-H3; for specific content requests, use MiniMax-H3-nsfw under the Direct resource group.
object[]
required
Multimodal input parts. Include exactly one non-empty text item and any media required by the selected workflow.
string
required
text, image_url, video_url, or audio_url.
string
Prompt for a text part. Maximum 7,000 characters.
string
Purpose of a media part: first_frame, last_frame, reference_image, reference_video, or reference_audio.
object
Required when type is image_url.
string
Public HTTP or HTTPS image URL. Base64 is not supported.
object
Required when type is video_url.
string
Public HTTP or HTTPS reference-video URL.
object
Required when type is audio_url.
string
Public HTTP or HTTPS reference-audio URL.
string
required
768P or 2K. Values are case-sensitive.
integer
required
An integer from 4 through 15, in seconds.
string
adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16. See the workflow rules below.
string
Optional callback URL. It must return MiniMax’s challenge value within 3 seconds before status callbacks can be enabled.
boolean
default:"false"
Whether to add an AIGC watermark. Send a JSON boolean.

Workflow rules

  • Text to video: use one text part only. ratio is required and cannot be adaptive.
  • Image to video: add one first_frame or last_frame, or one of each. The output ratio follows the images and resolves to adaptive; another supplied ratio is ignored.
  • Reference to video: combine reference_image, reference_video, and reference_audio parts. Include at least one reference image or video; audio alone is not sufficient. ratio is optional and defaults to adaptive.
  • Do not mix first_frame or last_frame with any reference_* role.

Media constraints

  • The request body must not exceed 64 MB. Use public URLs rather than embedding file data.
  • Images support JPG, JPEG, PNG, WEBP, HEIC, and HEIF. Each image can be up to 30 MB, each dimension must be 256-5,760 px, and the aspect ratio must be 0.4-2.5. Use at most one first frame, one last frame, or nine reference images.
  • Reference videos support MP4 and MOV containers, H.264/H.265 video, and AAC/MP3 audio. Each file can be up to 50 MB and 2-15 seconds. Use at most three videos with no more than 15 seconds total. Each dimension must be 256-5,760 px, the aspect ratio must be 0.4-2.5, and the frame rate must be 23.976-60 fps.
  • Reference audio supports WAV and MP3. Each file can be up to 15 MB and 2-15 seconds. Use at most three audio files with no more than 15 seconds total.
  • Use at most 12 media files across images, videos, and audio.
A successful create response confirms task creation, not media validation or generation success. Remote media errors can appear later as a failed task. Each accepted create request is a separate task, so poll the task ID instead of retrying the POST.

Response

string
Video generation task ID. Use it with the query endpoint.

Error response

400
string
Top-level response type. Error responses use error.
object
Error details.
string
HTTP status code represented as a string.
string
Human-readable error detail.
string
Error category, such as invalid_request_error or authorized_error.
string
Request ID for troubleshooting.