Skip to main content
Model IDimage_generate.imagen_4
ProviderKIE (Google)
ModalityImage — Text-to-Image

Parameters

prompt
string
required
Text description of the image to generate.
image_params.aspect_ratio
string
Output aspect ratio. Options: 1:1, 16:9, 9:16, 4:3, 3:4. Default: 1:1.
image_params.negative_prompt
string
Description of elements to exclude from the image.
image_params.seed
number
Random seed for reproducible results.
callback_url
string
Webhook URL for completion notification.

Example

curl -X POST https://routerbase.kuaibaike.com/api/v1/run/image_generate.imagen_4 \
  -H "Authorization: Bearer sk-t0-xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A photorealistic portrait of a red fox in a snowy forest, professional photography",
    "image_params": {
      "aspect_ratio": "1:1"
    }
  }'