Baltor Get started

Models

GLM 5V Turbo

By Z.ai. Unknown parameters, a context window of 202,752 tokens, licence Unknown.

Facts

Released
2026-04-01 the release date models.dev records models.dev, read
Licence
Unknown
Open weights
No models.dev records whether the weights are open models.dev, read
Parameters
Unknown
Active parameters
Unknown
Knowledge cutoff
Unknown
Context window
  • 202,752 tokens the context length OpenRouter lists OpenRouter, read
  • 200,000 tokens the context limit models.dev records for the maker's own API models.dev, read
Longest output
  • 131,072 tokens the largest output OpenRouter's first provider allows OpenRouter, read
  • 131,072 tokens the output limit models.dev records for the maker's own API models.dev, read
Tool calling
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
  • Yes models.dev records tool_call as true models.dev, read
Structured output
  • Yes OpenRouter lists response_format, a JSON mode, among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls OpenRouter, read
  • Yes models.dev records reasoning as true models.dev, read
Inputs and outputs
image, text, video in, text out OpenRouter, read
Good for
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
  • Vision: OpenRouter lists images among its inputs OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Z.AI direct1.20 USD4.00 USD200,000 older than 30 days; check the providermodels.dev, read
Z.AI through OpenRouter1.20 USD4.00 USD202,752OpenRouter endpoints, read

Run it on your own hardware

No source lists weight files or a parameter count for this model, so its memory needs are Unknown.

Use it from your harness

Set up for Z.AI with the model glm-5v-turbo. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "zai": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Z.AI",
      "options": {
        "baseURL": "https://api.z.ai/api/paas/v4",
        "apiKey": "{env:ZHIPU_API_KEY}"
      },
      "models": {
        "glm-5v-turbo": {
          "name": "GLM 5V Turbo",
          "limit": {
            "context": 202752,
            "output": 131072
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "zai": {
      "baseUrl": "https://api.z.ai/api/paas/v4",
      "api": "openai-completions",
      "apiKey": "$ZHIPU_API_KEY",
      "models": [
        {
          "id": "glm-5v-turbo"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Z.AI documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and Z.AI documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it