Generate an AI image
generate_imageGenerates an AI image on the signed-in aicut account and puts the aicut card in front of the user. It waits for the image server-side for as long as one request safely can (about 24 seconds), so it usually returns the finished image with its url directly. WHEN: the user asks for an image. Call list_models first if you have not this session (an unpublished combination is rejected). get_recipe starter-image has the first-image steps. CONSENT: a real person's picture only with their permission, never a public figure or celebrity. AFTER: succeeded is finished; queued or processing was not ready in time: wait_for_generation with the returned id and media: "image". THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. No card? Give the user the url. TIMING: an image usually finishes in under 90 seconds and can take up to about 4 minutes; this call waits about 24 seconds for it itself. COST: this spends the user's tokens. SPENDS TOKENS: price with estimate_only: true, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | `false` returns the job id at once (no wait of about 24 seconds): for several images, start them all, then ONE `wait_for_generation` with `ids`. Default true. | |
| model | Yes | Model id exactly as `list_models` returns it (for example `gpt-image-2.5`). The user's pick, else the one `list_models` marks `recommended`; never a cheaper one to save them tokens. | |
| images | No | Input image URLs to edit or use as references, on the models that accept them: public https URLs (aicut fetches and stores them) or earlier generations' URLs on this account. | |
| prompt | No | What the image should show. The model's `prompt` parameter in `list_models` gives its character limit. | |
| quality | No | Quality tier, on the models that publish a `quality` parameter; higher costs more. Only if the user asked; never to save tokens, never carried over. | |
| resolution | No | One of the model's published options (for example `1k`); higher costs more. Only if the user asked; never to save tokens, never carried over. | |
| aspect_ratio | No | One of the model's published `aspect_ratios` (for example `9:16`). | |
| estimate_only | No | Price only; creates nothing. | |
| idempotency_key | No | Retry-safety key (IDEMPOTENCY). |