generate image
generate_imageUse this when you need an image: an illustration, a meme, a post visual, or the SWOGE character (a prompt that names SWOGE is drawn from the official character). Made with Grok Imagine (default) or ChatGPT Image, speed or quality, 1, 2 or 4 images. Returns image URLs. With an API key: billed at its real cost, up to the quoted maximum. Without a key (x402): a fixed price for that exact request, quoted in the 402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | how many images (default 1) | |
| quote | No | true: return the price of this call without running or paying for it | |
| prompt | Yes | what to draw, in any language | |
| quality | No | speed (cheaper) or quality (default) | |
| provider | No | grok (Grok Imagine, default) or openai (ChatGPT Image) | |
| aspect_ratio | No | image shape (default auto) |