curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "bytedance/seedream-v5.5/text-to-image",
"input": {
"prompt": "A candid documentary dusk photograph on a windswept Icelandic basalt sea cliff. A weathered elderly lighthouse keeper in a salt-stained yellow oilskin coat leans against a rusted iron railing holding a warm glowing brass storm lantern, while a wild Atlantic puffin perches calmly on the wet stone parapet two feet away. Fine ocean spray rises from dark teal swells below under low slate-blue storm clouds. Crisp wet wool, raindrop sheen on metal, detailed plumage, natural film grain, cinematic depth of field. No logos, no readable text, no advertising, no watermarks.",
"size": "16:9",
"resolution": "2K",
"output_format": "png",
"background": "auto"
}
}
'{
"code": 200,
"data": {
"task_id": "YZ61UK2CJU899EU3",
"status": "not_started",
"created_time": "2026-11-25T12:10:23"
}
}{
"detail": "prompt must be between 5 and 5000 characters"
}{
"detail": "prompt must be between 5 and 5000 characters"
}Seedream
Seedream 5.5 文生图
Seedream 5.5 文生图 API 根据提示词生成一张 1K、1.5K 或 2K 图片,支持八种宽高比和透明背景 PNG。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "bytedance/seedream-v5.5/text-to-image",
"input": {
"prompt": "A candid documentary dusk photograph on a windswept Icelandic basalt sea cliff. A weathered elderly lighthouse keeper in a salt-stained yellow oilskin coat leans against a rusted iron railing holding a warm glowing brass storm lantern, while a wild Atlantic puffin perches calmly on the wet stone parapet two feet away. Fine ocean spray rises from dark teal swells below under low slate-blue storm clouds. Crisp wet wool, raindrop sheen on metal, detailed plumage, natural film grain, cinematic depth of field. No logos, no readable text, no advertising, no watermarks.",
"size": "16:9",
"resolution": "2K",
"output_format": "png",
"background": "auto"
}
}
'{
"code": 200,
"data": {
"task_id": "YZ61UK2CJU899EU3",
"status": "not_started",
"created_time": "2026-11-25T12:10:23"
}
}{
"detail": "prompt must be between 5 and 5000 characters"
}{
"detail": "prompt must be between 5 and 5000 characters"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
1K、1.5K、2K 三档分辨率中选择,设置 background: transparent 即可得到透明背景的 PNG 抠图,便于排版、贴纸和产品样机。
Seedream 5.5 是字节跳动的图像模型。Vidgo 提供三个模型 ID:文生图、图像编辑和图层拆分。
模型
- bytedance/seedream-v5.5/text-to-image — Seedream 5.5 文生图,一张 1K、1.5K 或 2K 图片。
功能
- 八种宽高比:
1:1、4:3、3:4、16:9、9:16、3:2、2:3、21:9。 - 三档分辨率:
1K、1.5K、2K。 - 输出 PNG 或 JPEG,可控制透明或不透明背景。
- 可选内容安全检查。
必填参数
prompt(string):图片描述,去除首尾空白后 5–5,000 个字符。
可选参数
size(string):1:1、4:3、3:4、16:9、9:16、3:2、2:3或21:9。默认1:1。resolution(string):1K、1.5K或2K。默认2K。output_format(string):png或jpeg。默认png。background(string):auto、transparent或opaque。默认auto。enable_safety_checker(boolean):默认true。
输出
任务完成后,查询任务状态接口和回调内容的files 数组中返回一张图片,格式为所选的 output_format。
示例
- 纪实摄影:黄昏时冰岛海崖上的灯塔看守人和一只北极海鹦,
16:9,2K(结果)。 - 透明 PNG:水粉风格的小熊猫趴在长满苔藓的树枝上,透明背景,
1:1,1.5K(结果)。 - 带文字的场景:京都庭院中的小提琴手,旁边的木牌写着“雨後茶寮”和“AFTER RAIN”,
3:4,2K(结果)。
注意事项
background: transparent与output_format: jpeg同时使用返回 400;透明输出请使用png。size: auto可在 Seedream 5.5 图像编辑 中使用,会跟随参考图。model和callback_url放在请求根级,与input并列。input接收上文列出的字段,其他字段返回 400。- 积分取决于
resolution(1K与1.5K费率相同,2K费率更高)。任务失败全额退还。当前费率见定价页。
请求体
application/json