The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
- Shared base and layering rules:
../inference/AGENTS.md - This crate owns Responses API call orchestration. Payloads belong in
litellm-llms-types, transformations inllms/src/base_llm/responsesandllms/src/<provider>/responses - The HTTP route returns
litellm_host::call::CallOutput: a completed response, or a stream head and chunks, cached throughlitellm_inference::caching::execute_streaming - WebSocket sessions (
src/websocket.rs) stay separate from the HTTP call driver because a connection can accept multiple requests while receiving events src/ids.rsowns the LiteLLM-managed ids handed back to callers (resp_,encitem_,litellm_enc:,cntr_) and must stay fully compatible withlitellm/responses/utils.py