generate image
generate_imageCreate an image with Grok Imagine or ChatGPT Image. A prompt that names SWOGE is drawn from the official SWOGE character. With an API key: billed at its real cost, up to the quoted maximum. Without a key (x402): a fixed price per request, quoted in the 402. Returns image URLs.
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) |