claude-opus-5 API
claude-opus-5 is a language model from Anthropic, available on OneFast API behind the same API key as every other model in the catalog.
Pricing
| Usage | Price (USD) |
|---|---|
| Input | $4.00 / 1M tokens |
| Input — cache hit | $0.40 / 1M tokens |
| Cache write (Claude Messages endpoint) | $5.00 / 1M tokens |
| Output | $20.00 / 1M tokens |
Billed per 1M tokens, pay as you go in USD. Failed requests are not billed. The price shown is the public list price; after signing in, the console shows the price for your own account.
Model details
| Model ID | claude-opus-5 |
| Provider | Anthropic |
| Type | Chat |
Endpoints
Quickstart
Create an API key in the console, then call the API:
curl https://api.onefast.ai/v1/messages \
-H "x-api-key: $API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'More examples: Claude Messages docs · Quickstart.