Sign inContact usStart free

glm-5.1

Z.aianthropic

glm-5.1 is a Z.ai chat and completion model you can call through flatkey.ai's OpenAI-compatible API. On flatkey it runs at $0.401333 per 1M input tokens — about 53% below the $0.86 official list price, and $1.6333 per 1M output tokens. One API key covers GPT, Claude, Gemini, DeepSeek and 40+ other live models, so you can switch models without changing SDKs or juggling separate accounts. Billing is prepaid with live usage analytics and a single invoice, which keeps spend predictable as you scale.

Get your API keySave ~53% vs official pricing
30-day success rate
Throughput
First-token latency
Requests (30 days)

Pricing

Input
List price $0.86
$0.401333/ 1M tokens
Output
List price $3.5
$1.6333/ 1M tokens
Cache read
List price $0.168046
$0.078421/ 1M tokens

Specifications

Provider
Z.ai
Modality
Text / chat
Access
OpenAI-compatible API
Endpoints
anthropic

How to use the glm-5.1 API

  1. 1
    Create a flatkey.ai account and API key
    Sign up for free, then generate an API key in the console. New accounts get bonus credit on their first top-up.
  2. 2
    Point your OpenAI client at flatkey
    Set base_url to https://router.flatkey.ai/v1 and use your flatkey key as the API key. No other code changes are needed — the API is OpenAI-compatible.
  3. 3
    Call glm-5.1
    Send a request with model set to "glm-5.1" using the OpenAI SDK or curl. Copy a ready-to-run example below.
API example
curl "https://router.flatkey.ai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $FLATKEY_API_KEY" \
  -d '{"model":"glm-5.1","messages":[{"role":"user","content":"Say hello in one sentence."}]}'

glm-5.1 vs similar models

ModelInput / 1M
glm-5.1$0.401333
glm-5.2$0.56
glm-5-turbo$0.288
glm-4.7$0.1144
glm-5$0.28

Availability (last 30 days)

Frequently asked questions

How much does the glm-5.1 API cost?

On flatkey.ai, glm-5.1 costs $0.401333 per 1M input tokens and $1.6333 per 1M output tokens, roughly 53% below the official list price. Top up $200 and get $100 free to stretch the budget further.

Is glm-5.1 OpenAI-compatible?

Yes. Keep your existing OpenAI SDK, switch base_url to https://router.flatkey.ai/v1, and use your flatkey key. The model id stays "glm-5.1".

Is glm-5.1 free to use?

Usage is pay-as-you-go, but priced well below the official list (about 53% cheaper), and new accounts receive bonus credit on their first top-up, so you can start testing at low cost.

How do I get an API key for glm-5.1?

Sign up on flatkey.ai, create an API key in the console, and add prepaid balance. You can start calling glm-5.1 in minutes.

What other models can I use with the same key?

One flatkey key gives you GPT, Claude, Gemini, DeepSeek and 40+ other live models through a single OpenAI-compatible endpoint and one invoice.

How reliable is glm-5.1 on flatkey?

We publish the live 30-day success rate, throughput and latency for glm-5.1 directly on this page, updated from real traffic.

Start building with glm-5.1

One OpenAI-compatible key, prepaid billing, and bonus credit on your first top-up. Sign up in under a minute.

Get your API key