If Anthropic does not serve your country or console.anthropic.com declines your bank card, you can call the full Claude model lineup through Brioi’s native Messages endpoint. Point the official Anthropic SDK base_url to https://vip.brioi.com (without /v1 at the end), pass your Brioi API key, and top up a single balance in USDT (TRC20 / BEP20 / Solana) or with an international card. Pricing for claude-fable-5-2 starts from ¥11.04 CNY per 1M input tokens and from ¥55.20 CNY per 1M output tokens, while claude-sonnet-5-5 starts from ¥0.20 CNY per 1M input tokens (checked 2026-12-04; exact rates vary by route on the pricing page).
Verified against Brioi Text & Chat API Docs (OpenAI / Claude) and Anthropic Supported Countries (2026-12).
Claude Web Subscription vs. Anthropic API
| Aspect | Claude Web Plans (claude.ai Pro / Max / Ultra) |
Anthropic Claude API (Pay-as-you-go) |
|---|---|---|
| Best for | Individual browser chat on claude.ai |
Backend code, agents, n8n workflows, Claude Code, Cursor, team usage |
| Billing model | Fixed monthly seat ($20 / $100 / $200) | Exact input & output tokens consumed, zero monthly fee |
| Includes API key | No | Yes, with per-project and per-developer spend limits |
| Account ban risk | Sensitive to proxy IP changes and shared logins | Zero account-ban risk; unused balance is refundable in full |
For ready-made personal claude.ai subscriptions, see How to Choose a Claude Account. For code, automation, and engineering teams, connect via API.
Claude Model Pricing per 1M Tokens
Starting pay-as-you-go rates on Brioi (in CNY per 1M tokens as of 2026-12-04; routes differ on the pricing page):
| Model ID | Typical Workload | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|---|
claude-fable-5-2 |
Flagship reasoning & multi-file coding (Claude Fable 5.2 guide) | from ¥11.04 CNY | from ¥55.20 CNY |
claude-opus-5-5 |
Architecture design, code review, deep analysis | from ¥0.40 CNY | from ¥2.00 CNY |
claude-sonnet-5-5 |
Production coding, tool use, and Claude Code | from ¥0.20 CNY | from ¥1.00 CNY |
claude-haiku-5-5 |
High-throughput classification, extraction, routing | from ¥0.01 CNY | from ¥0.05 CNY |
Base URL & Authentication (Avoiding /v1/v1 404)
Use native POST /v1/messages to preserve extended thinking, cache_control, and anthropic-beta headers:
| Client / SDK | Base URL Value | Auth Header |
|---|---|---|
| Official Anthropic SDK / Claude Code | https://vip.brioi.com (omit /v1) |
x-api-key: YOUR_API_KEY or Authorization: Bearer YOUR_API_KEY |
| Raw HTTP / cURL | https://vip.brioi.com/v1/messages |
x-api-key: YOUR_API_KEY + anthropic-version: 2023-06-01 |
| OpenAI-compatible clients | https://vip.brioi.com/v1 |
Authorization: Bearer YOUR_API_KEY |
Code Examples (cURL, Python & TypeScript)
Create a key on the Brioi console and check available model IDs anytime via GET https://vip.brioi.com/v1/models.
cURL (max_tokens is required)
curl -X POST "https://vip.brioi.com/v1/messages" \
-H "x-api-key: $BRIOI_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 2048,
"messages": [
{ "role": "user", "content": "Explain Go context.Context cancellation propagation in 3 bullet points" }
]
}'
Python (anthropic SDK with extended thinking)
import os
import anthropic
client = anthropic.Anthropic(
base_url="https://vip.brioi.com",
api_key=os.environ["BRIOI_API_KEY"],
)
message = client.messages.create(
model="claude-fable-5-2",
max_tokens=4096,
thinking={"type": "enabled", "budget_tokens": 2048},
messages=[{"role": "user", "content": "Diagnose common PostgreSQL connection pool exhaustion causes"}],
)
for block in message.content:
if block.type == "text":
print(block.text)
TypeScript (@anthropic-ai/sdk)
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://vip.brioi.com",
apiKey: process.env.BRIOI_API_KEY,
});
const msg = await client.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Write an idempotent exponential backoff helper in TypeScript" }],
});
console.log(msg.content);
For terminal setup, see Claude Code API Key Setup.
Common HTTP Errors
400: Missing requiredmax_tokens, or passing a video/image model ID to/v1/messages.401: Missing, malformed, or disabled API key.403: Insufficient balance/key quota, or the key’s route does not include the requested model.404: Passinghttps://vip.brioi.com/v1to the Anthropic SDK (producing/v1/v1/messages). Remove/v1.429: Rate limit reached; retry with exponential backoff.
Full reference: Text & Chat API Docs and Developer Tools.

