Create a provider API key and set the local environment variable OPENROUTER_API_KEY, then run the example below.
Request URL
https://openrouter.ai/api/v1/chat/completions
Connection settings
Base URL: https://openrouter.ai/api/v1
Catalog model: z-ai/glm-5
Request API model: z-ai/glm-5
Protocol: openai
Provider routing: venice/fp8
API key env: OPENROUTER_API_KEY
Docs: https://openrouter.ai/docs
curl
curl "https://openrouter.ai/api/v1/chat/completions" -H "Authorization: Bearer $OPENROUTER_API_KEY" -H "Content-Type: application/json" -d '{
"model": "z-ai/glm-5",
"messages": [
{
"role": "user",
"content": "Read this support ticket and return a JSON object with \"summary\", \"urgency\" (low, medium, or high), and \"next_step\". Use null for missing details.\n\nTicket: I paid for the Pro plan yesterday, but my account still shows Free. My team needs access before tomorrow’s demo."
}
],
"provider": {
"order": [
"venice/fp8"
],
"only": [
"venice/fp8"
],
"allow_fallbacks": false,
"quantizations": [
"fp8"
]
}
}'
Prompt for your coding agent
Use the OpenAI-compatible API at https://openrouter.ai/api/v1 with model "z-ai/glm-5". Set provider.only to ["venice/fp8"] and allow_fallbacks to false. Apply the recorded quantization filter. A base slug can match multiple endpoints, so confirm the served route before using the reference price. Read the API key from the OPENROUTER_API_KEY environment variable; never hardcode it. Pricing observed on 2026-11-22: $1.00 / 1M input tokens, $3.20 / 1M output tokens, $0.20 / 1M cache read tokens. API integration docs: https://openrouter.ai/docs. Billing scope and conditions: Served by Venice through OpenRouter, not a direct-provider contract. Published rates for route venice/fp8; fp8 quantization. Other fees, tier conditions and regional access must be checked before use.. Source: https://openrouter.ai/api/v1/models/z-ai/glm-5/endpoints.
Task test prompt
Read this support ticket and return a JSON object with "summary", "urgency" (low, medium, or high), and "next_step". Use null for missing details.
Ticket: I paid for the Pro plan yesterday, but my account still shows Free. My team needs access before tomorrow’s demo.
Price facts
Input: $1.00 / 1M tokens
Output: $3.20 / 1M tokens
Cache read: $0.20 / 1M tokens
Currency: USD
Regions: global
Unit source: api
Checked: 2026-11-22T09:20:27.529Z
Source: https://openrouter.ai/api/v1/models/z-ai/glm-5/endpoints
Source check: 2026-11-22 · valid no later than 2026-11-23 09:21 UTC
Billing evidence and sources
z-ai/glm-5 · venice/fp8
Billing conditions
Served by Venice through OpenRouter, not a direct-provider contract. Published rates for route venice/fp8; fp8 quantization. Other fees, tier conditions and regional access must be checked before use.
GLM 5 API pricing: official and providers: 6 current published quote records across 1 exact API IDs and 5 providers. Compare API versions, currencies, regions and billing conditions separately; prices do not prove task quality or account access.
Latest recorded source check: 2026-11-22
Recorded changes
Latest 100 recorded price and availability changes
Showing up to 100 recent events. Prices for unavailable endpoints are retained for reference. Failed source checks do not establish that a price stayed unchanged.
Open a quote’s billing details for cache reads/writes, request fees and endpoint instructions. Batch, free, promotional and off-peak tiers are selected separately. Context-tier, storage, search, tax and platform fees may be excluded.
Find lower-cost alternatives
Find lower-cost alternatives
Choose your existing model to find lower reference costs with matching declared technical constraints. Output quality remains unverified.
Loading verified quotes…
Users’ choices · GLM 5
Describe your work to find related tasks.
Public scores by use
The same model scores differently by use. Once you pick a use, the site applies that use’s quality gate before comparing cost.
Text
Answer from sources145228707 votes · 2026-11-19
Chinese15171998 votes · 2026-11-19
Classify14479470 votes · 2026-11-19
Extract fields14479470 votes · 2026-11-19
General text145728939 votes · 2026-11-19
Multi-turn14714650 votes · 2026-11-19
Summarize146910950 votes · 2026-11-19
Translate & rewrite143916186 votes · 2026-11-19
Write14474804 votes · 2026-11-19
Code & tools
Code14987524 votes · 2026-11-19
Web & frontend14357430 votes · 2026-11-20
Industry
Business & finance14525853 votes · 2026-11-19
Legal & government14682256 votes · 2026-11-19
Medical & health14792112 votes · 2026-11-19
Scores come from Arena public-preference leaderboards (CC BY 4.0), latest published 2026-11-20. They describe the model, not your task’s success rate or a quantized channel. Arena ↗
Declared fields from the OpenRouter model catalog, bound to exact API IDs; not our tests, price approval or account availability.
Input
Text
Output
Text
Context
205K
Reasoning parameter
Supported
Knowledge cutoff
Not declared
Open-weights clue
zai-org/GLM-5
Source: https://openrouter.ai/api/v1/models, captured 2026-11-21T09:20:20.905Z, raw SHA-256: 19214ba490361282… . Unstated facts stay unknown and are not inferred from names or sibling models.
Classification sources
Source declarations for registered versions; not task quality, current account availability or price approval. Unknown versions do not inherit sibling classifications.
Snapshots and routing variants remain distinct. Choose an exact ID in the comparison before deciding; model quality and access conditions need your own review.