Skip to main content
POST
/
hailuo-02-fl2v
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/image-to-video/minimax/hailuo-02-fl2v/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "last_frame_image": "https://example.com/last-frame.jpg"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-fl2v-abc123",
    "model_id": "minimax-hailuo-02-fl2v"
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
last_frame_image
string
required

Last frame image (required). URL or Base64 Data URL. Image format: JPG/JPEG/PNG/WebP, <20MB, short side >300px, aspect ratio between 2:5 and 5:2. Video resolution is determined by the first frame; if dimensions differ, the last frame will be auto-cropped.

Minimum string length: 1
Example:

"https://example.com/last-frame.jpg"

first_frame_image
string

First frame image (optional). URL or Base64 Data URL. If not provided, the model will auto-generate a first frame. Image format: JPG/JPEG/PNG/WebP, <20MB, short side >300px, aspect ratio between 2:5 and 5:2.

Minimum string length: 1
Example:

"https://example.com/first-frame.jpg"

prompt
string

Video content description (optional). Supports 15 camera control instructions. Format: Use [command] syntax for camera movements. Example: '[Pan left] Scene description' or '[Pan left,Pedestal up] for combined movements'. Max 2000 characters.

Required string length: 1 - 2000
Example:

"[Pan left] A beautiful sunset transition"

prompt_optimizer
boolean
default:true

Whether to automatically optimize the prompt. Default is true. Set to false for more precise control.

Example:

true

duration
enum<integer>
default:6

Video duration in seconds. Options: 6 or 10. Note: 10 seconds only supports 768P resolution. Default is 6.

Available options:
6,
10
Example:

6

resolution
enum<string>
default:768P

Video resolution. Options: 768P or 1080P. Note: FL2V does not support 512P. 10 seconds only supports 768P, 1080P only supports 6 seconds. Default is 768P.

Available options:
768P,
1080P
Example:

"1080P"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required