Node.js SDK Overview
Node.js SDK
TypeScript SDK for the MeshAPI AI model gateway — an OpenAI-compatible API that proxies to OpenRouter with multi-tenant key management, rate limiting, and prompt templates.
Supports Node.js 18+ with full TypeScript strict-mode types, native fetch, and streaming via AsyncIterable.
Installation
Quick Start
Authentication
All requests require a Mesh API key (prefixed with rsk_).
This key provides access to all endpoints, including completions, models, templates, images, and batch jobs.
Configuration Options
TypeScript
The SDK ships full .d.ts declarations. Key types: