openrouter-typescript-sdk

Integrate 300+ AI models via a type-safe TypeScript SDK using callModel.

29|9|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/OpenRouterTeam/agent-skills --skill openrouter-typescript-sdk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: openrouter-typescript-sdk
Source: https://github.com/OpenRouterTeam/agent-skills/tree/main/skills/typescript-sdk
Command: npx skills add https://github.com/OpenRouterTeam/agent-skills --skill openrouter-typescript-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables developers to integrate 300+ AI models through a single, type-safe TypeScript SDK using the callModel pattern.

Core Features & Use Cases

  • Type-safe, IDE-friendly callModel interface for all supported models
  • Auto-generated model definitions via OpenAPI, enabling stable updates
  • Streaming and multi-turn conversation support with tooling integration
  • Suitable for building AI agents, assistants, and automated workflows in production
  • Real-world use: route inputs to different models based on context

Quick Start

Install the SDK with npm i @openrouter/sdk, then initialize the client with your API key and begin calling models using client.callModel.

Frequently Asked Questions about openrouter-typescript-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call multiple AI models using a single TypeScript SDK?▼

You can call multiple AI models using a single TypeScript SDK by initializing the OpenRouter client with your API key and using the type-safe callModel pattern to route inputs across 300+ models.

Does the OpenRouter TypeScript SDK support streaming responses and multi-turn conversations?▼

Yes, the OpenRouter TypeScript SDK supports streaming responses and multi-turn conversations, allowing developers to build interactive AI agents and automated workflows with integrated tool execution.

What is the best way to integrate type-safe AI model routing in a production environment?▼

The best way to integrate type-safe AI model routing in production is using an OpenAPI-driven SDK that provides IDE-friendly parameters, ensuring stable updates across 300+ diverse models.

Can I use the OpenRouter TypeScript SDK to build automated tooling workflows?▼

Yes, you can use the OpenRouter TypeScript SDK to build automated tooling workflows, as it provides a programmable API wrapper with tool execution support and streaming results for production environments.

Do I need an API key to start calling models with the OpenRouter TypeScript SDK?▼

Yes, you need an API key to initialize the client and begin calling models using the callModel interface after installing the SDK with npm i @openrouter/sdk.