跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com
MiniMax logo

MiniMax Hailuo 2.3 Fast

Text-to-Video • MiniMax

查看 MarkdownAgent 设置
  • Third-party
  • Zero data retention

Hailuo 2.3 的低延迟版本,在保留核心运动质量、视觉一致性和风格化效果的同时,支持更快的迭代。

模型信息
条款和许可证链接 ↗
更多信息链接 ↗
零数据保留是
定价在 Cloudflare 仪表板中查看定价 ↗

用法

const response = await env.AI.run(
  'minimax/hailuo-2.3-fast',
  {
    prompt: 'Gentle movement and subtle animation, natural-looking motion',
    duration: 6,
    fast_pretreatment: false,
    first_frame_image:
      'https://replicate.delivery/xezq/MQpUhqkESIIQDlWUxtNcsznZLfUTmhEbCV3vdAZGHGPwwaMLA/tmpgl4gvv5n.jpeg',
    prompt_optimizer: true,
    resolution: '768P',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "minimax/hailuo-2.3-fast",
  "input": {
    "prompt": "Gentle movement and subtle animation, natural-looking motion",
    "duration": 6,
    "fast_pretreatment": false,
    "first_frame_image": "https://replicate.delivery/xezq/MQpUhqkESIIQDlWUxtNcsznZLfUTmhEbCV3vdAZGHGPwwaMLA/tmpgl4gvv5n.jpeg",
    "prompt_optimizer": true,
    "resolution": "768P"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "status": "Success",
    "task_id": "388514752192863",
    "video": "https://video-product.cdn.minimax.io/inference_output/video/2026-04-17/eff40703-0339-4d1d-b66a-db050e878038/output.mp4"
  },
  "state": "Completed"
}

示例

高分辨率图生视频 — 以 1080P 让照片动起来
const response = await env.AI.run(
  'minimax/hailuo-2.3-fast',
  {
    prompt: 'Camera slowly pans across the scene with cinematic depth of field',
    duration: 6,
    fast_pretreatment: false,
    first_frame_image:
      'https://replicate.delivery/xezq/IeNNble3XUqhpUZTd3CkYTUf8EgkFU1fl1Jnyive3B26MsGzC/tmp51dpln4i.jpeg',
    prompt_optimizer: true,
    resolution: '1080P',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "minimax/hailuo-2.3-fast",
  "input": {
    "prompt": "Camera slowly pans across the scene with cinematic depth of field",
    "duration": 6,
    "fast_pretreatment": false,
    "first_frame_image": "https://replicate.delivery/xezq/IeNNble3XUqhpUZTd3CkYTUf8EgkFU1fl1Jnyive3B26MsGzC/tmp51dpln4i.jpeg",
    "prompt_optimizer": true,
    "resolution": "1080P"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "status": "Success",
    "task_id": "388515984507205",
    "video": "https://video-product.cdn.minimax.io/inference_output/video/2026-04-17/2b6251d2-d4ae-4d58-b12f-2609c50fadc2/output.mp4"
  },
  "state": "Completed"
}
快速处理 — 启用快速预处理的快速图生视频
const response = await env.AI.run(
  'minimax/hailuo-2.3-fast',
  {
    prompt: 'Hair blowing in the wind, eyes blinking naturally',
    duration: 6,
    fast_pretreatment: true,
    first_frame_image:
      'https://replicate.delivery/xezq/jfh37lJpnDQhaKcAfCrxSCEh7HA7lv5cCWmJW284tYXwh1YWA/tmpw2i437qe.jpeg',
    prompt_optimizer: true,
    resolution: '768P',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "minimax/hailuo-2.3-fast",
  "input": {
    "prompt": "Hair blowing in the wind, eyes blinking naturally",
    "duration": 6,
    "fast_pretreatment": true,
    "first_frame_image": "https://replicate.delivery/xezq/jfh37lJpnDQhaKcAfCrxSCEh7HA7lv5cCWmJW284tYXwh1YWA/tmpw2i437qe.jpeg",
    "prompt_optimizer": true,
    "resolution": "768P"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "status": "Success",
    "task_id": "388515980755024",
    "video": "https://video-product.cdn.minimax.io/inference_output/video/2026-04-17/b64303a0-0227-4d42-983a-dcaec397b6b1/output.mp4"
  },
  "state": "Completed"
}

参数

first_frame_image
stringrequired首帧图像的 URL 或 base64 data URI
prompt
stringmaxLength: 2000
prompt_optimizer
booleanrequireddefault: true
fast_pretreatment
booleanrequireddefault: false
resolution
stringrequireddefault: 768Penum: 768P, 1080P
video
stringformat: uri
task_id
string
status
stringenum: Preparing, Queueing, Processing, Success, Fail

API schema(原始)

输入
输出

这篇文档对您有帮助吗?