Paths Subjects Questions Quizzes Pricing Search
AI Engineering Advanced Pro

Cost and Latency Engineering for LLM Apps

Token accounting, caching, routing, batching and the arithmetic interviewers actually check

30 min read 9 views

The reusable toolkit behind every 'make it cheaper and faster' interview question: why input tokens dominate cost and output tokens dominate latency, how prompt-prefix caching and semantic caching work and where each breaks, model routing and cascades, streaming and parallel tool calls as latency levers, the TTFT-plus-decode model of p95 latency, and the cost-per-1,000-conversations math that ties every lever to a number leadership will ask for.

Practice questions (5)

  • Prompt-Prefix Caching in an Agent Loop

    Advanced · Free
    View →
  • Tuning a Semantic Cache Without Shipping Wrong Answers

    Advanced
    View →
  • Model Routing: Computing the Blended Savings

    Advanced
    View →
  • Fixing p95 Latency by Capping Output Length

    Advanced
    View →
  • Cost per 1,000 Conversations, Lever by Lever

    Advanced
    View →

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.