Skip to main content
Inworld Router is fully compatible with the OpenAI SDK. By simply changing the base_url and api_key, you can add the capabilities of Inworld Router to your existing apps.

Endpoint

The OpenAI-compatible API endpoint is available at:
To use Inworld Router, change your API call URL or SDK base URL from https://api.openai.com/v1 to https://api.inworld.ai/v1.

OpenAI SDK

Below is an example request using OpenAI’s SDK