Skip to main content
POST
/
generate
/
k
/
imagen4-fast
Imagen4-Fast Image Generation
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/imagen4-fast \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "a serene mountain landscape",
  "aspect_ratio": "16:9",
  "negative_prompt": "blurry, low quality",
  "num_images": 1,
  "seed": 0
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Generate images quickly using Google DeepMind’s Imagen 4 Fast model. Key Features:
  • Ultra-Fast Generation - Up to 10x faster than Imagen 3, ideal for high-frequency generation
  • Cost-Effective - Half the cost of standard version, suitable for batch generation
  • Quality Maintained - Excellent image quality despite speed improvements
  • SynthID Watermark - Built-in invisible digital watermark

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)

Required string length: 1 - 5000
Example:

"a serene mountain landscape"

aspect_ratio
enum<string>
default:16:9

Aspect ratio (optional, default 16:9)

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

"16:9"

negative_prompt
string

Negative prompt (optional)

Example:

"blurry, low quality"

num_images
integer
default:1

Number of images (optional, 1-4, default 1)

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

1

seed
integer

Random seed (optional, integer)

Example:

0

Response

OK

task_id
string
required

Task ID

Example:

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