
glm-for-coding
Use in three folds in Claude Code
2025-09-30
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 Pricing
$¥ 円 ₽