Type-safe TypeScript toolkit for building AI features against 400+ models through OpenRouter.
The OpenRouter TypeScript SDK is a type-safe toolkit for building AI-powered
features in any JS or TS runtime, giving you access to 400+ models across
providers through a single unified API.
This package is published as an ES Module (ESM) only. For applications using
CommonJS, use await import("@openrouter/sdk") to import and use this package.
Browse the API reference for each resource in the sidebar. Type definitions for
every request, response, model, and operation are linked inline from each
resource page.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.