Gateway
Gateway
Record and analyze your production LLM traffic
Inference Gateway captures LLM requests flowing through your products. It stores the raw request, response, and metadata associated with each invocation of an LLM.
Recorded data is used to provide in-depth metrics and visibility into your LLM token usage, cost, latency, and error rates, across all your providers in a single, unified view. Additionally, this data is used to power downstream model evaluation and training.
Inference Gateway supports all major LLM providers and frameworks. For agents, tools, framework runs, and custom orchestration, Inference Tracing captures full trace trees and individual spans in addition to gateway inferences. View the integrations guide for in-depth instructions.
Key concepts
| Concept | Description |
|---|---|
| Gateway | Edge layer between your app and LLM provider. Records traffic with < 10ms overhead. |
| Inference | A single LLM call stored by Gateway. Includes request, response, cost, latency, & token counts. |
| Trace | A multi-step execution captured through OpenTelemetry. Useful for agents, tools, framework runs, and custom orchestration. |
| Span | One step inside a trace, such as a model call, tool call, retriever, graph node, or custom application operation. |
| Task | A user-defined objective (like "summarize docs" or "classify tickets") that groups related inferences so you can track each AI feature independently. |
| Metrics | Aggregated cost, latency, error rates, and token usage across your inferences. Filterable by model, task, or provider. |