Skip to main content
POST
/
generate
/
k
/
seedream-4-5-edit
SeeDream 4.5 Edit Image Editing
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"
}
Edit images using ByteDance’s Seedream 4.5 Edit model. Key Features:
  • Smart Editing - Intelligently edit input images based on text instructions
  • 4K Ultra HD - Support basic (2K) and high (4K) output quality levels
  • Multiple Aspect Ratios - Support 1:1, 4:3, 16:9, 9:16, 21:9 and more
  • Precise Control - Achieve accurate image modifications through natural language descriptions

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

image_urls
string[]
required

Input image URLs (required)

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

Prompt (required, max 1000 characters) - describes how to edit the image

Required string length: 1 - 1000
Example:

"Change the background to a beach scene"

aspect_ratio
enum<string>
default:1:1

Aspect ratio (optional, default 1:1)

Available options:
1:1,
4:3,
3:4,
16:9,
9:16,
2:3,
3:2,
21:9
Example:

"1:1"

quality
enum<string>
default:2K

Image quality (optional, default basic) - basic outputs 2K, high outputs 4K

Available options:
2K,
4K
Example:

"2K"

Response

OK

task_id
string
required

Task ID

Example:

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