generate_image
Generate a BRAND-NEW image via Gemini; stores it and returns image_url (+ markdown preview). Billed — REQUIRES confirmSpend=true after a REAL human yes in a SEPARATE message. STANDALONE: omit sitePageId → account-root AI folder; after success SHOW the image. PAGE/SITE: forPage=true AND sitePageId= → Sites/{site}/{page}/AI; propose prompt+quality+charge first, then place the URL on the page. quality: standard/high/premium. On aiSpendExhausted: warn + Billing — do not retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Style hint: realistic, cartoon, minimal, abstract | |
| prompt | Yes | Detailed description of the image (role, subject, style, aspect ratio). | |
| forPage | No | true when this image is for a site/page you are building. | |
| quality | No | Quality tier: standard (default), high, or premium. | |
| sitePageId | No | Site page id. Required when forPage=true — files under Sites/{site}/{page}/AI. Omit for account-root AI. | |
| confirmSpend | No | Must be true only after the human explicitly accepted THIS generation (prompt/quality + AI charge) in a SEPARATE message. |