Skip to content

Model detail

GLM-4-FLASH

Provided by GLM
Pay-as-you-go

Zhipu's free GLM-4 language-model family supports conversational responses and general text-generation workloads.

Model specs

Model ID
glm-4-flash
Context length
128K
Max output
4.095K
I/O modalities
Released
2026-10

02

API endpoints

One MixRoute gateway, OpenAI-compatible

  • OpenAI-compatible /v1/chat/completions POST

03

Pricing

Flat rate, unit: /1M Tokens

Input

$0.0000 /1M Tokens

Completion

$0.0000 /1M Tokens

05

Selection summary

Quickly judge whether it fits your workload

What is this model good for?

Zhipu's free GLM-4 language-model family supports conversational responses

Zhipu's free GLM-4 language-model family supports conversational responses and general text-generation workloads.

What should you check before using it?

128,000 context, 4,095 output tokens

GLM model that supports tool calling and structured output.

Why use it through MixRoute?

Swap the base URL, keep the GLM-4-FLASH client

MixRoute serves GLM-4-FLASH on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID glm-4-flash and re-run your integration tests.

07

Capabilities & compatibility

Unconfirmed capabilities stay "Unknown," no guesses

Available:

Tool calling

GLM-4-FLASH supports function and tool calls.

EX Send a tools definition; the response returns tool_calls to execute and feed results back.
Available:

Structured output

GLM-4-FLASH can produce JSON-formatted output on demand.

EX response_format: { type: "json_schema" } forces valid JSON output.
Available:

Streaming

GLM-4-FLASH supports streamed responses.

EX stream: true streams tokens incrementally, so chat UIs render as they arrive.
Available:

OpenAI SDK

Call GLM-4-FLASH through MixRoute's OpenAI-compatible endpoint.

EX Change base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.

08

Token cost estimator

Live estimate from this page's pricing, not an actual bill

This model has no cache-read price; caching is not counted

09

FAQ

Before switching production traffic to GLM-4-FLASH, run a pilot on a representative slice of your traffic and check output quality, latency at peak concurrency, and cost per request. Verify the error and retry behaviour, and confirm the request limits you depend on match your plan.

One endpoint, a testable decision

Test this model and alternate routes with the same request format

Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.