openrouter-typescript-sdk

Call OpenRouter AI models with type-safe TypeScript parameters.

2|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/HokageZ/JOB-HUNTER --skill openrouter-typescript-sdk-hokagez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openrouter-typescript-sdk
Source: https://github.com/HokageZ/JOB-HUNTER/tree/main/.agents/skills/openrouter-typescript-sdk
Command: npx skills add https://github.com/HokageZ/JOB-HUNTER --skill openrouter-typescript-sdk-hokagez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies integrating with a vast array of AI models through a unified TypeScript SDK, abstracting away the complexities of different APIs.

Core Features & Use Cases

  • Unified API Access: Interact with over 300 AI models through a single, type-safe interface using the callModel pattern.
  • Flexible Input/Output: Supports various input formats (text, messages, multimodal) and provides multiple response consumption methods (text, streaming, full response).
  • Tool Integration: Define and use custom tools with Zod schemas for robust AI agent development.
  • Use Case: Build an AI-powered chatbot that can dynamically select the best model for a given task, handle multi-turn conversations, and even execute external tools like web searches or database lookups.

Quick Start

Use the openrouter-typescript-sdk skill to call the 'openai/gpt-5-nano' model with the input 'Hello!'.

Frequently Asked Questions about openrouter-typescript-sdk

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

FAQPage Schema
How do I integrate multiple AI models using a TypeScript SDK?

You can integrate multiple AI models by using the `callModel` pattern in a TypeScript SDK, which provides a single type-safe interface to access over 300 models via the OpenRouter API. This abstracts away different API complexities.

How do I define custom tools for an AI agent in TypeScript?

To define custom tools for AI agents in TypeScript, use Zod schemas within the SDK. This allows robust tool integration for tasks like web searches or database lookups during multi-turn conversations.

Can I stream AI model responses with TypeScript?

Yes, you can stream AI model responses with TypeScript. The SDK supports various response consumption methods including text, full response, and streaming options for flexible input and output handling.

What authentication methods does the OpenRouter TypeScript SDK support?

The OpenRouter TypeScript SDK supports both API key and OAuth authentication, ensuring secure access when leveraging various AI models for text generation and tool usage.

Does the OpenRouter API SDK support multimodal inputs?

Yes, the OpenRouter API SDK supports various input formats including text, messages, and multimodal inputs. This enables flexible interaction with over 300 AI models through the unified TypeScript interface.