Skip to main content
POST
/
generate
/
k
/
seedream-v4
SeeDream V4 Image Generation
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/seedream-v4 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "image_resolution": "1K",
  "image_size": "square_hd",
  "max_images": 1,
  "prompt": "Draw the following system of binary linear equations and the corresponding solution steps on the blackboard: 5x + 2y = 26; 2x -y = 5.",
  "seed": 42
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
High-quality image generation model supporting multiple resolutions (1K/2K/4K) and various aspect ratios.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

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

Maximum length: 5000
Example:

"Draw the following system of binary linear equations and the corresponding solution steps on the blackboard: 5x + 2y = 26; 2x -y = 5."

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"