Documentation
A full featured and managed AI gateway that provides instant access to 250+ LLMs with enterprise ready features.
A self-hosted option for organizations that require complete control over their AI infrastructure.
Getting Started
Govern, Secure, and Optimize your AI Traffic. LangDB AI Gateway provides unified interface to all LLMs using OpenAI API format. Built with performance and reliability in mind.
from openai import OpenAI
client = OpenAI(
base_url="https://api.us-east-1.langdb.ai" # LangDB API base URL,
api_key=api_key, # Replace with your LangDB token
)
# Make the API call to LangDB's Completions API
response = client.chat.completions.create(
model="gpt-4o", # Use the model
messages=[{"role": "developer", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}],
extra_headers={"x-project-id": "xxxxx"} # LangDB Project ID
)
Discover LangDB features and capabilities.
Introduction to LangDB's AI Gateway and its capabilities.
Guide to integrating LangDB using its API.
Learn how to track and analyze multiple AI agents in LangDB.
Explore the Python SDK for seamless integration with LangDB.
Features
Monitor and debug LLM workflows.
Automatically picks the best model for your query.
Optimize LLM selection dynamically based on cost, speed, and availability.
Enable compatibility and integration with MCP systems.
Track costs effectively.
Gain insights of your API calls.
Ensure safe, reliable, and compliant AI interactions.
Manage users in your organisation.