Skip to main content
POST
/
generate
/
k
/
seedream-v4-edit
SeeDream V4 Edit Image Editing
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"
}
High-quality image editing based on input images, supporting up to 10 reference images and 1K/2K/4K resolution output.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

image_urls
string[]
required

Image URL list (required) - Input image list for editing, max 10 images

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

Prompt (required, max 5000 characters) - Text prompt for image editing

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

Image resolution (optional, default 1K) - Final image resolution (pixel level)

Available options:
1K,
2K,
4K
Example:

"1K"

image_size
enum<string>
default:square_hd

Image size (optional, default square_hd) - Generated image size

Available options:
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

Max images (optional, range 1-6, default 1) - Maximum number of images per run

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

1

seed
integer

Random seed (optional) - Random seed for reproducibility

Example:

42

Response

OK

task_id
string
required

Task ID

Example:

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