/v1/chat/completions endpoint, you can also integrate with our Anthropic Messages API compatible /v1/messages endpoint, OpenAI SDK, and Anthropic SDK.
Create your first Router on Portal
Open Routers
In Inworld Portal, go to Routers and select “Compare frontier models”.

Create a router
Click Save to create this router, which splits your traffic between Anthropic’s Opus 4.6, Google’s Gemini 3.1 Pro, and OpenAI’s GPT-5.2.

Get your API Key
Go to API Keys and click Generate new key. Copy the Base64 credentials.
Create your first Router via API
Get your API Key
In Inworld Portal, go to API Keys and click Generate new key. Enable Write permissions for the Router API, and click Generate.Copy the Base64 credentials.

Create a router
Now let’s create a router that splits your traffic between Anthropic’s Opus 4.6, Google’s Gemini 3.1 Pro, and OpenAI’s GPT-5.2.