Endpoint
The Anthropic-compatible Messages API is available at:https://api.inworld.ai. The SDK automatically appends /v1/messages.
Authentication
Use your Inworld API Key with theAuthorization: Bearer header:
auth_token parameter (not api_key), which sends it as Authorization: Bearer:
Anthropic SDK
Below is an example request using Anthropic’s SDKResponse
The response follows the Anthropic Messages API format:Inworld Router adds a
metadata field to the response containing routing information — which model was selected, attempt history, and timing. This field is not part of the standard Anthropic response format, but it does not break Anthropic SDK parsing.Next Steps
- Claude Code Integration to use Inworld Router as your Claude Code backend.
- Migrating from Anthropic for a step-by-step migration guide.