Skip to content
MiniMax logo

MiniMax Hailuo 2.3

Text-to-VideoMiniMaxProxied

A high-fidelity video generation model optimized for realistic human motion, cinematic VFX, expressive characters, and strong prompt and style adherence across text-to-video and image-to-video workflows.

Model Info
Terms and Licenselink
More informationlink
PricingView pricing in the Cloudflare dashboard

Usage

TypeScript
const response = await env.AI.run(
'minimax/hailuo-2.3',
{
prompt: 'A golden retriever playing fetch on a sandy beach at sunset',
prompt_optimizer: true,
fast_pretreatment: false,
duration: 6,
resolution: '768P',
},
{
gateway: { id: 'default' },
}
)
console.log(response)

Examples

High Resolution — 1080P video for higher quality output
TypeScript
const response = await env.AI.run(
'minimax/hailuo-2.3',
{
prompt:
'A professional chef preparing sushi in a traditional Japanese kitchen, detailed close-up shots',
prompt_optimizer: true,
fast_pretreatment: false,
duration: 6,
resolution: '1080P',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Image to Video — Animate a still image with I2V
TypeScript
const response = await env.AI.run(
'minimax/hailuo-2.3',
{
prompt:
'Slowly zoom in with subtle parallax movement, gentle atmospheric motion',
first_frame_image:
'https://replicate.delivery/xezq/MQpUhqkESIIQDlWUxtNcsznZLfUTmhEbCV3vdAZGHGPwwaMLA/tmpgl4gvv5n.jpeg',
prompt_optimizer: true,
fast_pretreatment: false,
duration: 6,
resolution: '768P',
},
{
gateway: { id: 'default' },
}
)
console.log(response)
Fast Processing — Enable fast pretreatment for quicker results
TypeScript
const response = await env.AI.run(
'minimax/hailuo-2.3',
{
prompt:
'Fireworks exploding over a city skyline at night, colorful reflections on water',
prompt_optimizer: true,
fast_pretreatment: true,
duration: 6,
resolution: '768P',
},
{
gateway: { id: 'default' },
}
)
console.log(response)

Parameters

prompt
stringmaxLength: 2000
first_frame_image
string
prompt_optimizer
booleanrequireddefault: true
fast_pretreatment
booleanrequireddefault: false
resolution
stringrequireddefault: 768Penum: 768P, 1080P

API Schemas (Raw)

Input
Output