Skip to contentOceanToken

GLM 4.7 Flash

z-ai/glm-4.7-flash

As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency.

Enterprise rate

Up to 60% off

By quote

Our price $0.0605 / $0.40 Per 1M tokens

  • InputtextOutput: text
  • Context131K tokensUp to 118K output per reply
  • ReleasedJanuary 19, 2026In the OceanToken catalog

01 · Learn

What is GLM 4.7 Flash?

GLM 4.7 Flash is a language model from Z.ai on the OceanToken API, with a 131K-token context window and reasoning, tool calling and structured outputs.

  • $0.0605 / $0.40Per 1M input / output
  • 131KContext windowUp to 118K output per reply
  • textInputOutput: text
  • Up to 60% offEnterprise rate vs officialUp to, by quote

What GLM 4.7 Flash can do.

  • Multi-step reasoningreasoning
  • Tool-using agentstool_choice
  • Structured outputs (JSON)response_format

02 · Compare

Is GLM 4.7 Flash cheaper than similar models?

The official price, then our price, for GLM 4.7 Flash and the models most like it.

OfficialOur price

Per 1M tokens, half input and half output. Prices as of November 27, 2026. Enterprise rate: quote by email, we activate it for you.

GLM 4.7 Flash specs.

Context window
131K tokens (131,072)
Max output
118K tokens (117,964)
Input
text
Output
text
Reasoning
Yes
Tool calling
Yes, tool_choice
Structured outputs
Yes, response_format
Released
January 19, 2026

Model ID and endpoint

OceanToken model ID
z-ai/glm-4.7-flash
OpenAI-compatible base URL
https://api.oceantoken.ai/v1
Endpoint
POST /v1/chat/completions

03 · Buy and build

How much does the GLM 4.7 Flash API cost?

RateInputOutputOff
Tier 1 to 3Self-serve$0.0605$0.40
Enterprise rateBy quoteUp to 60% off

Up to 60% off. Quote by email.

Monthly spend optional

We reply by email with your rate.

  1. Tell usYour model and monthly spend.
  2. We email your rateUp to 60% off. Price lock available.
  3. We activate itOn your account, same key.

Thinking tokens are billed at the output price.

The console always shows the current price.

How tiers work

  1. Self-serveTier 1From sign-up
  2. Self-serveTier 2$1,000 total
  3. Self-serveTier 3$10,000 total
  4. By quoteEnterprise rateUp to 60% off, by quote

You pay per use from a prepaid balance, with no subscription. Official price: the model maker’s list price. Tier 1 to 3 are standing rates by total top-up.

How to use GLM 4.7 Flash on OceanToken.

Three steps from no account to a working request. The same key and balance work for every model in the catalog.

  1. Create an account and get an API key

    One key works for every model your account can use.

    Get API Key
  2. Add credits

    OceanToken is prepaid: add credits, and each request is billed from that balance.

    Add credits
  3. Call GLM 4.7 Flash from your code

    Point an OpenAI SDK at https://api.oceantoken.ai/v1 and use the model ID z-ai/glm-4.7-flash.

    See the API request in docs
client.pyPython
from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
    model="z-ai/glm-4.7-flash",
    messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

GLM 4.7 Flash API: frequently asked questions.

What is GLM 4.7 Flash?

As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency.

How much does GLM 4.7 Flash cost?

GLM 4.7 Flash costs $0.0605 per 1M input tokens and $0.40 per 1M output tokens. These are OceanToken starting prices as of November 27, 2026, charged per use to your prepaid balance. The console always shows the current price.

What is the context length of GLM 4.7 Flash?

GLM 4.7 Flash has a context window of 131K tokens (131,072 tokens).

Does GLM 4.7 Flash support tool calling, vision and reasoning?

GLM 4.7 Flash supports tool calling, structured outputs and reasoning. It takes text input and returns text. The catalog does not list image input (vision) for it.

How do I call GLM 4.7 Flash through the API?

Send requests to https://api.oceantoken.ai/v1/chat/completions with the model ID z-ai/glm-4.7-flash and your OceanToken API key. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The Responses API and the Anthropic Messages API (/v1/messages) work too. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.

How do I top up?

OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too). Your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.

Do credits expire, and can I get a refund?

Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.

Am I charged for failed requests?

No. If a request fails, you are not charged: that covers a request refused for an insufficient balance or by a safety check, one whose provider fails before returning any output, and a video job that fails or is refused by a safety check, whose held amount goes back to your balance. The one exception: if a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.

Related articles

More from Z.ai

Similar language models

Keep exploring

Sources

Whatever you want.

OceanToken is All You Need.