Claude Opus 4.8
model: 'claude-opus-4-8'
Available through anthropic, vertex, and openrouter. The most capable Claude model maat supports, with the largest output window.
Configuration
ts
// Anthropic
{
provider: 'anthropic',
model: 'claude-opus-4-8',
extra: { apiKey: process.env.ANTHROPIC_API_KEY },
}
// Vertex AI
{
provider: 'vertex',
model: 'claude-opus-4-8',
extra: { project: 'my-gcp-project', location: 'us-central1' },
}See Anthropic, Google Vertex AI, or OpenRouter for authentication.
Specifications
| Max input tokens | 1,000,000 |
| Max output tokens | 128,000 |
| Temperature | Not sent — sampling parameters are unsupported on this model |
Cost
| Cost | |
|---|---|
| Input tokens | $5.00 / million |
| Output tokens | $25.00 / million |
Costs are estimates. Actual billing depends on the provider and region.
JSON output
JSON enrichers use schema-enforced structured outputs — output_config.format on the native Anthropic and Vertex paths, response_format: json_schema via OpenRouter.
Timeout
timeoutMs applies per individual LLM call within a batch. If unset, no explicit timeout is applied beyond the provider's default.
