Concepts

Pricing

Per-token USDC pricing across all 26 models with 5% platform fee

Solvela charges per token based on the upstream provider's list price plus a 5% platform fee. All prices are in USDC. There are no monthly fees, no minimum spend, and no subscription.

Fee structure

total = provider_cost * 1.05

Every 402 response includes a cost_breakdown showing the split:

{
  "cost_breakdown": {
    "provider_cost": "0.002500",
    "platform_fee": "0.000125",
    "total": "0.002625",
    "currency": "USDC",
    "fee_percent": 5
  }
}

Amounts in the accepts[].amount field are in atomic USDC units (6 decimal places). 2625 = $0.002625 USDC.

Model pricing table

All prices are USDC per million tokens (provider cost before the 5% fee).

OpenAI

ModelModel IDInput ($/M)Output ($/M)Context
GPT-5.2openai/gpt-5.2$1.75$14.00400K
GPT-4oopenai/gpt-4o$2.50$10.00128K
GPT-4o Miniopenai/gpt-4o-mini$0.15$0.60128K
o3openai/o3$2.00$8.00200K
o3 Miniopenai/o3-mini$1.10$4.40200K
o4 Miniopenai/o4-mini$1.10$4.40200K
GPT-4.1openai/gpt-4.1$2.00$8.001M
GPT-4.1 Miniopenai/gpt-4.1-mini$0.40$1.601M
GPT-4.1 Nanoopenai/gpt-4.1-nano$0.10$0.401M
GPT-OSS 120Bopenai/gpt-oss-120b$0.00$0.00128K

Anthropic

ModelModel IDInput ($/M)Output ($/M)Context
Claude Opus 4.6anthropic/claude-opus-4-20250514$5.00$25.00200K
Claude Sonnet 4.6anthropic/claude-sonnet-4-20250514$3.00$15.00200K
Claude Sonnet 4.5anthropic-claude-sonnet-4-5$3.00$15.00200K
Claude Haiku 4.5anthropic/claude-haiku-4-5-20251001$1.00$5.00200K

Note

Sonnet 4.5 shares its upstream model_id with Sonnet 4.6 (claude-sonnet-4-20250514). The registry-key form anthropic-claude-sonnet-4-5 is the unambiguous identifier; the provider/model_id slash form resolves to whichever entry is loaded last and is best avoided for Sonnet specifically.

Google

ModelModel IDInput ($/M)Output ($/M)Context
Gemini 3.1 Progoogle/gemini-3.1-pro$2.00$12.001M
Gemini 2.5 Flashgoogle/gemini-2.5-flash$0.30$2.501M
Gemini 2.5 Flash Litegoogle/gemini-2.5-flash-lite$0.10$0.401M
Gemini 2.0 Flashgoogle/gemini-2.0-flash$0.10$0.401M
Gemini 2.0 Flash Litegoogle/gemini-2.0-flash-lite$0.075$0.301M

xAI

ModelModel IDInput ($/M)Output ($/M)Context
Grok 4 Fast (Reasoning)xai/grok-4-fast-reasoning$0.20$0.502M
Grok Code Fastxai/grok-code-fast-1$0.20$1.50256K
Grok 3xai/grok-3$3.00$15.00131K
Grok 3 Minixai/grok-3-mini$0.30$0.50131K

DeepSeek

ModelModel IDInput ($/M)Output ($/M)Context
DeepSeek V3.2 Chatdeepseek/deepseek-chat$0.28$0.42128K
DeepSeek V3.2 Reasonerdeepseek/deepseek-reasoner$0.28$0.42128K
DeepSeek Coder V3deepseek/deepseek-coder$0.28$0.42128K

Note

These are provider list prices. The actual amount charged includes the 5% platform fee. Always check the cost_breakdown in the 402 response for the exact amount you will pay.

Query pricing programmatically

GET /pricing

Returns the full pricing table as JSON. No payment required.

curl https://api.solvela.ai/pricing

Cost estimation

The gateway estimates cost at request time using:

  1. Input tokens: estimated from the messages in the request (character count / 4, approximately)
  2. Output tokens: max_tokens if specified, otherwise defaults to 1000
  3. Cost: (input_tokens * input_rate + output_tokens * output_rate) / 1_000_000 * 1.05

The actual cost charged via escrow claim is based on the real token usage returned by the provider (when available).

Example cost calculation

A request to gpt-4o with 500 input tokens and 200 output tokens:

input_cost  = 500 / 1,000,000 * $2.50  = $0.00125
output_cost = 200 / 1,000,000 * $10.00 = $0.00200
provider_cost = $0.00325
platform_fee  = $0.00325 * 0.05 = $0.0001625
total         = $0.0034125 USDC

Atomic amount: 3413 (multiply total by 1,000,000, round up).