# GLM-Image

GLM-Image costs $0.015 per image on LLM API. It generates images from text.

Model ID: `glm-image` · Z.ai · Image generation · Released March 1, 2025
Updated: 2026-10-13
Canonical: https://llmapi.ai/models/zhipu-glm-image/

- Per image: $0.015
- Modes: Generate

## Pricing

Served by Z.ai, the only provider.

| Price | Amount | Per |
| --- | --- | --- |
| Image | $0.015 | per image |

**Volume pricing.** At higher monthly volume, GLM-Image may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Specifications

- Modes: Generate

## Call GLM-Image

### Generate (`POST /v1/images/generations`)

Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

result = client.images.generate(
    model="glm-image",
    prompt="A lighthouse at dawn, watercolor",
)
print(result.data[0].url)
```

Docs: [Generate docs](https://docs.llmapi.ai/api/v1/images)

## More from Z.ai

- [CogView-4](https://llmapi.ai/models/cogview-4/): $0.01 per image

Prices synced 2026-11-09.

Next step: [Get API key](https://app.llmapi.ai/signup)
