generate_image
Create an image from a text prompt, save it to an absolute path, and use your configured provider or API key. Guides setup if no provider is configured.
Instructions
Generate an image from a text prompt and save it to an absolute file path. Uses your configured image_gen provider (codex CLI on your ChatGPT plan — no API key — or OpenAI/Gemini with your own key). If none is set up, it tells you how to enable one. Pass an absolute out_path; the saved file path is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | size hint for API providers, e.g. 1024x1024 | |
| model | No | override the provider default model | |
| prompt | Yes | natural-language description of the image to generate | |
| out_path | Yes | ABSOLUTE file path to save the PNG to | |
| provider | No | force a specific provider instead of auto-resolving |