generate_image
Generate images from text prompts with the image2 model. Supports async fire-and-forget or synchronous mode. Choose preset or custom sizes up to 3840px.
Instructions
Generate an image from a text prompt using the company image2 model. Use async_mode=true (default) for fire-and-forget — returns immediately, image saves to disk in the background. Use async_mode=false to wait for the image and see it in the response. Size: Presets: 1024x1024, 1024x1536, 1536x1024, 2048x1152, 2048x2048, 2160x3840, 3840x2160, auto. Custom: WxH (max 3840px per side, multiples of 16, ratio ≤ 3.0:1, pixels 655,360–8,294,400)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| prompt | Yes | ||
| quality | No | auto | |
| filename | No | ||
| async_mode | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |