Skip to main content
A type-safe API client for the LiteLLM proxy API, auto-generated from the official OpenAPI specification with full TypeScript support.

Features

  • Type-Safe - Full TypeScript support with auto-generated types from OpenAPI spec
  • LLM Proxy - Unified interface for multiple LLM providers
  • Auto-Updated - Daily regeneration from upstream OpenAPI specs

Installation

Usage

Basic Usage

Type Exports

API Reference

The client exposes LiteLLM API endpoints including:
  • Chat Completions - Chat completion API (OpenAI-compatible)
  • Completions - Text completion API
  • Embeddings - Text embedding generation
  • Models - Available model listing
  • Keys - API key management
  • Users - User management
  • And more…
For the complete API reference, see the LiteLLM documentation.