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.
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.
The SDK ships full .d.ts declarations. Key types: