Compare

Qwen-Image-2.0-Pro vs GLM-5.1

Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 2 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.

Search2/4
Qwen-Image-2.0-Pro
alibaba/qwen-image-2.0-pro
GLM-5.1
zai-org/glm-5.1
Provider
Alibaba
Z.ai
Family
Modality
image
text
Context window
—
202,745 tok
Max output
—
131,072 tok
Released
2026-04-23
2026-04-14
License
Open-weight
Open-weight
Input price
—
$1.40 /1M
Output price
—
$4.40 /1M
Per image
$0.075 /img
—
Tools
—
yes
Streaming
—
yes
Vision
—
—
JSON mode
—
yes
Reasoning
—
yes
Prompt caching
—
—
Batch API
—
—
Try it
View model →
Open in playground →
Qwen-Image-2.0-Pro
alibaba/qwen-image-2.0-pro
Full spec →
Strengths
  • Text-to-image generation
  • Creative control
Use cases
Marketing assetsProduct mockupsConcept art
GLM-5.1
zai-org/glm-5.1
Full spec →
Strengths
  • General-purpose chat
  • Long context
  • Tool use
Use cases
ChatbotsContent generationAgentic workflows
SWITCH BETWEEN THEM

One key, all 2, one line different.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

# Qwen-Image-2.0-Pro
client.chat.completions.create(
    model="alibaba/qwen-image-2.0-pro",
    messages=[{"role":"user","content":"hello"}],
)

# GLM-5.1
client.chat.completions.create(
    model="zai-org/glm-5.1",
    messages=[{"role":"user","content":"hello"}],
)
Get an AIgateway keyRun an eval on these →