All posts

AI feature SLOs and SLAs: what to promise enterprise customers when the model is non-deterministic

An AI feature SLO needs more than uptime. Which indicators to measure, which to put in a contract, and how to keep a provider outage or a quality drift from becoming your SLA breach.

CodeKrypt 4 min read

An enterprise buyer is about to sign, and procurement sends one line back: "Please confirm 99.9% availability for the AI assistant." You can host a normal API against that number. An AI feature SLA is harder, because the feature can be up, fast, and still wrong, and because the model underneath belongs to someone else.

This post covers what to measure, what to put in a contract, and what to keep internal. It is about the domain, not any past CodeKrypt engagement. Nothing here is legal advice, and contract wording should go through counsel.

What is the difference between an SLI, an SLO and an SLA?

Google's SRE book chapter on service level objectives gives the vocabulary most teams use:

That test matters for AI features. Plenty of teams write "99.9%" in a sales deck and discover later that it was an SLA by implication.

Which indicators fit an AI feature?

The SRE chapter advises a handful of representative indicators rather than every available metric, and says to treat metrics as distributions, not averages. A mean latency hides the slow tail that users complain about. For an AI feature, a sensible starting set:

IndicatorWhat it measuresContract candidate?
Success rateRequests that return a usable response, not an error or timeoutYes
Time to first token (p95)How long until the user sees somethingYes, with care
Full response time (p95)Time until the answer finishesRarely; length varies
Guardrail or schema pass rateOutputs that clear your checksInternal
Quality score on a fixed eval setWhether answers are still goodInternal
Support response timeHuman reply to an incidentYes

Our posts on LLM latency and time to first token and LLM output guardrails cover how to measure the second and fourth rows.

Why is "available" not enough for AI?

A classic API is correct or broken. An LLM feature has a third state: responding fine and getting worse. A prompt edit, a provider-side model update or a shift in your users' inputs can degrade answers while every uptime check stays green.

Define success rate to include the checks you can automate: a response that fails schema validation or is cut off is a failure, even if the provider returned HTTP 200. Leave open-ended quality out of the contract and track it as an internal SLO, the way LLM evals in CI and a production feedback loop are built to do.

How do provider outages affect the SLA you can offer?

Your availability cannot honestly exceed what the components beneath it deliver unless you add redundancy. Before you commit a number:

  1. Read your model provider's published terms for what they commit to and what the remedy is. Do not assume the figure on a marketing page is a contractual one.
  2. Add up the dependencies in the request path: provider, vector store, queue, your own API.
  3. Decide whether a fallback model removes the single point of failure. LLM API fallback describes the layers, and rate limits and 429s covers the capacity side.

If your promise is stricter than the chain below it, the gap is your risk, and the customer's remedy is your cost.

How should you use an error budget?

The SRE chapter rejects 100% as a target and proposes an error budget: a rate at which the SLO can be missed, tracked over a window. Applied here, the budget is a release gate. If a prompt change or model migration would spend budget you have already used this month, it waits. This pairs naturally with shadow and canary rollouts and a model deprecation plan.

What should go in the contract?

A conservative shape, to review with counsel:

What to do next

  1. Pick two indicators per feature, success rate and time to first token at p95, and start recording them now.
  2. Write an internal SLO before any customer sees a number.
  3. List every dependency in the request path and check the stated terms of each.
  4. Keep quality as an internal SLO backed by an eval set.

If you want help instrumenting an AI feature so you can commit to numbers with evidence, see our AI SaaS development services.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

What is the difference between an SLO and an SLA for an AI feature?
An SLO is an internal target for a measured indicator. An SLA is a contract with consequences if you miss it. Google's SRE book gives a simple test: if there is no explicit consequence for missing the target, it is almost certainly an SLO.
Can I put answer quality in an SLA?
Usually not as a number. Quality depends on the input, the grader and the model version, so most teams keep it as an internal SLO and contract only on availability, latency and support response.
Does my LLM provider's SLA cover my customer SLA?
Not automatically. Read the provider's terms for what they commit to and what the remedy is, then check that your own commitment is not stricter than the chain of services beneath it.
What should I measure first?
Success rate and time to first token at the 95th or 99th percentile, per feature. They are cheap to collect and they are what a customer notices first.

Related reading

Chat on WhatsApp