Skip to main content
POST
/
generate
/
k
/
imagen4-ultra
Imagen4-Ultra Image Generation
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/imagen4-ultra \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspect_ratio": "1:1",
  "negative_prompt": "blurry, low quality",
  "prompt": "a photorealistic portrait of a woman",
  "seed": 0
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Flagship version of Imagen 4, providing the highest quality image generation results.

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)

Maximum length: 5000
Example:

"a photorealistic portrait of a woman"

aspect_ratio
enum<string>
default:1:1

Aspect ratio (optional, default 1:1)

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

"1:1"

negative_prompt
string

Negative prompt (optional)

Example:

"blurry, low quality"

seed
integer

Random seed (optional, integer type)

Example:

0

Response

OK

task_id
string
required

Task ID

Example:

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