Use Volcengine Ark in Claude Code

Prices and modelsEndpoint verified 2026-11-09

Generate a Claude Code config from the Anthropic-compatible endpoint in Volcengine Ark's docs. The API key in the config is a placeholder; replace it with a key you create at Volcengine Ark.

Endpoints

  • Pay as you gohttps://ark.cn-beijing.volces.com/api/compatibleUse the model ID from the Ark console.Docs · verified 2026-11-09
  • Plan only: Ark Coding Plan Lite, Prohttps://ark.cn-beijing.volces.com/api/codingCoding Plan only. Using /api/v3 does not draw on the plan quota and is billed separately.Docs · verified 2026-11-09
  • Plan only: Ark Agent Plan Small, Medium, Large, Maxhttps://ark.cn-beijing.volces.com/api/planAgent Plan only; other endpoints cannot use the Agent Plan.Docs · verified 2026-11-09

Generate the config

Pick from the 10 models this provider sells, or type another model name.

Save to ~/.claude/settings.json; merge it in if the file already exists
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://ark.cn-beijing.volces.com/api/compatible",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_MODEL": "kimi-k3-1-pro-261024",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3-1-pro-261024",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3-1-pro-261024",
    "ANTHROPIC_DEFAULT_FABLE_MODEL": "kimi-k3-1-pro-261024",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-k3-1-pro-261024"
  }
}

Models and prices

ModelInputOutputRatio
Kimi K3.1 Prokimi-k3-1-pro-261024$1.95$10.191.00×
DeepSeek V4.1 Flashdeepseek-v4-1-flash$0.30$1.202.00×
GLM-5.3-Flashglm-5-3-flash-260828$0.12$0.421.00×
DeepSeek V4 Prodeepseek-v4-pro-ga-260813$1.35$4.052.04×
DeepSeek V4 Flashdeepseek-v4-flash-ga-260731$0.45$1.35—
Doubao Seed 2.1 Turbodoubao-seed-2-1-turbo-260628$0.45$2.251.00×
GLM-5.2glm-5-2-260617$1.20$4.201.00×
Doubao Seed 2.0 Minidoubao-seed-2-0-mini-260428$0.030$0.301.00×
Doubao Seed 2.1 Litedoubao-seed-2-1-lite-260915$0.12$0.4051.00×
Doubao Seed 2.1 Prodoubao-seed-2-1-pro-260915$0.899$4.501.00×
$ per 1M tokens. Each model uses the provider's cheapest group; the ratio uses the output price

How to check it works

Restart Claude Code and send a message. If it replies and the request shows up in Volcengine Ark's console, it is using this endpoint.

FAQ

settings.json or environment variables?

settings.json applies every time Claude Code starts, for long-term use; the environment variables apply to the current terminal only, for a quick try.

How do I switch back to Anthropic?

Remove these variables from settings.json (or close the terminal where you set them), then restart Claude Code.

Does my key pass through this site?

No. The page only generates config text and never asks for your key; the key only goes into the config file or terminal on your own machine.

Claude Code configs for other providers