base_url parameter once and your existing SDK code works as-is — no other changes required.
Installation
pip
Basic setup
python
When using the Anthropic SDK, set
base_url to https://router.flatkey.ai (without /v1). The SDK appends the path automatically.Sending a message
python
System prompts
python
Streaming
python
Multi-turn conversations
python
Available Claude models
See the Model Directory for all Claude models and current pricing.