generate_image
Create an image from a text description and save it locally. Get the file path to view it, and each request generates only one image to control costs.
Instructions
Generate an image from a text prompt and save it to disk. Call this when the user asks to draw, create, render, illustrate or generate a picture, photo or artwork. Returns the absolute paths of the saved files; pass one to read_image to view it. Each call costs real money, so call it once per explicit user request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size as WxH, for example 1024x1024. Some models require at least 3686400 pixels, so 2048x2048 is the safe large size. | |
| model | No | Image model id for this call only. Omit to use the configured default. Call get_config for the available ids and their size constraints. | |
| prompt | Yes | What to draw, in natural language. Prefer a specific, visual description: style, subject, lighting and composition all help. | |
| outputDir | No | Directory for this call only. Omit to use the configured default. | |
| timeoutMs | No | How long this call may wait, in milliseconds. Omit to use the configured default. The ceiling is 3600000 (one hour). |