Skip to main content
POST
/
v1
/
videos
Hailuo First-and-Last-Frame to Video
curl --request POST \
  --url https://api.powertokens.ai/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "MiniMax-Hailuo-02",
  "image": "https://example.com/assets/start-frame.png",
  "last_frame_image": "https://example.com/assets/end-frame.png",
  "prompt": "A person walking from left to right",
  "seconds": "6",
  "size": "720P"
}
'
{
  "id": "<string>",
  "task_id": "<string>",
  "object": "video",
  "model": "<string>",
  "status": "queued",
  "progress": 0,
  "created_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Model name used for this capability.

Available options:
MiniMax-Hailuo-02
image
string
required

First frame image URL or Data URL.

last_frame_image
string
required

Last frame image URL or Data URL.

prompt
string

Optional video prompt describing transition from first to last frame.

seconds
string

Target video duration in seconds.

size
string

Target output size or resolution. Available values depend on the selected model.

Response

Submission successful, returns unified OpenAI-style video task object.

id
string
task_id
string
object
string
Example:

"video"

model
string
status
string
Example:

"queued"

progress
integer
Example:

0

created_at
integer<int64>