跳转到主要内容
POST
/
generate
/
k
/
seedream-v4-edit
SeeDream V4 Edit 图片编辑
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/seedream-v4-edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "image_resolution": "1K",
  "image_size": "square_hd",
  "image_urls": [
    "https://example.com/image.jpg"
  ],
  "max_images": 1,
  "prompt": "Refer to this logo and create a single visual showcase for an outdoor sports brand named '\''KIE AI'\''.",
  "seed": 42
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
基于输入图片进行高质量编辑,支持最多 10 张参考图和 1K/2K/4K 分辨率输出。

Authorizations

Authorization
string
header
required

请使用您的 API Token 进行认证

Body

application/json

Task parameters

image_urls
string[]
required

图片 URL 列表(必填)- 用于编辑的输入图片列表,最多10张

Required array length: 1 - 10 elements
Example:
["https://example.com/image.jpg"]
prompt
string
required

提示词(必填,最大5000字符)- 图片编辑的文本提示

Maximum length: 5000
Example:

"Refer to this logo and create a single visual showcase for an outdoor sports brand named 'KIE AI'."

image_resolution
enum<string>
default:1K

图片分辨率(可选,默认 1K)- 最终图片分辨率(像素级别)

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

"1K"

image_size
enum<string>
default:square_hd

图片尺寸(可选,默认 square_hd)- 生成图片的尺寸

可用选项:
square,
square_hd,
portrait_4_3,
portrait_3_2,
portrait_16_9,
landscape_4_3,
landscape_3_2,
landscape_16_9,
landscape_21_9
Example:

"square_hd"

max_images
integer
default:1

最大图片数(可选,范围 1-6,默认1)- 单次运行生成的最大图片数量

Required range: 1 <= x <= 6
Example:

1

seed
integer

随机种子(可选)- 用于可复现性的随机种子

Example:

42

Response

OK

task_id
string
required

Task ID

Example:

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