Your API key appears at the top of this page once the plan is active. Point any tool that accepts a custom endpoint at one of the two base URLs below.
Try it with
curl -sS https://api.baiduqianfan.ai/v2/tokenplan/team/chat/completions \
-H "Authorization: Bearer <your-token-plan-key>" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"hello"}]}'Full reference: the official Baidu AI Cloud Token Plan documentation.
Endpoints
The same key works on both. Which one you need depends on the tool, and they are not interchangeable: an Anthropic-protocol tool pointed at the OpenAI URL will not connect.
Supported coding tools
Pick a tool to load its configuration. Use these snippets as written: each one was verified against a live plan. Baidu's own setup docs target the personal plan and its /personal endpoints, which a team-seat key rejects with a 401.
export ANTHROPIC_BASE_URL="https://api.baiduqianfan.ai/anthropic/tokenplan/team" export ANTHROPIC_AUTH_TOKEN="<your-token-plan-key>" export ANTHROPIC_MODEL="glm-5.2"

