GLM API · Z.ai · OpenAI-compatible

GLM-5.3 API at 15% below Z.ai’s list price.

Z.ai’s 1M-context GLM models on one OpenAI-compatible key: 15% below Z.ai’s pay-as-you-go price from your first request, and up to 25% (GLM-5.3) or 35% (GLM-5.2) below as your top-ups grow. One price at any prompt length.

  • $1 free when you sign up
  • +10% on your first top-up, up to $100
  • Failed requests are free
1M token contextReasoning · tool callingPrepaid, no subscription
up to −35%

GLM-5.2 · per 1M input tokens

Official $1.40

$0.91Tier 3

Tier 1 for new accounts: $1.19. The more you top up, the lower it goes.

  • GLM-5.3$1.40$1.05−25%

What a top-up buys

$20 is about 4,700 GLM-5.3 chat replies.

Pick a model and an amount. Each number is how many requests of that size your balance covers at Tier 1, before the first top-up’s 10% extra credit.

What you pay for

Below list price, no plan limits, one key.

−15%

Below Z.ai’s list price from day one

GLM-5.3 bills at $1.19 input and $3.74 output per 1M tokens at Tier 1, against Z.ai’s $1.40 and $4.40. At $10,000 in top-ups GLM-5.3 is 25% below and GLM-5.2 35% below.

No plan

Pay per token, in your own apps

No subscription and no 5-hour or weekly quota. Use GLM in your own product, backend or agent and pay for what you send.

1 key

Every major model family

The same key reaches DeepSeek, Qwen, Kimi, Claude, GPT and Gemini, from one prepaid balance in USD.

How pricing tiers work

Every account starts at Tier 1. Top up more to move up.

Your account starts on Tier 1, with the discount below from the first request. At $1,000 in cumulative top-ups it moves to Tier 2, at $10,000 to Tier 3, on its own, and every later request bills at the lower rate.

Tier 1 · you start hereBelow $1,000 in top-ups

GLM-5.3 −15%, GLM-5.2 −15% against Z.ai’s list price. Purchased credits last 12 months.

Tier 2$1,000+ in top-ups

GLM-5.3 −20%, GLM-5.2 −25%.

Tier 3$10,000+ in top-ups

The lowest rates: GLM-5.3 −25%, GLM-5.2 −35%.

  • 20% or more
  • 11–19%
  • 10% or less

Swipe the table for Tier 2 and 3 →

Per 1M tokensZ.ai list priceTier 1Tier 2Tier 3
GLM-5.3 · input$1.40$1.19−15%$1.12−20%$1.05−25%
GLM-5.3 · output$4.40$3.74−15%$3.52−20%$3.30−25%
GLM-5.2 · input$1.40$1.19−15%$1.05−25%$0.91−35%
GLM-5.2 · output$4.40$3.74−15%$3.30−25%$2.86−35%

Discounts apply to input and output. Cached input bills at Z.ai’s list price at every tier (GLM-5.3 $0.26, GLM-5.2 $0.26 per 1M). Official price: the model maker's list price. Tier 1–3: OceanToken's standing discounts by cumulative top-up, not limited-time offers. Large volume? Talk to sales.

Which GLM

Two GLM models on the same key.

Both read up to 1M tokens, with reasoning, tool calling and JSON output. Pick by model ID.

Newest

GLM-5.3

Z.ai’s latest flagship, built for complex software engineering and long-horizon agent tasks. Text input, up to 944K output tokens.

z-ai/glm-5.3

Deepest discount

GLM-5.2

The previous flagship, at the same list price, and up to 35% below it at Tier 3. Text input, up to 944K output tokens.

z-ai/glm-5.2

Same price

Any prompt length

Z.ai lists one price for GLM-5.3 and GLM-5.2 at every context length, and so do we.

1M context

Setup

From sign-up to first request in a few minutes.

Step 1 · Sign in
Sign in to OceanToken Continue with Googleyou@company.com Continue with email$1 free credit · 14 days · no card
Step 2 · Make your first call
# Your API key from the OceanToken console client = OpenAI( base_url="https://api.oceantoken.ai/v1", api_key="YOUR_API_KEY") client.chat.completions.create( model="z-ai/glm-5.3", messages=[{"role": "user", "content": "Hi"}])
Only the base URL, key and model ID change. Full quickstart
Step 3 · Add credits when you’re ready
Add credits
$5$20$50$100
Balance
$22.00
+10% on the first top-up
Tier 1 · −15% on GLM-5.3 · ≈ 5,200 chat replies
Step 4 · Top up more, pay less
Tier 1Below $1,000−15%
Tier 2$1,000+−20% / −25%
Tier 3$10,000+up to −35%
Large volume? Talk to sales.

Questions

Before you top up

What do I get when I sign up?

An API key and $1 of free credit that lasts 14 days, no card needed: about 240 GLM-5.3 or 240 GLM-5.2 chat replies of 2,000 input and 500 output tokens. Your first card top-up gets 10% extra credit, up to $100. Have a promo code? Redeem it in the console for more credit.

What does $20 get me?

At Tier 1, about 4,700 GLM-5.3 chat replies of 2,000 input and 500 output tokens, about 2,600 agent steps, or about 160 long documents of 100,000 input and 2,000 output tokens. On GLM-5.2, about 4,700 of the same chat replies. As a first top-up it buys 10% more.

How do your prices compare with Z.ai’s own API?

Against Z.ai’s pay-as-you-go list price, GLM-5.3 is −15% at Tier 1 ($1.19 input and $3.74 output per 1M, against $1.40 and $4.40) and GLM-5.2 −15%. At Tier 3, GLM-5.3 is −25% and GLM-5.2 −35%. Cached input bills at Z.ai’s list price.

How does this compare with the GLM Coding Plan?

Z.ai’s GLM Coding Plan is a monthly subscription for agent tools such as Claude Code and Codex, with a usage limit every 5 hours and every week. If you only use GLM inside those tools, the plan can cost less. We sell pay-as-you-go access for your own apps, backends and agents, below Z.ai’s pay-as-you-go price, with no tool restriction and no quota.

When do I move to Tier 2?

When your cumulative top-ups reach $1,000; Tier 3 starts at $10,000. Gifts and credit grants count toward the total; the first top-up’s extra credit does not. Your account moves up on its own and every later request bills at the lower rate; the console shows the rate that applies to you. Expect large volume? Talk to sales.

Is there a subscription?

No. You start on the free sign-up credit, then prepay a balance in USD by card, any amount, and each request is deducted from it. Purchased credits last 12 months.

Do I need to change my code?

Only the base URL and the key. The API is OpenAI-compatible, and the Anthropic Messages format works too.

What happens when my balance reaches $0?

New requests are refused until you add credits. Your key and your code stay the same.

More on OceanToken

Every GLM model, side by side.

Ready

Get a key and send your first GLM request today.

Get API Key $1 free credit · no card · prepaid
$1.19 / 1M inGLM-5.3 · −15% now, up to −25%Get API Key