跳转到主要内容
POST
/
generate
/
k
/
seedream-4-5
SeeDream 4.5 图片生成
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/seedream-4-5 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A beautiful landscape with mountains and rivers",
  "aspect_ratio": "16:9",
  "quality": "2K"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
使用字节跳动的 Seedream 4.5 模型从文本生成高质量图片。 模型特点:
  • 4K 超高清 - 支持 basic (2K) 和 high (4K) 两种质量等级
  • 多种画幅 - 支持 1:1、4:3、16:9、9:16、21:9 等多种画幅比例
  • 增强性能 - 相比 4.0 版本进一步优化图像质量和生成速度
  • 风格丰富 - 继承 4.0 的 30+ 艺术风格,表现力更强

Authorizations

Authorization
string
header
required

请使用您的 API Token 进行认证

Body

application/json

Task parameters

prompt
string
required

提示词(必填,最大1000字符)

Required string length: 1 - 1000
Example:

"A beautiful landscape with mountains and rivers"

aspect_ratio
enum<string>
default:1:1

宽高比(可选,默认 1:1)

可用选项:
1:1,
4:3,
3:4,
16:9,
9:16,
2:3,
3:2,
21:9
Example:

"16:9"

quality
enum<string>
default:2K

图片质量(可选,默认 2K)- 2K 输出 2K,4K 输出 4K

可用选项:
2K,
4K
Example:

"2K"

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"