跳转到主要内容
POST
/
generate
/
k
/
seedream-4-5-edit
SeeDream 4.5 Edit 图片编辑
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/seedream-4-5-edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_urls": [
    "https://example.com/input.jpg"
  ],
  "prompt": "Change the background to a beach scene",
  "aspect_ratio": "1:1",
  "quality": "2K"
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
使用字节跳动的 Seedream 4.5 Edit 模型编辑图片。 模型特点:
  • 智能编辑 - 根据文本指令对输入图片进行智能编辑
  • 4K 超高清 - 支持 basic (2K) 和 high (4K) 两种输出质量
  • 多种画幅 - 支持 1:1、4:3、16:9、9:16、21:9 等多种画幅比例
  • 精准控制 - 通过自然语言描述实现精确的图片修改

Authorizations

Authorization
string
header
required

请使用您的 API Token 进行认证

Body

application/json

Task parameters

image_urls
string[]
required

输入图片 URL(必填)

Minimum array length: 1
Example:
["https://example.com/input.jpg"]
prompt
string
required

提示词(必填,最大1000字符)- 描述如何编辑图片

Required string length: 1 - 1000
Example:

"Change the background to a beach scene"

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:

"1:1"

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"