16/16
Part 6 of 6 · Follow-upsCheck yourself
Check yourself
5 questions
  1. 1.A provider charges $2 per million input tokens and $10 per million output tokens. What does a request with 1,000 input tokens and 100 output tokens cost?

  2. 2.A prompt starts with the current time, then 1,800 tokens of instructions that never change. You turn prompt caching on. What happens to the bill?

  3. 3.Each customer's conversation is cached as its own prefix, and customers reply about every 10 minutes. Which cache lifetime fits?

  4. 4.Questions go to a small model first, and the ones it can't handle go on to a large model. What gets worse for the questions sent on?

  5. 5.A rented H100 costs $4.89 an hour, and your feature produces 350 output tokens a second. Why does it cost more per token than an API charging $0.50 per million?

Now the problem this lesson builds to: 40 What a request costsPractice it