Skip to content

Text-to-Image Video Generation Task

POST https://www.kkiai.com/minimax/v1/video_generation

Request Parameters

Authorization

Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.

Example: Authorization: Bearer ********************

Header Parameters

Parameter NameTypeRequiredDescriptionExample
AuthorizationstringOptionalsk-

Body Parameters (application/json)

Parameter NameTypeRequiredDescription
modelstringRequiredModel name. Available values: MiniMax-Hailuo-2.3, MiniMax-Hailuo-02
promptstringRequiredText description of the video, maximum 2000 characters. Supports [Instruction] syntax for camera movement control, such as [Pan Left], [Pan Right], [Push In], [Pull Out], [Rise], [Lower], [Pan Left], [Pan Right], [Tilt Up], [Tilt Down], [Zoom In], [Zoom Out], [Shake], [Follow], [Static] and 15 other camera movement instructions
durationintegerRequiredVideo duration (seconds). Available values: 6 or 10 (10 seconds only supports 768P resolution for Hailuo series models)
resolutionstringRequiredVideo resolution. Available values: 720P (default for other models), 768P (default for Hailuo series), 1080P (only supports 6 seconds)
prompt_optimizerbooleanRequiredWhether to automatically optimize the prompt. Set to false for more precise control
fast_pretreatmentbooleanRequiredWhether to shorten the optimization time of prompt_optimizer. Only effective for MiniMax-Hailuo-2.3 and MiniMax-Hailuo-02 models
callback_urlstringRequiredCallback URL to receive task status update notifications. Once configured, you will receive asynchronous notifications of task status changes (processing/success/failed)
aigc_watermarkbooleanRequiredWhether to add an AIGC watermark to the generated video
first_frame_imagestringRequiredUse the specified image as the starting frame of the video. Supports public URLs or Base64-encoded Data URLs (data:image/jpeg;base64,...)

Request Example

json
{
  "model": "MiniMax-Hailuo-02",
  "prompt": "A man picks up a book [Pedestal up], then reads [Static shot].",
  "duration": 6,
  "resolution": "1080P"
}

cURL Example

bash
curl --location --request POST 'https://www.kkiai.com/minimax/v1/video_generation' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "MiniMax-Hailuo-02",
  "prompt": "A man picks up a book [Pedestal up], then reads [Static shot].",
  "duration": 6,
  "resolution": "1080P"
}'

Response

🟢 200 Success

Response Body

Parameter NameTypeRequiredDescription
task_idstringRequired
base_respobjectRequired
  └ status_codeintegerRequired
  └ status_msgstringRequired

Response Example

json
{
  "task_id": "106916112212032",
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}