Refract › Models › Claude Opus 4.8
Claude Opus 4.8 API
Use Claude Opus 4.8 by Anthropic through Refract's OpenAI-compatible API for $1.08 per 1M input and $5.38 per 1M output tokens, 78% below the official $5 / $25. Pay per token, no subscription.
| Model ID | claude-opus-4-8 |
|---|---|
| Provider | Anthropic |
| Input, per 1M tokens | $1.08 (official $5) |
| Output, per 1M tokens | $5.38 (official $25) |
Chat with Claude Opus 4.8 · Get an API key
Use it from code
curl https://refracthub.com/v1/chat/completions \
-H "Authorization: Bearer $REFRACT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "claude-opus-4-8", "messages": [{"role": "user", "content": "Hello"}]}'from openai import OpenAI
client = OpenAI(base_url="https://refracthub.com/v1", api_key="YOUR_REFRACT_KEY")
reply = client.chat.completions.create(model="claude-opus-4-8", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)
Questions
How much does Claude Opus 4.8 cost on Refract?
$1.08 per 1M input tokens and $5.38 per 1M output tokens, compared with $5 and $25 on Anthropic's official API. You pay only for the tokens you use, with no subscription.
Does it work with the OpenAI SDK?
Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "claude-opus-4-8". The Anthropic Messages format works too.
Can I use Claude Opus 4.8 without writing code?
Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.
Other Anthropic models
- Claude Fable 5: $2.15 / $10.8 per 1M tokens
- Claude Fable 5.1: $2.15 / $10.8 per 1M tokens
- Claude Haiku 4.5 20251001: $0.22 / $1.08 per 1M tokens
- Claude Haiku 5.5: $0.022 / $0.11 per 1M tokens
- Claude Opus 4.6: $1.08 / $5.38 per 1M tokens
- Claude Opus 4.7: $1.08 / $5.38 per 1M tokens
- Claude Opus 5: $1.08 / $5.38 per 1M tokens
- Claude Opus 5.5: $0.86 / $4.30 per 1M tokens