Generate an image
generate_imageGenerate an image from a text prompt (optionally with input images for editing or reference). Waits for the result and returns the image URL. Costs credits from the connected Imaginode account; failures are refunded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model key from list_models (kind image). Default: nano-banana-2. | |
| prompt | Yes | What to generate, in natural language. English works best. | |
| image_urls | No | Optional input image URLs (editing or reference). Must be media hosted on the Imaginode account (Firebase Storage URLs from the media library or previous generations). | |
| aspect_ratio | No | Optional aspect ratio like 16:9, 1:1, 9:16. |