All Models

Z.ai logo

GLM Image API

GLM Image creates images from text and edits reference images with written instructions, including changes to lighting, artistic style and scene content.

Try in Studio
More options (2)
Generate

Pricing depends on the selected inputs. See the rates below.

GLM Image example

Supported modes

Edit

Edit uses images and prompt. Adjust the model options to prepare a request for this mode.

image.edit

Text to Image

Text to Image uses prompt. Adjust the model options to prepare a request for this mode.

image.generate

Pricing

Image editing

Price per run for each listed option.

OfferingPrice (USD)
All listed options$0.12 / run
  • Images count: 1, 2, 3 (same price).

Image generation

Price per run for each listed option.

OfferingPrice (USD)
Per run$0.12 / run

Edit options

OptionDetailsDefault
Images *
images
Public URLs, data URIs, or asset ids.โ€”
Prompt *
prompt
The positive prompt for the generation.โ€”
Format
output_format
The format of the output image. Options: jpeg, png, webp."jpeg"
Seed
seed
The random seed to use for the generation. -1 means a random seed will be used.โ€”
Size
size
The size of the generated media in pixels (width*height). Minimum: 256. Maximum: 2048.โ€”

GLM Image

GLM Image is Z.ai's model for text-to-image generation and reference-guided image editing. A written description can define an original image, while supplied images provide the visual starting point for revisions. These operations support creating a concept and then developing its appearance through directed changes.

Editing instructions can change the lighting, time of day or setting, apply an artistic style, and add or remove scene elements. References guide the transformation, helping retain key visual elements as the requested changes are applied.

What it's good for

For concept art and campaign development, GLM Image can turn an idea into an initial visual, then explore variations around that composition. This is useful when assessing how a scene reads with a different mood or environment.

Existing artwork can become a starting point for seasonal imagery, alternate settings or style studies. A daylight scene can be reworked as a night scene, while a landscape can be adapted to another season.

Run GLM Image on Protoface

Use GLM Image in Protoface Studio without writing code. Choose your inputs and generation settings, then generate with affordable, usage-based pricing. For your own AI app or workflow, use the Protoface API to submit generations and retrieve their outputs.

Model publisher

About Z.ai

Z.ai develops generative AI models including GLM-Image, combining autoregressive methods with diffusion decoding in its image research. That work emphasizes rendering text within images and composing information-rich visuals, while also supporting image edits, style changes and generation that preserves the identity of people and objects.

  • Image generation
  • Text rendering
  • Image editing

Related models

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai