Compare

GPT-6 Astra 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
GPT-6 Astra
openai/gpt-6-astra
GLM-5.1
zai-org/glm-5.1
Provider
OpenAI
Z.ai
Family
Modality
text
text
Context window
1,050,000 tok
202,745 tok
Max output
128,000 tok
131,072 tok
Released
2026-09-10
2026-04-14
License
Open-weight
Open-weight
Input price
$10.00 /1M
$1.40 /1M
Output price
$50.00 /1M
$4.40 /1M
Tools
yes
yes
Streaming
yes
yes
Vision
yes
—
JSON mode
yes
yes
Reasoning
yes
yes
Prompt caching
—
—
Batch API
—
—
Try it
Open in playground →
Open in playground →
GPT-6 Astra
openai/gpt-6-astra
Full spec →

GPT-6 Astra is OpenAI's most capable model, built for complex reasoning, coding, computer use, research, and document creation.

Strengths
  • General-purpose chat
  • Long context
  • Tool use
Use cases
ChatbotsContent generationAgentic workflows
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-...",
)

# GPT-6 Astra
client.chat.completions.create(
    model="openai/gpt-6-astra",
    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 →