LangDB API Reference
Complete API reference for LangDB unified AI gateway services.
Introduction
This API is documented in OpenAPI format and provides access to LangDB's unified AI gateway services.
LangDB offers a comprehensive platform for managing and interacting with 250+ LLM models through a single unified interface. The API supports:
- Multiple Model Providers: Access models from OpenAI, Anthropic, Google, Meta, and many more
- Unified Interface: Use OpenAI-compatible API format for all models
- Enterprise Features: Advanced routing, analytics, rate limiting, and more
- Thread Management: Track and manage conversation threads across models
- Usage Analytics: Monitor your API usage and costs in real-time
All API endpoints use Bearer Authentication with JWT tokens. Include your API key in the Authorization header:
Authorization: Bearer <your-api-key>
Additionally, include your Project ID in the x-project-id header for all requests:
x-project-id: <your-project-id>
API Specifications
- Analytics API
- Completions API
- Enterprise API
- Misc API
- Threads API
Analytics API
Analytics and usage tracking endpoints for monitoring your LangDB usage.
Completions API
Chat completions and text generation endpoints for interacting with LLM models.
Enterprise API
Enterprise features including model management and admin operations.
Misc API
Miscellaneous endpoints including embeddings and other utility functions.