Generate images
image_generateTurn text prompts into images using an OpenAI-compatible endpoint. Returns inline base64 or download URLs for easy access.
Instructions
Generate one or more images from a text prompt through an OpenAI-compatible images/generations endpoint. Images are returned inline as base64 when available, otherwise as download URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Optional number of images to generate (1-4). | |
| size | No | Optional image size such as 1024x1024. | |
| model | No | Optional model override. | |
| prompt | Yes | Text description of the image to generate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Description of the generated images. | |
| count | Yes | Number of images generated. | |
| model | Yes | Model used for the request. |