FreeBrain / Pricing / Claude Opus 4.8

Claude Opus 4.8 API

Use Claude Opus 4.8 by Anthropic with the client you already have: change the base URL to FreeBrain and the model ID to claude-opus-4-8. $0.375 per 1M input tokens, 92.5% below the list price.

Model IDclaude-opus-4-8
ProviderAnthropic
Context window1M tokens
Maximum output128K tokens
Inputtext, image, pdf
Input price$5.00 $0.375 per 1M tokens
Output price$25.00 $1.875 per 1M tokens
EndpointsOpenAI Chat Completions https://api.thefreebrain.com/v1/chat/completions
Anthropic Messages https://api.thefreebrain.com/v1/messages

Call it

Replace YOUR_API_KEY with a key from the FreeBrain console. More setups are in the quick start.

Anthropic Python SDK

from anthropic import Anthropic

client = Anthropic(base_url="https://api.thefreebrain.com", api_key="YOUR_API_KEY")
reply = client.messages.create(model="claude-opus-4-8", max_tokens=1024,
    messages=[{"role": "user", "content": "Say hello from the gateway."}])
print(reply.content[0].text)

Claude Code

ANTHROPIC_BASE_URL=https://api.thefreebrain.com ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY ANTHROPIC_MODEL=claude-opus-4-8 claude

curl (Chat Completions)

curl https://api.thefreebrain.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-opus-4-8", "messages": [{"role": "user", "content": "Hello"}]}'

Questions

How much does Claude Opus 4.8 cost on FreeBrain?
$0.375 per 1M input tokens and $1.875 per 1M output tokens (snapshot 2026-10-08), compared with Anthropic's list price of $5.00 and $25.00. You pay as you go from a prepaid balance.
Which endpoints support Claude Opus 4.8?
OpenAI Chat Completions (https://api.thefreebrain.com/v1/chat/completions), Anthropic Messages (https://api.thefreebrain.com/v1/messages).
Can I use Claude Opus 4.8 with Claude Code and the Anthropic SDK?
Yes. Keep the tool, set its base URL to FreeBrain and use the model ID claude-opus-4-8. The examples on this page show the exact settings.
Do I need an Anthropic account?
No. A FreeBrain API key is enough; the same key calls every model in the catalog.

More Anthropic models

Prices are per 1 million tokens in US dollars, from the catalog snapshot of 2026-10-08. Rates can change; the console shows the price of every call. Endpoints as listed in the model plaza on 2026-10-08. Contact: info@thefreebrain.com