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/lite/text-to-image",
"input": {
"prompt": "A scientifically accurate educational infographic explaining the honeybee waggle dance, drawn in a warm naturalist illustration style on cream paper. A title across the top reads exactly \"THE WAGGLE DANCE\". Below it, four numbered panels in a 2x2 grid, each with one short caption in clean capital letters. Panel 1 caption \"1. A FORAGER FINDS FLOWERS\": a worker bee flies from a wooden hive to a field of purple lavender; a dotted flight line leads to the flowers, a small sun sits in the sky, and a thin arc marks a 40 degree angle between the sun direction and the flight line. Panel 2 caption \"2. SHE DANCES ON THE COMB\": a vertical honeycomb of hexagonal wax cells; the returning bee traces a figure-eight path whose straight waggle run is tilted 40 degrees to the right of vertical, with a dashed vertical reference line, a thin arc marking the 40 degree angle between that line and the waggle run, and a small upward arrow whose tip carries the single word \"SUN\" to show that straight up on the comb stands for the direction of the sun. Panel 3 caption \"3. LONGER WAGGLE, FARTHER FOOD\": three waggle runs of increasing length drawn side by side, each connected to a flower patch placed at an increasing distance from the hive. Panel 4 caption \"4. SISTERS FOLLOW THE MAP\": several bees that watched the dance fly out from the hive along the same 40 degree angle to the sun and reach the lavender field. The 40 degree angle must stay consistent in panels 1, 2 and 4. Anatomically correct bees with six legs and four wings, readable fine linework, every word spelled correctly, no other text, no watermark.",
"size": "3K",
"n": 1,
"enable_safety_checker": true
}
}
'{
"code": 200,
"data": {
"task_id": "EF4PBIXHZKGOWFP6",
"status": "running",
"created_time": "2026-09-25T16:21:46"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Seedream
Seedream 5.0 Lite 文生图
Seedream 5.0 Lite 文生图 API 根据文字描述批量生成视觉变体,用于探索图像创意。
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/lite/text-to-image",
"input": {
"prompt": "A scientifically accurate educational infographic explaining the honeybee waggle dance, drawn in a warm naturalist illustration style on cream paper. A title across the top reads exactly \"THE WAGGLE DANCE\". Below it, four numbered panels in a 2x2 grid, each with one short caption in clean capital letters. Panel 1 caption \"1. A FORAGER FINDS FLOWERS\": a worker bee flies from a wooden hive to a field of purple lavender; a dotted flight line leads to the flowers, a small sun sits in the sky, and a thin arc marks a 40 degree angle between the sun direction and the flight line. Panel 2 caption \"2. SHE DANCES ON THE COMB\": a vertical honeycomb of hexagonal wax cells; the returning bee traces a figure-eight path whose straight waggle run is tilted 40 degrees to the right of vertical, with a dashed vertical reference line, a thin arc marking the 40 degree angle between that line and the waggle run, and a small upward arrow whose tip carries the single word \"SUN\" to show that straight up on the comb stands for the direction of the sun. Panel 3 caption \"3. LONGER WAGGLE, FARTHER FOOD\": three waggle runs of increasing length drawn side by side, each connected to a flower patch placed at an increasing distance from the hive. Panel 4 caption \"4. SISTERS FOLLOW THE MAP\": several bees that watched the dance fly out from the hive along the same 40 degree angle to the sun and reach the lavender field. The 40 degree angle must stay consistent in panels 1, 2 and 4. Anatomically correct bees with six legs and four wings, readable fine linework, every word spelled correctly, no other text, no watermark.",
"size": "3K",
"n": 1,
"enable_safety_checker": true
}
}
'{
"code": 200,
"data": {
"task_id": "EF4PBIXHZKGOWFP6",
"status": "running",
"created_time": "2026-09-25T16:21:46"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- bytedance/seedream/v5/lite/text-to-image - 根据文本提示词生成图像。
功能
- 根据文本提示词生成图像。
- 通过
n控制输出图像数量。
输出选项
图像尺寸
size:可选。默认:1:1。- 预设:
2K、3K、1:1、4:3、3:4、16:9、9:16、3:2、2:3、21:9。 - 自定义尺寸时,提供包含整数
width和height的对象,两者都必须为正数。 - 自定义尺寸也可以使用
WIDTHxHEIGHT字符串,两个正数之间用x或X分隔。
图像数量
n:可选。要生成的图像数量。1到15的整数。默认:1。
高级参数
model 和可选的 callback_url 放在请求根级。所有工作流参数(包括输出选项)都放在 input 内。
提示词
prompt:必填。描述期望的图像。长度:3-3,000 个字符。- 长度按去除首尾空白后计算。
安全检查
enable_safety_checker:可选。设为true开启内容安全检查,设为false关闭。默认:true。
授权
使用 VIDGO_API_KEY。
请求体
application/json