images
Image generation and edits on the image aliases, in OpenAI's and OpenRouter's shapes.
Generate images (OpenRouter format)
OpenRouter's images API: size as `resolution` and `aspect_ratio`, reference images as `input_references` (https or data URLs), and `data[].media_type` on each image.
Edit images
OpenAI image edits on an image alias, as multipart/form-data: one or more `image` (or `image[]`) files, an optional `mask`, and a `prompt`. Reference images bill as image input tokens.
Create images
OpenAI image generation on an image alias (`gpt-image-2.6-flare`). Images come back as `b64_json`. Billed to the wallet by text and image tokens, never to the included allowance.