GLM Image Generation
Image Generator
GLM Image Generation
POST
GLM Image Generation
GLM Image text-to-image generation tool creates high-quality images from text prompts, producing HD images with fine details and high consistency.Documentation Index
Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request Headers
Supports:
application/jsonBearer authentication format, for example: Bearer {{API Key}}.
Request Body
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:
hdControl 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.