AI engineering is more than writing good prompts. It's standing up a system where every LLM call names its model, every prompt is versioned, and every change is evaluated, released and monitored - with observability that explains what happened. Here's the full stack, and how the pieces fit together.

1. The gateway and the model choice

Every request should go through one OpenAI-compatible gateway. The request names the model in model, and the gateway routes it to that model's provider. The gateway does not pick the model for you: there is no automatic selection and no mode that trades cost against quality behind your back. A key lists allowed, excluded and fallback models: allowed models bound what a service may call, excluded models refuse a model even when it is otherwise allowed, and fallback models are tried in order only when the provider fails - a 5xx, 429 or 408, a timeout, a network error, or an open circuit. Other 4xx errors go back to your app unchanged, and the key's own limits refuse before a model is called, so a budget or rate stop never falls back to a more expensive model.

Models in the Infere app. Every model behind the one endpoint, with its context size, price per million tokens and your own 7-day cost. Example data.

2. Prompt management as code

Prompts are code. A prompt is a file, prompts/<name>.pml, in a real repository: ordered messages with roles, {{variables}}, model settings and optional tools. Every save is a commit, so every save is a version, and branches and pull requests give a prompt change the same review cycle as a feature. A prompt does nothing on its own: a release puts one version on one or more keys, and a key keeps what it holds until you release a new version.

3. Evaluation: test sets, evaluators and checks

Before a prompt ships, score it. Test sets are collections of real requests and their stored responses from Logs, split into train, dev and test partitions and frozen into versions - only a frozen version can be scored. An evaluator is one of three kinds: a model, your code, or a fixed rule, and each returns pass or fail with a message. A scoring run gives every stored response in a frozen version each evaluator's verdict; checks run the same evaluators on the held-out test examples before a release and compare the result with a bar. A failing required check keeps that key on what it holds, at the dev, staging and production gates and on merges into main.

4. Observability: requests, runs, conversations and jobs

After it ships, watch it. Logs keeps every request for 90 days, refused ones included, with latency, cost, tokens, model, provider and outcome, in four tabs: Requests, Runs, Conversations and Jobs. The grouping comes from headers your project sends: X-Infere-Session-Id for a run (with X-Infere-Session-Name and X-Infere-Session-Path for the step), X-Trace-Parent to nest a step inside a run, X-Conversation-Id for each turn of a chat, and X-Infere-Batch-Id for a batch job. Home turns the same data into health tiles and problems grouped by key, and Signals sends a message when a condition you set holds.

5. Security and governance

The controls sit on the key: six Protection settings (attack check, personal data, blocklist, content moderation, data residency in eight regions, and compliance), a budget per day, week or month with an 80% warning email, request limits per minute, hour and day, and an IP allowlist that narrows the workspace's API allowlist. Every change lands in the audit log with who, what and the change before and after. Governance lets teams move fast without leaking data or blowing budgets.

The unified stack

The key insight is that these aren't separate tools. When prompt management, evaluation, and observability share one platform, you can follow a quality regression back to the exact prompt commit and roll it back. That closed loop is what makes production LLM systems sustainable.

# The closed loop

model + key  →  prompt release  →  checks  →  Logs  →  rollback  →  model + key
Production AI engineering is a loop: name the model, version the prompt, check it, release it, observe it, and improve - every time.

Getting started

Infere brings the whole stack together: one OpenAI-compatible gateway, prompts as .pml files with releases, test sets and evaluators, checks that gate releases, Logs and Query (SQL), and protection on the key. Start with a key and a fallback model, then layer in evaluation and observability as you scale.

Understanding the full cost picture matters as you scale - see our breakdown of the true cost of agentic coding to keep spend predictable alongside engineering quality.

Build production-grade LLM systems

Name the model, version the prompt, check the release, and monitor - the full AI engineering stack.

Create an account → Explore the Features