Skip to content

What is LLMOps? The six jobs between a model and production

LLMOps is the work of running a model you did not train as a feature users depend on. The six jobs, what breaks without each, and what to build first.

Published
Reading time
14 min read

In short

  • LLMOps is the operational work between a model you did not train and a feature users depend on. It covers six jobs: routing, context, tools, guardrails, tracing, and evaluation.
  • LLMOps differs from MLOps in what you control. The model is rented, the artifact you version is the prompt with its context and configuration, and an eval suite replaces accuracy on a held-out set.
  • With one LLM feature, build tracing first and a small eval set second. A gateway earns its place when a second team, application, or provider appears, and learned routing comes last because it needs eval data to check it.
  • Each skipped stage has its own failure: an outage with no fallback, a bill nobody can explain, an agent that never stops, a leak, an answer nobody can reproduce, or a regression that users report first.

LLMOps (large language model operations, also written LLM Ops) is the operational work that sits between a model you did not train and a feature users depend on. The model arrives as an API or open weights. Everything that makes it dependable is yours to run: which provider answers, what goes into the prompt, what the model may do, what gets blocked, what gets recorded, and how you know the answers are right.

This guide sorts that work into six jobs, in the order a request meets them: gateways and routing, context and caching, agents and tools, guardrails, observability, and evaluation. This article defines each job, says what breaks without it, and links to the article that covers it in depth.

Where the term LLMOps came from

The term LLMOps is modeled on MLOps, which is modeled on DevOps, and it was in use by April 2023. That month Chip Huyen's essay Building LLM applications for production used it without defining it, in the line "The cost of LLMOps is in inference." A 2024 conference review of the literature found the term so recent that researchers had not agreed on what it covers.

Cloud vendors define it by inheritance. Google Cloud treats LLMOps as a subset of MLOps and stresses the size of the models, their training requirements, and their compute demands. That description fits a team that trains or fine-tunes a model.

AWS draws a more useful line. Its guide to operationalizing generative AI, first published in September 2023 and revised in December 2025, sorts users into providers who build models, fine-tuners who adapt them, and consumers who reach them through prompts. It says MLOps practices matter most to the first two groups, and that consumers run into problems that neither MLOps nor ordinary software operations covers.

This guide is written for consumers and uses their definition. The label keeps moving (the AWS post began under the names FMOps and LLMOps and now says GenAIOps), and the work is the same under each name.

LLMOps vs MLOps: what changes when the model is rented

LLMOps keeps the aim of MLOps, which is to run a model-backed system reliably, and changes what there is to run. Four things differ: the model is rented, the artifact you version is a prompt with its context and configuration, an evaluation suite replaces accuracy on a held-out set, and cost is charged per request.

Google's MLOps reference architecture defines MLOps as a practice that unifies the development and operation of ML systems. It adds continuous training, the automatic retraining and redeployment of models, to continuous integration and delivery, and it scores each new model on a holdout test set. A team that calls a hosted model has no training to automate and no holdout score to gate on.

MLOpsLLMOps
The modelTrained by you, on your dataRented through an API, or open weights you serve
What you versionTraining data, code, and model weightsPrompt, context sources, tool definitions, model ID, and parameters
Release gateA metric on a held-out test setAn eval suite scored by code checks, model judges, and people
Output for one inputA fixed value or labelText that can differ from run to run
Where the cost sitsTraining runs and serving capacityEvery request, priced in tokens
What changes underneath youThe data users sendThe data, and the model when its provider updates or retires it

The model is rented, so it can change without a deploy on your side. As of November 2026, Anthropic's deprecation policy promises at least 60 days' notice before a publicly released model is retired, and OpenAI's policy normally gives at least six months for generally available models. After that date, requests to the model fail. The authors of What We've Learned From A Year of Building with LLMs describe a team that saw a 10 percent drop on an intent classification task after moving between two versions of the same model. Pin a dated model version, and treat a model change as a release that has to pass your evals.

The artifact is the prompt and everything around it. No weights change when you ship, so the thing to version is whatever can change an answer: the prompt template, the retrieval settings, the tool definitions, the model ID, and the request parameters. Version them as one unit. A rollback that restores last week's prompt and keeps this week's retrieval settings produces a combination nobody tested.

release.yaml
# Everything that can change an answer, released and rolled back together.
# The format is illustrative. There is no standard one.
release: support-answer-2026-11-16
model: example-model-2026-08-01      # a dated snapshot, not a moving alias
prompt: prompts/support-answer.md    # at the commit this release is tagged on
retrieval:
  index: help-center-2026-11-10
  top_k: 6
tools: tools/support.json
params:
  max_output_tokens: 800
evals:
  suite: evals/support.jsonl
  baseline: support-answer-2026-11-03

Outputs vary between runs. Anthropic's glossary says that results are not fully deterministic even with temperature set to 0. A test that asserts an exact output string will fail at random. LLM evaluation scores properties of the output across a dataset and reports the uncertainty in the score, which makes it a stage of its own, separate from the unit tests.

Cost is per request. Providers bill by the token, so the bill grows with traffic and with the size of every prompt and answer. On Anthropic's price list as of November 2026, output tokens cost five times as much as input tokens on every model listed, and the four models at the top of the list span an 80-fold range in input price, from $0.10 to $8 per million tokens. Which model answers, and how long the prompt is, are operating decisions made on every request.

What carries over from MLOps is the discipline: version everything, gate releases on measurement, and turn production failures into test data. A team that fine-tunes a model or serves open weights needs the MLOps half too, and RAG vs fine-tuning weighs when that is worth taking on.

The six jobs, in the order a request meets them

A production request passes through six stages, and each stage is a job somebody has to own. Four of them act on the request, one records what the others did, and one scores the result.

REQUESTGRADED ANSWER01GatewayRoutingFailoverBudgets02ContextPrompt orderCachingToken budget03AgentsTool callsLoop limitsMCP access04GuardrailsInput checksOutput checksApprovals05ObservabilityTracesToken costLatency06EvaluationOffline evalsOnline evalsRelease gate01 to 04 act on the request. 05 records what each one did. 06 scores the answer.
The six jobs along the path of one request. Observability is highlighted because it is the one to build first, and it records what every other stage did.

1. Gateways and routing

A gateway is one entry point for all model traffic. Applications call it with one API format and one key, and it picks a provider, fails over on errors, enforces budgets and rate limits, and logs the call. What an LLM gateway does explains the mechanics, LLM routing how to choose a model per request, and virtual keys how to set budgets per team.

Without this job, every service carries its own provider keys and retry loop. A provider outage takes each feature down separately, and nobody can say which team spent what.

2. Context and caching

Context work decides which tokens the model sees on each call, in what order, and what you pay for them. Context engineering shows how to budget and order the window, and prompt caching explains the discount providers give on a prompt prefix that repeats unchanged.

Skip it, and prompts grow until answer quality drops, a failure described in context rot, while you pay full price for the same system prompt on every request.

3. Agents and tools

This job covers everything that lets the model act: tool calling, the agent loop that repeats model and tool calls until a task is done, and the Model Context Protocol (MCP), the open standard for connecting models to tools and data. The operational part is the limits. A loop needs a step budget and a token budget, each tool needs permissions per caller, and writes need approval. Once several teams share tool servers, an MCP gateway puts those controls in one place.

Without this job, an agent runs until something outside it stops it. Anthropic reports that its agents use about four times the tokens of a chat interaction and its multi-agent systems about 15 times, so a run with no budget gets expensive fast.

4. Guardrails and security

Guardrails are checks outside the model that block, redact, or flag a request or a response. LLM guardrails shows where to place them and what they add in latency and cost. The threat they cannot fully stop is prompt injection, text the model reads that carries instructions the developer never wrote. Filters lower its success rate. Containing it takes limits on what the model is permitted to do.

Without guardrails, a pasted secret travels to a third-party API, a retrieved web page redirects an agent, or a tool with write access acts on an attacker's instruction.

5. Observability

LLM observability is the ability to explain one specific response after the fact: which model answered, what it was sent, what it cost, and how long each step took. What to record on every request lists the fields, and AI agent observability extends the trace from one request to a whole agent run.

Without this job, a bad answer cannot be reproduced. The request returned HTTP 200, the dashboard is green, and the only evidence is a user's screenshot.

6. Evaluation

Evaluation measures whether the system does its task well enough to ship. The evaluation article covers the dataset, the offline evals that gate every change, and the online evals that grade a sample of live traffic. Open-ended output usually needs a model to grade it, and LLM as a judge explains how to calibrate that grader against human labels.

Without evaluation, every prompt edit and model upgrade is a guess. A change that fixes the case in front of you can break cases you did not look at, and users find them first.

LLMOps best practices: what to build first with one feature

With one LLM feature in production, build tracing first and a small eval set second, and leave the gateway and any routing logic until a second team, application, or provider appears. The order follows the dependencies, because every other stage is tuned with data these two produce.

  1. Trace every model call. Record the model, the prompt version, token counts, cost, latency, and the finish reason. Keep prompt and response text only for a sampled, redacted slice, with retention measured in days.
  2. Build an eval set of 50 to 100 real cases, the starting size the evaluation article recommends. Draw them from your traces, weight them toward failures, and run them on every prompt or model change.
  3. Pin the model version, and version the prompt, retrieval settings, and tool definitions with it as one release.
  4. Order the prompt for caching, stable content first, and give each part of the window a token budget.
  5. Add guardrails sized to the risk. An internal summarizer needs an output format check. A public agent with write access needs input checks, output checks, and an approval step.
  6. Add a gateway when the second caller appears. The application-side change is a base URL and a key, so adding it later is cheap.
  7. Add cost-based or learned routing last. Sending easy requests to a cheaper model is safe only when eval data shows its answers hold up.

The authors of What We've Learned From A Year of Building with LLMs give the same sequence for staffing a team: build the product, then instrument it and collect data, then optimize with metrics and evaluation systems.

The cost of this order is exposure. Until the gateway exists, a provider outage is your outage, and the SDK's built-in retries are the only protection. For one service on one provider, that risk is acceptable. Skipping a stage is a fair call while its failure cannot happen yet. The exceptions are observability and evaluation, which tell you whether the stages you skipped are hurting you.

LLMOps tools: what the stack contains

An LLMOps stack has one component per job, plus the repository that holds prompts, configuration, and eval data. Choose tools by job, and prefer open formats, such as OpenTelemetry for traces and MCP for tools, so that a component can be replaced without losing the data behind it.

JobComponentWhat to keep under your control
Gateways and routingA proxy in front of every providerRouting rules, keys, and budgets
Context and cachingPrompt templates, a retrieval index, provider prompt cachingPrompt files in version control
Agents and toolsA tool layer, often MCP serversTool definitions and permissions
GuardrailsRule checks, classifiers, and model judgesThe policy each check enforces
ObservabilityA tracing backend that accepts OpenTelemetry dataTrace data and its retention period
EvaluationAn eval runner in CI and a grader for sampled trafficThe dataset and the rubrics

An LLMOps pipeline is the path a change takes through that stack. A prompt or setting is edited, the offline evals run against the last release, the change ships to a share of traffic, and a sample of live answers is graded. Failures found in production become new eval cases. The articles linked under each job compare specific tools.

LLMOps vs AgentOps

AgentOps is LLMOps applied to agents, where the unit of work is a run of many model and tool calls instead of a single request. A 2024 paper that set out AgentOps as a DevOps practice for agents argued that existing tools tracked model-level metrics and prompts, and gave little visibility into what is specific to an agent: its goals, its plans, and its tools.

In this guide's terms, AgentOps is job three plus the run-level versions of jobs five and six: a step and token budget per run, permissions per tool, one trace for the whole run, and a score for the path the agent took as well as its answer. A team that runs agents should extend each job from the request to the run. It does not need a second practice with its own tools and owners.

Who owns LLMOps in a real organization

The team that ships the feature owns LLMOps until a second team ships one, and after that the work splits between product teams and a platform team.

With one feature, the product engineers own all six jobs, including the eval set and the on-call rotation. The authors of What We've Learned From A Year of Building with LLMs suggest adding the review of model inputs and outputs to that rotation.

With several teams, the jobs that are the same for everyone move to a platform team: the gateway, keys and budgets, the tracing pipeline, and shared guardrail checks. The jobs that depend on the task stay with the product team: the prompt, the context, the tool definitions, and the eval set. Only the team that knows the task can say what a correct answer is, so an eval suite written by a platform team for a product it does not use ends up measuring generic qualities. Security sets the policy the guardrails enforce, and finance reads the cost data the gateway produces.

The split has a cost. Product teams now wait on the platform team for a new provider feature or a routing change, so keep the shared layer small and its interface stable.

Frequently asked questions

What is LLMOps?

LLMOps, short for large language model operations, is the work of running a model you did not train as a production feature. It covers six jobs: routing requests to providers, managing context and caching, controlling agents and tools, enforcing guardrails, recording traces, and evaluating output.

What is the difference between LLMOps and MLOps?

MLOps operates models you train: it versions data and weights, automates retraining, and gates releases on a held-out metric. LLMOps operates models you rent: it versions prompts, context, and configuration, gates releases on an eval suite because outputs vary between runs, and tracks cost per request in tokens. A team that fine-tunes or self-hosts a model needs both.

What is the difference between LLMOps and AgentOps?

AgentOps applies the same jobs to agents, where the unit of work is a run of many model and tool calls. It adds budgets per run, permissions per tool, a trace of the whole run, and evaluation of the path the agent took. It extends LLMOps, and it does not need a separate practice.

Does a team that only calls a model API need LLMOps?

Yes, the consumer half of it. An API-only team has no training pipeline to run, but it still has prompts to version, outputs that differ between runs, a per-token bill, and a provider that can update or retire the model. Tracing, a small eval set, and a pinned model version are the minimum.

What tools does an LLMOps stack contain?

An LLMOps stack has a gateway in front of model providers, prompt and retrieval management, a tool layer such as MCP servers, guardrail checks, a tracing backend, and an eval runner. The parts worth owning yourself are the data: prompts, routing rules, traces, eval cases, and rubrics.

What is an LLMOps pipeline?

An LLMOps pipeline is the path a prompt, model, or configuration change takes to production. The change runs against an offline eval set, ships to a share of traffic, and is graded on sampled live responses. Failures found in production are added to the eval set, so the next change is tested against them.

Sources

  1. 01Building LLM applications for productionChip Huyen
  2. 02Large Language Model Operations (LLMOps): Definition, Challenges, and Lifecycle ManagementIEEE SpliTech 2024, TECNALIA research record
  3. 03What is LLMOps (large language model operations)?Google Cloud
  4. 04Operationalizing Generative AI: How It Differs from MLOpsAWS Machine Learning Blog
  5. 05MLOps: Continuous delivery and automation pipelines in machine learningGoogle Cloud Architecture Center
  6. 06What We've Learned From A Year of Building with LLMsApplied LLMs
  7. 07Model deprecationsClaude API docs
  8. 08DeprecationsOpenAI API docs
  9. 09GlossaryClaude API docs
  10. 10PricingClaude API docs
  11. 11How we built our multi-agent research systemAnthropic
  12. 12AgentOps: Enabling Observability of LLM AgentsarXiv:2411.05285