default-group API key in the Anthropic Messages or the OpenAI-compatible format, or point Claude Code at LaoZhang API.
- Published: October 18, 2026
- Last verified: October 18, 2026
- Status: active; available in the
defaultandclaude_codetoken groups
Key details
Models and prices
Prices from LaoZhang API’s public pricing as of October 18, 2026, in US dollars per 1M tokens:- Prompt caching is supported. Cache-read prices are in the model catalog, and cache writes cost 1.25× the input price.
- When a
claude-haiku-5-5prompt exceeds 100,000 tokens, counting cache reads and writes, the whole request is billed at $0.5 input and $2.5 output. See tiered pricing in the catalog. - Current prices are in the model catalog and on the console pricing page.
Make a request
Create an API key in Token management with thedefault token group and the Usage first (recommended) or Usage-based billing mode, then export it:
- Anthropic Messages
- OpenAI-compatible
- In the Anthropic Messages format, the answer is in the
content[]blocks whosetypeistext. In the OpenAI-compatible format, it is inchoices[0].message.content. - For streaming, tool use, and prompt caching, see the Claude protocol reference.
- For a complete Claude Code configuration, see Claude Code setup with LaoZhang API.
- Check token usage and the charge for each request in call logs.
Current limits
Check these differences from Anthropic’s own API before you switch:- Each response is capped at 32,768 output tokens. A larger
max_tokensis reduced to the cap. documentcontent blocks, such as PDFs, are not supported. Extract the text and send it instead.- Anthropic server tools such as
web_search,web_fetch, andcode_executionare not supported, and requests that declare them return 400. Claude Code’s WebSearch tool doesn’t work for the same reason. /v1/messages/count_tokens, Message Batches, and the Files API are not available.
Who this affects
- Applies to: projects that call Claude models through LaoZhang API, and anyone using Claude Code or the Anthropic SDKs. Any API key in the
defaultorclaude_codegroup with the Usage first or Usage-based billing mode can call these models. - Unchanged: no existing model changed. Integrations that call
glm-5.2ordeepseek-v4-proover Anthropic Messages keep working as they are.
FAQ
Why does claude-haiku-4-5 return a 503?
claude-haiku-4-5-20251001 is not one of the 11 models listed. Use claude-haiku-5-5 instead. Claude Code runs background tasks on that model by default, so set ANTHROPIC_DEFAULT_HAIKU_MODEL as shown in Claude Code setup with LaoZhang API.
What should I do about an occasional 529?
A 529 means upstream capacity is busy, which can happen at peak times. Retry after a short wait; the Anthropic SDKs retry 529 automatically by default.Do I need an Anthropic account?
No. Your LaoZhang API key and base URL are all you need.Sources and related links
- Anthropic pricing: official list prices and cache multipliers.
- Model catalog: current LaoZhang API prices.
- Console pricing: sign in to see the prices that apply to your account.
- Claude protocol: Anthropic Messages API
- Claude Code setup with LaoZhang API
- Latest announcements