Prod Squad

Cost, latency, and quality tradeoffs

Every AI feature trades off cost, speed and quality. Here's how to make those choices deliberately, per use case.

6 min readAI PM#cost#latency#quality#model selection
Ask about this lesson
On this page

With AI products, every request has a real cost and takes real time, and more capable models are usually slower and more expensive. Good AI PMs treat cost, latency and quality as a product decision made per use case, not an afterthought for engineering.

Why interviewers ask this

Questions like "Our AI feature costs too much. What do you do?" or "Would you use the biggest model for this?" test whether you understand AI unit economics and user experience. Interviewers look for a structured approach: understand what quality is needed, measure, then use the right levers without degrading the experience.

The framework

1. Know the drivers

  • Cost ≈ (input tokens + output tokens) × price per token × number of requests. Long prompts, big retrieved contexts, long outputs and agent loops all multiply it.
  • Latency depends on model size, output length (generation is token by token), retrieval and tool calls, and network.
  • Quality depends on the model, prompt, context, and task difficulty.

2. Decide what matters most for this use case

  • Autocomplete, inline suggestions: latency is critical (under 300–500ms); smaller models are fine.
  • Chat assistants: time to first token matters most, so streaming helps; quality matters.
  • Background tasks (overnight reports, batch classification): latency barely matters; optimise cost and quality.
  • High-stakes outputs (legal, medical, finance): quality dominates.

3. Pull the levers

  • Right-size the model: use the smallest model that passes your evals for each task.
  • Routing: send easy requests to a small, fast model and hard ones to a larger model.
  • Trim tokens: shorter prompts, fewer and better retrieved chunks, concise output formats, conversation history limits.
  • Caching: reuse responses for repeated questions, and use prompt caching for repeated context.
  • Streaming: show output as it's generated to cut perceived latency.
  • Batching and async: process non-urgent work in batches, often at a discount.
  • Product design: generate on demand rather than for every user automatically; set usage limits; charge for heavy usage.

4. Measure and set budgets

Track cost per request, cost per active user, and cost per successful outcome; p50 and p95 latency; and quality from evals and user feedback. Set budgets and alerts. Compare cost per outcome with the value it creates.

5. Revisit regularly

Model prices fall and capabilities rise quickly. A choice that was right six months ago may now be wrong, so re-run evals on new models.

Worked example

Question: "Our AI meeting-summary feature costs $0.40 per meeting, and leadership says it's too expensive. How would you reduce costs without hurting quality?"

Sample answer:

"First I'd understand where the cost comes from and what quality we must protect.

Diagnose: a one-hour meeting transcript is about 10,000 words, so roughly 13,000 input tokens, plus the prompt, plus about 800 output tokens. Suppose we're using our largest model for everything, and we regenerate the summary every time someone opens it.

Define quality: our eval set of 150 meetings scores summaries on accuracy of decisions and action items (the part users care about most), completeness and readability.

Levers, roughly in order of impact and risk:

  1. Cache: generate once per meeting and store it, instead of regenerating on every view. If each summary is viewed three times on average, that alone cuts cost by about two-thirds.
  2. Right-size the model: test a mid-sized model on the eval set. If it scores within 2 points of the large model on action-item accuracy, switch, which could cut cost by 60–80%.
  3. Routing: use the large model only for long or complex meetings (over 90 minutes or more than six speakers).
  4. Trim input: remove filler words and small talk before summarisation, perhaps 15–20% fewer tokens.
  5. Batch: non-urgent summaries can be processed in batch at lower cost.

Guardrails: action-item accuracy must not fall below our launch bar, and summary delivery time stays under five minutes after the meeting ends. I'd roll changes out behind a flag, comparing quality and user ratings.

Outcome target: under $0.08 per meeting with equal quality scores, and I'd report cost per meeting alongside the time saved for users, to frame the economics."

Common mistakes

  • Always using the biggest model "to be safe".
  • Cutting cost without evals, silently degrading quality.
  • Optimising average latency while ignoring p95.
  • Ignoring perceived latency (streaming, progress indicators).
  • Not tying cost to value created per user or outcome.

Interviewer tips

What "great" sounds like:

  • "For this use case, latency matters most, so I'd pick a smaller model and stream."
  • "Use the smallest model that passes our evals."
  • "Let me break the cost into tokens × price × requests to find the biggest driver."
  • "Caching is often the biggest, safest win."
  • "I'd track cost per successful outcome, not just cost per request."

Practice questions

Answer one in a mock interview and get graded instantly.

  1. 1.Our AI meeting-summary feature costs $0.40 per meeting. How would you reduce costs without hurting quality?

    Practice this →
  2. 2.Would you use the largest available model for an AI autocomplete feature? Why or why not?

    Practice this →
  3. 3.How would you decide whether an AI feature's unit economics work?

    Practice this →

Finished reading?