Anthropic · 14 models · multi-supplier bidding · get a key
How do I use the Claude API and what does it cost? Create a key in the console: OpenAI protocol sets base_url to https://321ai.cc/v1; Anthropic protocol (Claude Code) sets ANTHROPIC_BASE_URL to https://321ai.cc. This page lists 14 Claude models with live market floor prices from competing suppliers (data date 2026-11-20; machine-readable: https://321ai.cc/api/public/model-prices). Failures never billed, platform fee 0.
Anthropic Claude family — long context and strong coding; the Claude Code default.
| Model | Market floor price | Channels |
|---|---|---|
| claude-opus-5-5 | $0.066987 in · $0.334935 out / 1M tok | 590 |
| claude-opus-5 | $0.07191 in · $0.35955 out / 1M tok | 518 |
| claude-sonnet-5 | $0.033492 in · $0.16746 out / 1M tok | 501 |
| claude-sonnet-5-5 | $0.033734 in · $0.168669 out / 1M tok | 497 |
| claude-opus-4-8 | $0.015 in · $0.075 out / 1M tok | 490 |
| claude-opus-4-6 | $0.08265 in · $0.413253 out / 1M tok | 452 |
| claude-haiku-5-5 | $0.0015 in · $0.0075 out / 1M tok | 228 |
| claude-fable-5-1 | $0.144 in · $0.72 out / 1M tok | 213 |
| claude-fable-5 | $0.015 in · $0.075 out / 1M tok | 124 |
| claude-fable-5-2 | $0.2175 in · $1.087 out / 1M tok | 120 |
| claude-opus-4-7 | $0.015 in · $0.075 out / 1M tok | 106 |
| claude-sonnet-4-6 | $0.015 in · $0.075 out / 1M tok | 104 |
| claude-haiku-4-5-20251001 | $0.0144 in · $0.072 out / 1M tok | 41 |
| claude-haiku-4-5 | $0.015 in · $0.075 out / 1M tok | 30 |
Floor across suppliers; per-supplier quotes on the marketplace. Every model page has a .md machine-readable twin.
Set base_url to https://321ai.cc/v1; pick any model above as model.
from openai import OpenAI
client = OpenAI(api_key="YOUR_KEY", base_url="https://321ai.cc/v1")
resp = client.chat.completions.create(
model="claude-opus-5-5",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Verified in production: the Messages endpoint /v1/messages works non-streaming and streaming (SSE), with both x-api-key and Authorization: Bearer auth headers; the /v1/responses endpoint used by Codex CLI works too.
export ANTHROPIC_BASE_URL=https://321ai.cc
export ANTHROPIC_AUTH_TOKEN=YOUR_KEY
claude
count_tokens is not exposed yet: Claude Code falls back to local estimation automatically — normal usage is unaffected. Full guide: Anthropic Messages API via 321AI.
All 14 Claude models are quoted by multiple suppliers; this page shows the market floor price per model, refreshed live (data date 2026-11-20). Per-supplier quotes and upstream self-check records are on the marketplace page.
OpenAI protocol: set base_url to https://321ai.cc/v1 and use the key generated in your console; model name is any of the Claude models listed above. Existing SDKs need no code changes.
Multiple suppliers quote every model, so smart routing avoids failing channels automatically; merchants publish upstream self-check samples, and failed requests are never billed.
Registration includes free trial credit — call real models before you top up. Sign up: https://321ai.cc/ui/new/#/register