infery
← All models

GLM Image

glm-image

Image generationby Zhipu

Create high-quality images with accurate text rendering and rich knowledge details—supports editing, style transfer, and maintaining consistent characters across multiple images.

images

Details

Accepts
text + image

Pricing

Price
6.25 cr / megapixel

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedRandom seed for reproducibility. The same seed with the same prompt will produce the same image.
promptrequiredstringText prompt for image generation.
sync_modebooleanIf True, the image will be returned as a base64 data URI instead of a URL.
image_sizeOutput image size.
image_urlsarrayURL(s) of the condition image(s) for image-to-image generation. Supports up to 4 URLs for multi-image references.
num_imagesintegerNumber of images to generate.
output_formatstringenum: jpeg, pngOutput image format.
guidance_scalenumberClassifier-free guidance scale. Higher values make the model follow the prompt more closely.
num_inference_stepsintegerNumber of diffusion denoising steps. More steps generally produce higher quality images.
enable_safety_checkerbooleanEnable NSFW safety checking on the generated images. Disabling it requires account authorization; unauthorized requests are always checked, and images flagged as unsafe are returned as black images.
enable_prompt_expansionbooleanIf True, the prompt will be enhanced using an LLM for more detailed and higher quality results.

Output

FieldTypeDescription
seedinteger Seed of the generated Image. It will be the same value of the one passed in the input or the randomly generated that was used in case none was passed.
imagesarrayList of URLs to the generated images.
promptstringThe prompt used for generating the image.
timingsobject
has_nsfw_conceptsarrayWhether the generated images contain NSFW concepts.