glm-for-coding

glm-for-coding

Use in three folds in Claude Code
2025-09-30
LLM
Model capability: thinkingModel capability: function_call
Input:
$0.086/1M tokensstarting from
Output:
$0.343/1M tokensstarting from
Bulk order? Contact your manager for exclusive deals

API Overview

Only for Claude Code use, at 70% of the original price.


After completing the installation of Claude Code, please set the environment variables as follows to use the GLM For Coding model.

macOS and Linux

sh

export ANTHROPIC_BASE_URL=https://api.302.ai
export ANTHROPIC_AUTH_TOKEN=<your API Key>  # Enter your 302 API Key here
export ANTHROPIC_MODEL=glm-for-coding
export ANTHROPIC_SMALL_FAST_MODEL=glm-for-coding

claude

Windows

powershell

$env:ANTHROPIC_BASE_URL="https://api.302.ai";
$env:ANTHROPIC_AUTH_TOKEN="<your API Key>"  # Enter your 302 API Key here
$env:ANTHROPIC_MODEL="glm-for-coding"
$env:ANTHROPIC_SMALL_FAST_MODEL="glm-for-coding"

claude

API Console

Log in to explore more features! Click to Log In

API Analytics

API Reference (1)

API DescriptionAPI EndpointRequest MethodStabilityParameter Description
Messages(Zhipu GLM Multimodal)
POST
Stable
View Details

API Pricing

$
ModelDescriptionContextOfficial Price302.AI Price

glm-4.6

Input length [0, 32k], output length [0, 0.2k]
200000

Input$0.286 / 1M tokens
Output$1.142 / 1M tokens

Input$0.086/ 1M tokens
Output$0.343/ 1M tokens
70%

glm-4.6

Input length [0, 32k], output length [0.2k+]
200000

Input$0.43 / 1M tokens
Output$2 / 1M tokens

Input$0.129/ 1M tokens
Output$0.6/ 1M tokens
70%

glm-4.6

Input length [32k, 200k]
200000

Input$0.572 / 1M tokens
Output$2.29 / 1M tokens

Input$0.172/ 1M tokens
Output$0.687/ 1M tokens
70%