seedream-5.0-lite/text-to-image

seedream-5.0-lite/text-to-image
图像ByteDanceSeedream 5.0 Litetext-to-image
字节最新一代的图像生成模型

鉴权与连接

Base URL
https://backend:8000
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
模型名 (model)
seedream-5.0-lite/text-to-image

接入协议

为什么选这个协议

适合需要提交任务并轮询状态的图像、视频、音频生成工作流。

接口地址
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

请求 / 响应 JSON

// REQUEST
{
  "model": "seedream-5.0-lite/text-to-image",
  "input": {
    "prompt": "A red balloon in blue sky",
    "image_size": "1K"
  }
}
// RESPONSE
{
  "id": "job_example",
  "object": "job",
  "status": "processing",
  "model": "seedream-5.0-lite/text-to-image",
  "created": 1710000000,
  "request_id": "req_example"
}

请求字段 / 响应字段

// INPUT SCHEMA
字段类型必填
promptstringY
image_sizeenumN
// RESPONSE SCHEMA
字段类型必填
output.images[]imageN

代码示例

cURLrequest.sh
curl -X POST "https://backend:8000/v1/jobs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "seedream-5.0-lite/text-to-image",
  "input": {
    "prompt": "A red balloon in blue sky",
    "image_size": "1K"
  }
}'

# 查询任务状态 cURL
# 将 job_example 替换为提交任务返回的 task_id
curl -X GET "https://backend:8000/v1/jobs/job_example" \
  -H "Authorization: Bearer YOUR_API_KEY"