Generate an image with OpenAI
generate_imageCreates an image from a text prompt, letting you specify size, model, and quality. Use it to produce visuals on demand.
Instructions
Generate one image from a text prompt using OpenAI's image generation API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image dimensions. Defaults to 1024x1024. | |
| model | No | Optional image model ID. Defaults to gpt-image-2. | |
| prompt | Yes | A detailed description of the image to generate. | |
| quality | No | Image quality. Defaults to medium. |