321AI Model MarketplaceLive marketplace →

Claude API on 321AI

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.

Claude model prices

ModelMarket floor priceChannels
claude-opus-5-5$0.066987 in · $0.334935 out / 1M tok590
claude-opus-5$0.07191 in · $0.35955 out / 1M tok518
claude-sonnet-5$0.033492 in · $0.16746 out / 1M tok501
claude-sonnet-5-5$0.033734 in · $0.168669 out / 1M tok497
claude-opus-4-8$0.015 in · $0.075 out / 1M tok490
claude-opus-4-6$0.08265 in · $0.413253 out / 1M tok452
claude-haiku-5-5$0.0015 in · $0.0075 out / 1M tok228
claude-fable-5-1$0.144 in · $0.72 out / 1M tok213
claude-fable-5$0.015 in · $0.075 out / 1M tok124
claude-fable-5-2$0.2175 in · $1.087 out / 1M tok120
claude-opus-4-7$0.015 in · $0.075 out / 1M tok106
claude-sonnet-4-6$0.015 in · $0.075 out / 1M tok104
claude-haiku-4-5-20251001$0.0144 in · $0.072 out / 1M tok41
claude-haiku-4-5$0.015 in · $0.075 out / 1M tok30

Floor across suppliers; per-supplier quotes on the marketplace. Every model page has a .md machine-readable twin.

Quickstart

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)

Claude Code quickstart (Anthropic protocol)

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.

FAQ

How much does the Claude API cost on 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.

How do I call the Claude API here?

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.

What about reliability?

Multiple suppliers quote every model, so smart routing avoids failing channels automatically; merchants publish upstream self-check samples, and failed requests are never billed.

Can I try before paying?

Registration includes free trial credit — call real models before you top up. Sign up: https://321ai.cc/ui/new/#/register

Other brands (English)

OpenAI GPT Gemini DeepSeek Qwen 通义千问 GLM 智谱 Kimi MiniMax Grok
All model pricesFeatured · 321AI communityFeatured · Open-source toolsFeatured · Advertise with usFeatured