ExploreModels
Pricing
Explore

GLM Image

All text to image models

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

Inference$ Commercial useFrom 3 credits per run

About GLM Image

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

text-to-image

Pricing

A run with the default settings costs 3 credits. The exact cost updates in the playground as you change settings, and you're only charged when you press Run. Failed runs are refunded automatically.

Inputs

prompttextarearequired

Text prompt for image generation.

image_sizeselectdefault: "square_hd"

Output image size.

Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9, portrait_3_2, landscape_3_2, portrait_hd, landscape_hd

num_inference_stepsintegerdefault: 30

Number of diffusion denoising steps. More steps generally produce higher quality images.

guidance_scalenumberdefault: 1.5

Classifier-free guidance scale. Higher values make the model follow the prompt more closely.

seedinteger

Random seed for reproducibility. The same seed with the same prompt will produce the same image.

num_imagesintegerdefault: 1

Number of images to generate.

enable_safety_checkerbooleandefault: true

Enable 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.

output_formatselectdefault: "jpeg"

Output image format.

Options: jpeg, png

sync_modebooleandefault: false

If True, the image will be returned as a base64 data URI instead of a URL.

enable_prompt_expansionbooleandefault: false

If True, the prompt will be enhanced using an LLM for more detailed and higher quality results.

More from GLM Image

Nano Banana Pro
Nano Banana Pro

Nano Banana Pro is Google's new state-of-the-art image generation and editing model

realismtypography
text-to-image
FLUX.1 [schnell]
FLUX.1 [schnell]

FLUX.1 [schnell] is a 12 billion parameter flow transformer that generates high-quality images from text in 1 to 4 steps, suitable for personal and commercial use.

text-to-image
Nano Banana 2
Nano Banana 2

Nano Banana 2 is Google's new state-of-the-art fast image generation and editing model

text-to-image
Nano Banana 2.1
Nano Banana 2.1

Nano Banana 2.1 by Google generates images from text prompts, with output resolutions up to 4K, adjustable aspect ratios, and optional web search grounding.

image generationphotorealism
text-to-image
GPT Image 2 API
GPT Image 2 API

GPT Image 2, OpenAI's latest image model, is capable of creating extremely detailed images with fine typography.

gpt-image-2openai
text-to-image
GPT Image 2.5 Flare Text to Image
GPT Image 2.5 Flare Text to Image

OpenAI's default image model for most applications. Fast, high-quality generation with natural lighting, rich textures, and support for complex layouts including transparent backgrounds.

realismtypography
text-to-image
FLUX.1 [dev]
FLUX.1 [dev]

FLUX.1 [dev] is a 12 billion parameter flow transformer that generates high-quality images from text. It is suitable for personal and commercial use.

text-to-image
GPT Image 2.6 Flare Text to Image✦ new
GPT Image 2.6 Flare Text to Image

OpenAI's default image model for most applications. Fast, high-quality generation with natural lighting, rich textures, and support for complex layouts including transparent backgrounds.

realismtypography
text-to-image
GPT Image 2.6 Sunburst Text to Image✦ new
GPT Image 2.6 Sunburst Text to Image

OpenAI's precision-focused image model, built for premium visual work, extra fidelity on intricate detail, in exchange for longer generation times.

realismtypography
text-to-image
GPT Image 2.5 Sunburst Text to Image
GPT Image 2.5 Sunburst Text to Image

OpenAI's precision-focused image model, built for premium visual work, extra fidelity on intricate detail, in exchange for longer generation times.

realismtypography
text-to-image
Flux 2 Pro
Flux 2 Pro

Image editing with FLUX.2 [pro] from Black Forest Labs. Ideal for high-quality image manipulation, style transfer, and sequential editing workflows

text-to-image
Nano Banana
Nano Banana

Google's famous original image generation and editing model

image-generation
text-to-image