Generate Image
imageat_generate_imageTurn text prompts into images, or edit existing images using reference photos, and receive CDN URLs for instant use.
Instructions
Generate an image from a text prompt (text-to-image), optionally with reference images for image-to-image editing. Returns CDN image URL(s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id. One of: "nano-banana-pro" (default), "nano-banana-2", "nano-banana", "gpt-image-2" (OpenAI GPT Image 2), "seedream-5.0-lite", "krea-2-large", "krea-2-medium". Use these exact ids — do not invent variants like gpt-image-2.0. | |
| images | No | Reference images as base64 data URLs or http(s) URLs for image-to-image. | |
| prompt | Yes | What to generate. | |
| numImages | No | ||
| resolution | No | ||
| aspectRatio | No | e.g. "1:1", "16:9", "9:16", "4:5". | |
| outputFormat | No | ||
| enableWebSearch | No |