generate_image
Generate images from text prompts, select HD or standard quality, and choose from preset aspect ratios or custom dimensions.
Instructions
Generate an image from a text prompt using Z.AI glm-image model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The text prompt describing the image to generate | |
| quality | No | Image quality: "hd" (default) or "standard" | |
| custom_size | No | Custom size (e.g., "1536x1024"). Must be 1024-2048px, divisible by 32, max 2^22 total pixels. Ignored if size_preset is specified | |
| size_preset | No | Recommended size preset by aspect ratio. "1:1"=1280x1280 (default), "3:2"=1568x1056, "2:3"=1056x1568, "4:3"=1472x1088, "3:4"=1088x1472, "16:9"=1728x960, "9:16"=960x1728 | |
| output_filename | No | Optional output filename (without path) |