Shows how to point the official TypeSafe JavaScript and Python clients at OpenRouter, including the base URL, authentication, model IDs, supported endpoints, and migration from a direct client.
Original by OpenRouterIntegrationsOpenRouter docsSource reviewed
Before you dive in
What you’ll find in the original
Configure the SDK base URL and gateway credentials together.
Check which model IDs and endpoints the gateway actually supports.
Keep the typed question/answer contract while changing the request destination.
Worth knowing
The SDK is TypeSafe’s; gateway billing and available models are governed by OpenRouter.