AigenwayDocumentation

Google Banana / Gemini Image / Imagen 4 Ultra / Text to image

google_banana/imagen-4.0-ultra-generate-001/text_to_image
Async

Generate an image from a text prompt.

Parameters

NameTypeRequiredDescriptionAllowed valuesBundle dim.
promptstring
yes
Text prompt describing the desired output.
resolutionstringnoOutput image resolution tier.0.5K, 1K, 2K, 4K
aspect_ratiostringnoOutput aspect ratio.1:1, 3:4, 4:3, 9:16, 16:9
callback_urlstringnoWebhook URL invoked when async task completes.
images_countintegerno

Example request

{
  "provider": "google_banana",
  "model": "imagen-4.0-ultra-generate-001",
  "method": "text_to_image",
  "params": {
    "prompt": "A serene mountain lake at dawn, photorealistic",
    "resolution": "2K",
    "aspect_ratio": "16:9",
    "images_count": 1
  }
}

Example response

{
  "status": "queued",
  "task_id": "tsk_01H..."
}
Pricing: see your dashboard (auth required).