generate_image
Generate an image from a text prompt, returning it as an inline PNG for chat. Use when a user asks for an image or a visual artifact improves the answer.
Instructions
Generate a new visual image artifact from a text prompt and return it as an inline PNG for the GUI/chat. Use when the user asks for an image or when a small visual artifact would clearly make the answer more useful. Prefer built-in chart-returning metric tools for system data. Requires an OpenAI image API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output dimensions. Use 1024x1024 unless portrait or landscape is requested. | 1024x1024 |
| model | No | Image model to use. Defaults to gpt-image-1. | gpt-image-1 |
| prompt | Yes | Detailed image prompt describing subject, composition, style, and any text to include. | |
| quality | No | Generation quality/cost tradeoff. | auto |
| background | No | Background handling for models that support it. | auto |