Hailuo 2.3
Text-to-Video • MiniMax • ProxiedA 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 License | link ↗ |
| More information | link ↗ |
Usage
const response = await env.AI.run( 'minimax/hailuo-2.3', { prompt: 'A golden retriever playing fetch on a sandy beach at sunset', duration: 6, resolution: '768P', }, { gateway: { id: 'default' }, })console.log(response)Examples
High Resolution — 1080P video for higher quality output
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', duration: 6, resolution: '1080P', prompt_optimizer: true, }, { gateway: { id: 'default' }, })console.log(response)Image to Video — Animate a still image with I2V
const response = await env.AI.run( 'minimax/hailuo-2.3', { first_frame_image: 'https://replicate.delivery/xezq/MQpUhqkESIIQDlWUxtNcsznZLfUTmhEbCV3vdAZGHGPwwaMLA/tmpgl4gvv5n.jpeg', prompt: 'Slowly zoom in with subtle parallax movement, gentle atmospheric motion', duration: 6, resolution: '768P', }, { gateway: { id: 'default' }, })console.log(response)Fast Processing — Enable fast pretreatment for quicker results
const response = await env.AI.run( 'minimax/hailuo-2.3', { prompt: 'Fireworks exploding over a city skyline at night, colorful reflections on water', duration: 6, resolution: '768P', fast_pretreatment: true, }, { gateway: { id: 'default' }, })console.log(response)Parameters
stringmaxLength: 2000stringbooleanrequireddefault: truebooleanrequireddefault: falseone ofrequiredstringrequireddefault: 768Penum: 768P, 1080Pstringstringformat: uristringstringenum: Preparing, Queueing, Processing, Success, FailAPI Schemas
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "maxLength": 2000 }, "first_frame_image": { "type": "string" }, "prompt_optimizer": { "default": true, "type": "boolean" }, "fast_pretreatment": { "default": false, "type": "boolean" }, "duration": { "default": 6, "anyOf": [ { "type": "number", "const": 6 }, { "type": "number", "const": 10 } ] }, "resolution": { "default": "768P", "type": "string", "enum": [ "768P", "1080P" ] }, "callback_url": { "type": "string" } }, "required": [ "prompt_optimizer", "fast_pretreatment", "duration", "resolution" ], "additionalProperties": false}{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video": { "type": "string", "format": "uri" }, "task_id": { "type": "string" }, "status": { "type": "string", "enum": [ "Preparing", "Queueing", "Processing", "Success", "Fail" ] } }, "required": [ "task_id" ], "additionalProperties": false}