ModelSell 文档
视频系列Omni 视频

omni-fast 视频生成

使用 /v1/videos 调用 omni-fast 生成文生视频、图生视频、首尾帧和多参考图视频。

omni-fast 适合不需要参考视频的快速视频生成场景。它使用 JSON 请求体提交异步任务,支持文生视频、首帧图生视频、首尾帧视频和多参考图视频。

能力字段
文生视频model, prompt, seconds, aspect_ratio, resolution
首帧图生视频first_image_url
首尾帧视频first_image_url, last_image_url
多参考图视频images

创建任务

curl -X POST "$MODELSELL_BASE_URL/v1/videos" \
  -H "Authorization: Bearer $MODELSELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "omni-fast",
    "prompt": "Ocean waves gently rolling onto a sandy beach at golden hour, cinematic, warm sunlight",
    "seconds": "8",
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'

响应会返回任务 ID:

{
  "id": "video_abc123",
  "task_id": "video_abc123",
  "object": "video",
  "model": "omni-fast",
  "status": "queued",
  "progress": 0,
  "created_at": 1735689600,
  "video_url": ""
}

首帧图生视频

传入 first_image_url 后,模型会以该图片作为首帧生成视频。图片可以是公网 URL,也可以是 data:image/...;base64,...

curl -X POST "$MODELSELL_BASE_URL/v1/videos" \
  -H "Authorization: Bearer $MODELSELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "omni-fast",
    "prompt": "The scene comes alive with gentle wind and drifting clouds",
    "first_image_url": "https://example.com/first-frame.jpg",
    "seconds": "8",
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }'

首尾帧视频

同时传入 first_image_urllast_image_url,适合生成从首帧过渡到尾帧的视频。

{
  "model": "omni-fast",
  "prompt": "Create a smooth transition from the first frame to the last frame.",
  "first_image_url": "https://example.com/first-frame.jpg",
  "last_image_url": "https://example.com/last-frame.jpg",
  "seconds": "8",
  "aspect_ratio": "16:9",
  "resolution": "720p"
}

多参考图视频

使用 images 传入多张参考图,最多 5 张。参考图可以表达角色、风格、场景或商品外观。

{
  "model": "omni-fast",
  "prompt": "Use the first image as the character reference and the second image as the visual style reference. Create a cozy cafe conversation scene.",
  "images": [
    "https://example.com/character.jpg",
    "https://example.com/style.jpg"
  ],
  "seconds": "8",
  "aspect_ratio": "16:9",
  "resolution": "720p"
}

查询结果

curl "$MODELSELL_BASE_URL/v1/videos/video_abc123" \
  -H "Authorization: Bearer $MODELSELL_API_KEY"

完成后读取 video_url,或通过 /content 下载:

curl -L "$MODELSELL_BASE_URL/v1/videos/video_abc123/content" \
  -H "Authorization: Bearer $MODELSELL_API_KEY" \
  -o omni-fast.mp4

字段说明

字段类型必填说明
modelstring固定传 omni-fast
promptstring视频提示词
secondsstring视频时长,建议传字符串,推荐 430
aspect_ratiostring画面比例,例如 16:99:16
resolutionstring分辨率,例如 720p1080p2k4k
first_image_urlstring首帧图,支持公网 URL 或 Base64 data URI
last_image_urlstring尾帧图,需要配合 first_image_url 使用
imagesstring array多参考图列表,最多 5 张

注意事项

  • omni-fast 不支持 videovideo_urlinput_video 参考视频字段。
  • 图片字段使用 JSON 传入,不需要 multipart。
  • 参考视频编辑或延长请使用 omni-fast-v2v 参考视频生成
  • 建议轮询 GET /v1/videos/{task_id},完成后用 GET /v1/videos/{task_id}/content 下载 MP4。

On this page