Anthropic Provider¶
Integration with Anthropic's Claude models.
Supported Models¶
claude-3-5-sonnet-20241022- Latest Sonnetclaude-3-5-haiku-20241022- Fast and affordableclaude-3-opus-20240229- Most capable
Configuration¶
models:
- provider: "anthropic"
model_name: "claude-3-5-haiku-20241022"
env_api_key: "ANTHROPIC_API_KEY"
Getting API Key¶
- Visit console.anthropic.com
- Get your API key
- Export:
export ANTHROPIC_API_KEY=sk-ant-your-key
Pricing¶
- Haiku: $0.80/1M input, $4/1M output
- Sonnet: $3/1M input, $15/1M output
See Providers Overview for comparison.