curl --request POST \
--url https://llm.ai-nebula.com/v1/video/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"image": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>"
}
'curl --request POST \
--url https://llm.ai-nebula.com/v1/video/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"image": "<string>",
"duration": 123,
"resolution": "<string>",
"aspect_ratio": "<string>"
}
'Bearer sk-xxxxxxxxxxsora-2 - 支持文生视频、图生视频、视频生视频(Remix 模式)veo-3.0-fast-generate-001 - 文生视频(首帧模式)veo-3.1-fast-generate-preview - 文生视频(首帧模式、首尾帧模式)wan2.5-t2v-preview - 文生视频wan2.5-i2v-preview - 图生视频(首帧模式)doubao-seedance-1-0-lite-t2v-250428 - 文生视频doubao-seedance-1-0-lite-i2v-250428 - 图生视频(首帧模式、首尾帧模式、参考图模式)doubao-seedance-1-0-pro-250528 - 文生视频(首帧模式)doubao-seedance-1-5-pro-251215 - 文生视频、图生视频(首帧模式、首尾帧模式),支持音频生成doubao-seedance-1-5-pro-251215-noAudio - 文生视频、图生视频(首帧模式、首尾帧模式),不生成音频metadata.content 数组的 text 字段中480p、720p、1080p、4k16:9、9:16、1:1、4:3、3:4、21:9、adaptive(自适应,仅部分模型支持)4、8、12720x1280(竖屏)、1280x720(横屏)video_ 开头)4、6、816:9、9:16720p、1080pveo-3.1 系列支持allow_all(所有年龄)、allow_adult(成年人)、dont_allow(禁止人像)1-45、10480p、720p、1080p宽度*高度,如 1280*7200-2147483647metadata 对象中。必须包含文本和可选的图片。参数通过文本提示词中的特殊标记控制:--rs 或 --resolution:分辨率(480p、720p、1080p)--ratio:宽高比(16:9、9:16、1:1、4:3、3:4、adaptive,注意 doubao-seedance-1-0-lite-t2v-250428 不支持 adaptive)--dur 或 --duration:时长(秒,如 5、10)--frames:帧数(仅 1.5 pro 系列支持)。与 --dur 二选一即可,frames 的优先级高于 duration。如果您希望生成小数秒的视频,建议指定 frames。取值范围:支持 [29, 289] 区间内所有满足 25 + 4n 格式的整数值,其中 n 为正整数--fps 或 --framespersecond:帧率(如 24、30)--seed:随机种子,取值范围:[-1, 2^32-1]之间的整数--wm 或 --watermark:水印开关(true、false)--cf 或 --camerafixed:固定摄像头(true、false,仅 lite 模型支持)doubao-seedance-1-0-lite-t2v-250428、doubao-seedance-1-0-lite-i2v-250428、doubao-seedance-1-0-pro-250528
doubao-seedance-1-5-pro-251215、doubao-seedance-1-5-pro-251215-noAudio
480p 和 720p(不支持 1080p){
"metadata": {
"content": [
{
"type": "text",
"text": "提示词内容 --ratio 16:9 --dur 5 --rs 720p --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,..."
},
"role": "first_frame" // 可选:first_frame、last_frame、reference_image
}
],
"return_last_frame": true, // 是否返回最后一帧(1.5 Pro 系列)
"callback_url": "https://your-domain.com/callback" // 可选的回调 URL
}
}
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "一只可爱的小猫在花园里玩耍,阳光明媚,画面温馨",
"seconds": "4",
"size": "720x1280"
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "一只可爱的小猫在花园里玩耍,阳光明媚,画面温馨",
"seconds": "8",
"size": "1280x720"
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "一只可爱的小猫在花园里玩耍,阳光明媚,画面温馨",
"seconds": "4",
"size": "720x1280",
"input_reference": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "将视频改成夜晚场景,添加星空",
"seconds": "4",
"size": "720x1280",
"remix_from_video_id": "video_69095b4ce0048190893a01510c0c98b0"
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3.1-fast-generate-preview",
"prompt": "科幻城市鸟瞰图,黎明时分,阳光穿透云层",
"durationSeconds": 8,
"aspectRatio": "16:9",
"resolution": "1080p",
"fps": 24
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3.1-fast-generate-preview",
"prompt": "基于这张图片生成视频,画面逐渐展开",
"durationSeconds": 8,
"aspectRatio": "16:9",
"resolution": "1080p",
"fps": 24,
"image": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3.1-fast-generate-preview",
"prompt": "从第一张图过渡到第二张图",
"durationSeconds": 8,
"aspectRatio": "16:9",
"resolution": "1080p",
"fps": 24,
"image": "data:image/png;base64,iVBORw0KGgoAAxxxx...",
"lastFrame": "data:image/png;base64,iVBORw0KGgoAAyyyy..."
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.5-t2v-preview",
"prompt": "一只小猫慢慢睁开眼睛,耳朵轻轻抖动,镜头慢慢推进",
"duration": 5,
"size": "1280*720",
"smart_rewrite": true,
"generate_audio": true
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.5-t2v-preview",
"prompt": "一只小猫慢慢睁开眼睛,耳朵轻轻抖动,镜头慢慢推进",
"duration": 10,
"size": "1920*1080",
"smart_rewrite": false,
"generate_audio": false,
"seed": 123456
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.5-i2v-preview",
"prompt": "小猫慢慢睁开眼睛,耳朵轻轻抖动,镜头慢慢推进",
"duration": 5,
"resolution": "720p",
"smart_rewrite": true,
"generate_audio": true,
"image": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.5-i2v-preview",
"prompt": "小猫慢慢睁开眼睛,耳朵轻轻抖动,镜头慢慢推进",
"duration": 10,
"resolution": "1080p",
"smart_rewrite": false,
"generate_audio": false,
"audio_url": "https://example.com/audio.mp3",
"image": "data:image/png;base64,iVBORw0KGgoAAxxxx...",
"seed": 789012
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-lite-t2v-250428",
"metadata": {
"content": [
{
"type": "text",
"text": "一只小猫在花园里玩耍,阳光明媚 --ratio 16:9 --dur 5 --rs 720p --wm false"
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-lite-t2v-250428",
"metadata": {
"content": [
{
"type": "text",
"text": "一只小猫在花园里玩耍,阳光明媚 --ratio 9:16 --dur 10 --rs 1080p --fps 30 --wm true --seed 12345"
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-lite-i2v-250428",
"metadata": {
"content": [
{
"type": "text",
"text": "女孩睁开眼睛,温柔地看着镜头 --ratio adaptive --dur 5 --rs 720p --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-lite-i2v-250428",
"metadata": {
"content": [
{
"type": "text",
"text": "一只蓝绿色的精卫鸟变成人形 --rs 720p --dur 5 --fps 24 --cf false --wm false --seed 67890"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
},
"role": "first_frame"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAyyyy..."
},
"role": "last_frame"
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-lite-i2v-250428",
"metadata": {
"content": [
{
"type": "text",
"text": "[图1] 戴眼镜穿蓝色T恤的男孩和 [图2] 柯基狗,坐在 [图3] 草坪上,3D卡通风格 --rs 720p --dur 5 --ratio 16:9 --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/ref1.png"
},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/ref2.png"
},
"role": "reference_image"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/ref3.png"
},
"role": "reference_image"
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-0-pro-250528",
"metadata": {
"content": [
{
"type": "text",
"text": "女孩睁开眼睛,温柔地看着镜头 --ratio 16:9 --dur 5 --rs 1080p --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-5-pro-251215",
"metadata": {
"content": [
{
"type": "text",
"text": "一只可爱的小猫在花园里追逐蝴蝶,春天的阳光洒在花朵上 --ratio 16:9 --dur 6 --rs 720p --wm false"
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-5-pro-251215-noAudio",
"metadata": {
"content": [
{
"type": "text",
"text": "画面逐渐动起来,人物微笑看向镜头 --ratio 16:9 --dur 5 --rs 720p --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
}
}
]
}
}'
curl -X POST "https://llm.ai-nebula.com/v1/video/generations" \
-H "Authorization: Bearer sk-xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedance-1-5-pro-251215",
"metadata": {
"content": [
{
"type": "text",
"text": "从静态画面过渡到动态场景 --ratio 16:9 --dur 8 --rs 720p --wm false"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAxxxx..."
},
"role": "first_frame"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAyyyy..."
},
"role": "last_frame"
}
]
}
}'
content 数组必须放在 metadata 对象中--ratio 16:9)content 数组中,使用 image_url 类型role: "first_frame" 和 role: "last_frame"[图1]、[图2] 等标记引用图片,图片标记 role: "reference_image"doubao-seedance-1-0-lite-t2v-250428 不支持图片输入和 adaptive 宽高比doubao-seedance-1-0-pro-250528 仅支持首帧模式doubao-seedance-1-5-pro-251215 自动生成音频,适合需要配乐的场景doubao-seedance-1-5-pro-251215-noAudio 不生成音频,渲染速度更快,适合需要后期配音的场景480p 和 720p(不支持 1080p)role: "first_frame" 和 role: "last_frame"{
"task_id": "video_69095b4ce0048190893a01510c0c98b0",
"status": "submitted",
"format": "mp4"
}