generate_image
Generate an image. Default model: nano_banana_2 (good quality, ~10 coins, supports reference photo). Use z_image (1 coin) only if the user wants the cheapest possible result. Use nano_banana_pro (18-24) only when the user explicitly asks for face preservation or maximum quality. Default resolution 1K — never use 2K/4K unless the user explicitly asks. If aspect ratio matters and the user did not say, ASK whether they want 9:16 (vertical), 16:9 (horizontal), or 1:1 (square). For multi-character or character-plus-outfit shots, pass extra anchor images in reference_image_urls — Nano Banana 2 / Pro accept up to 7 inputs. Returns job_id; poll check_job until status=done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| resolution | No | 1K cheapest; 4K up to 50% more. Default 1K. | |
| aspect_ratio | No | ||
| reference_image_url | No | Primary reference image. Optional. For multi-ref pass reference_image_urls instead or in addition. | |
| reference_image_urls | No | Extra reference images (Nano Banana 2 / Pro accept up to 7 total including reference_image_url). Use for multi-character, face + outfit, style references. Order matters. |