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 video generation task
- Query video generation task
Create task
POST /minimax/v2/video_generationcURL
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
textpart only.ratiois required and cannot beadaptive. - Image to video: add one
first_frameorlast_frame, or one of each. The output ratio follows the images and resolves toadaptive; another supplied ratio is ignored. - Reference to video: combine
reference_image,reference_video, andreference_audioparts. Include at least one reference image or video; audio alone is not sufficient.ratiois optional and defaults toadaptive. - Do not mix
first_frameorlast_framewith anyreference_*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.
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.