LLM application infrastructure foundation
Unified LLM Gateway for cost-aware AI models
Route every OpenAI-compatible request through one controlled gateway: tier selection, provider failover, budgets, usage logs, and spend intelligence without changing application code.
Supported workflows
OpenAI SDKLiteLLMLangfuseChatResponsesEmbeddingsModels 200 OK
POST/v1/chat/completions
REQUEST
curl -X POST "/v1/chat/completions" \
-H "Authorization: Bearer sk-..." \
-d '{
"model": "auto",
"metadata": { "tier": "balanced" },
"messages": [
{ "role": "user", "content": "..." }
]
}'RESPONSE
{
"model": "balanced",
"provider": "deepseek",
"usage": { "input_tokens": 112, "output_tokens": 38 }
}184 ms150 tokenscost $0.00004failover ready