Anthropic SDK
This guide shows you how to point the official Anthropic SDK at the to11 gateway. Set thebase_url to your gateway’s /v1 endpoint and use the Anthropic messages API as usual.
Python
TypeScript / Node.js
Streaming
System messages
Pass a top-levelsystem parameter as you normally would:
Tool use
Tool definitions follow the Anthropicinput_schema format:
Extended thinking
Extended thinking blocks are preserved in Anthropic-format responses when enabled on the model. Thethinking content type passes through the gateway as-is.
Cross-format routing
If you route an Anthropic-format request to an OpenAI model, the gateway translates automatically:system parameter is converted to a {"role": "system"} message, and tool definitions are translated to OpenAI’s parameters format.