Skip to main content
POST
/
generate
/
k
/
seedream-4-5
SeeDream 4.5 Image Generation
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"
}
Generate high-quality images from text using ByteDance’s Seedream 4.5 model. Key Features:
  • 4K Ultra HD - Support basic (2K) and high (4K) quality levels
  • Multiple Aspect Ratios - Support 1:1, 4:3, 16:9, 9:16, 21:9 and more
  • Enhanced Performance - Improved image quality and generation speed over version 4.0
  • Rich Styles - Inherits 30+ artistic styles from 4.0 with stronger expressiveness

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt (required, max 1000 characters)

Required string length: 1 - 1000
Example:

"A beautiful landscape with mountains and rivers"

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:

"16:9"

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"