Logoai2save
Sign In
ai2save

Claude API Gateway, Pricing & Claude Code Setup

Compare Claude API prices, 5-minute and 1-hour cache writes, and long-context tiers on ai2save. Start with the Messages API or Claude Code.

Claude API for code and long-document workflows

Claude can support code editing, document analysis and multi-step assistant workflows. Compare the available Claude models by task, not only by the input-token rate; output tokens and cache writes also affect total cost.

Public prices

USD / 1M tokens

Claude 75% off · claude-fable-5

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$2.50$12.50$0.25$3.125$5.00—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$10.00$50.00$1.00$12.50$20.00—

Claude 75% off · claude-fable-5-1

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$2.50$12.50$0.0625$3.125$5.00—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$10.00$50.00$0.25$12.50$20.00—

Claude 75% off · claude-opus-4-6

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$1.25$6.25$0.125$1.5625$2.50—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$5.00$25.00$0.50$6.25$10.00—

Claude 75% off · claude-opus-4-7

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$1.25$6.25$0.125$1.5625$2.50—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$5.00$25.00$0.50$6.25$10.00—

Claude 75% off · claude-opus-4-8

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$1.25$6.25$0.125$1.5625$2.50—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$5.00$25.00$0.50$6.25$10.00—

Claude 75% off · claude-opus-5

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$1.25$6.25$0.125$1.5625$2.50—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$5.00$25.00$0.50$6.25$10.00—

Claude 75% off · claude-opus-5-5

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$1.00$5.00$0.05$1.25$2.00—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$4.00$20.00$0.20$5.00$8.00—

Claude 75% off · claude-sonnet-4-6

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$0.75$3.75$0.075$0.9375$1.50—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$3.00$15.00$0.30$3.75$6.00—

Claude 75% off · claude-sonnet-5

token

Site Price (Discounted)
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$0.50$2.50$0.05$0.625$1.00—
Official Price
Context (tokens)InputOutputCache readCache write (5m)Cache Write (1h)USD / request or image
Standard$2.00$10.00$0.20$2.50$4.00—

Standard-time prices. Context tiers, cache duration, time multipliers and per-request units are listed below. The selected group’s billing rules apply.

Public prices →

Retrieved:

Source: OpenAI · Anthropic · Gemini · LiteLLM — Not independently verified

Integration and request example

Use the Anthropic Messages API at /v1/messages. Claude Code uses the service origin as ANTHROPIC_BASE_URL, without a trailing /v1. Follow the Claude Code guide for authentication and model selection.

Replace YOUR_MODEL_ID with a model ID supported by your group set SUB2API_API_KEY, and set SUB2API_BASE_URL to the service origin (without /v1). This example shows the request format and does not send a request.

curl "$SUB2API_BASE_URL/v1/messages" \
  -H "Authorization: Bearer $SUB2API_API_KEY" \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model":"YOUR_MODEL_ID","max_tokens":128,"messages":[{"role":"user","content":"Hello"}]}'
Read the integration guide →

Model limits and billing conditions

Cache reads, 5-minute writes and 1-hour writes have different prices when supported. Long-context rates depend on the group’s switch and model tiers. A model name alone does not guarantee a particular context window, cache duration or tool capability.

View all API prices →