Build type-safe AI integrations through OpenRouter.
AI integration
Guides TypeScript integrations that use OpenRouter for text generation, tools, streaming, and multi-turn conversations.
When to use it
Use when integrating AI models through the OpenRouter TypeScript SDK and its callModel pattern.
It changes how the agent implements OpenRouter integrations in a TypeScript project by applying the callModel reference and examples.
What you provide
This skill
OpenRouter API
Sends prompts to OpenRouter (irreversible)
@openrouter/sdk
Installs the OpenRouter SDK
The OpenRouter TypeScript SDK package must be installed in the project.
API-key authentication requires an OpenRouter account from which a key can be created.
Zod is optional and enables strongly typed tool schemas with validation and type inference.