Skip to main content
If you are using Anthropic’s SDK directly, switching to Routor takes two changes. You swap to the OpenAI-compatible SDK format, which Routor uses as its standard interface.

Before and After

Python (Anthropic SDK → Routor)

Before:
After:

Node.js (Anthropic SDK → Routor)

Before:
After:

Key Differences

The Anthropic SDK uses a different response format than the OpenAI SDK. The main changes when moving to Routor’s OpenAI-compatible format:

If You Still Want Claude Specifically

Routor will route to Claude when the prompt complexity justifies it. If you always want Claude regardless of complexity, set a tier floor that maps to Claude models:
Or create a Routing Profile with a tier floor set permanently, so every request from that key uses at least STANDARD tier where Claude Sonnet is the primary model.

System Prompts

Both SDKs support system prompts, just in different formats. In the OpenAI format used by Routor: