GLM Image text-to-image generation tool creates high-quality images from text prompts, producing HD images with fine details and high consistency.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
Supports: application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
size
string
default:"1280x1280"
Image size. Recommended values: 1280x1280 (default), 1568x1056, 1056x1568, 1472x1088, 1088x1472, 1728x960, 960x1728. Custom sizes: dimensions should be 1024-2048px, max total pixels 4194304, both must be multiples of 32.
Text description of desired image. Describe the scene, subject, style, and details you want in the generated image.
Image quality. HD produces finer details with higher consistency.Optional values: hd
Control AI watermark on generated images. true: Enable watermark (default). false: Disable watermark
Response
Use the task_id to request the Task Result API to retrieve the generated outputs.