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), never timers or background shells. 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, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "generate_image"
}
}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. | |
| background | No | `transparent` gives a PNG with alpha. Only `gpt-image-2.5` and `gpt-image-2.6` take it; other models refuse it. | |
| 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. | |
| studio_run_id | No | The open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask. | |
| idempotency_key | No | Retry key (IDEMPOTENCY). |