图生视频 API

使用 Buble 视频模型把上传图片生成视频。

图生视频 API

图生视频根据模型不同,使用 reference_to_videoframes_to_video

Mode 选择

Mode输入字段适用情况
reference_to_videoimage_urls模型接受参考图片。
frames_to_videostart_frame,可选 end_frame模型接受帧控制。

示例:参考图生成视频

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/sora-2",
    "mode": "reference_to_video",
    "prompt": "Animate the reference image into a short cinematic musical scene with expressive performance and smooth camera motion",
    "image_urls": ["https://example.com/reference.png"],
    "duration": "4s",
    "aspect_ratio": "landscape"
  }'

示例:首帧生成视频

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling/kling-v3",
    "mode": "frames_to_video",
    "prompt": "The product rotates slowly while the camera glides around it, dramatic highlights and realistic motion",
    "start_frame": "https://example.com/start.png",
    "duration": "5s",
    "resolution": "std",
    "aspect_ratio": "16:9",
    "audio": "false"
  }'