Problems / What Did That Request Cost?

What Did That Request Cost? Price one request from its token counts

How This Page Works

  1. Title block: sheet number, difficulty, format, mode and sub-topics
  2. The statement: the situation, the facts, and the question
  3. Need a Hint?: each hint states its cost before you take it
  4. Your answer: the options, or the box with its unit and tolerance
  5. Check Answer: the server checks it against your own numbers
  6. The result: a note on a wrong answer, or your points and why it works
  7. Flag a Problem: report anything wrong

On the tutorials, these numbers appear beside the real parts of the page.

Sheet
E-01
Difficulty
Easy 2
Format
Exact answer
Mode
Simulated
Sub-topics
Cache Pricing

Work out what one request costs when most of its input was read from the cache.

The Situation

A support bot sends one request to a medium model. Models read text in tokens, which are small pieces of words, and providers charge by the token. Each request starts with the same help manual, followed by the customer's chat. The provider keeps the start of each request in a cache, so the model reads the manual from the cache at a lower price.

This is the provider's usage record for the request:

The usage record, in tokens
FieldTokens
input_tokens40,616
cached_tokens39,900
output_tokens270
total_tokens40,886

The Prices

Prices by kind of token, in dollars per million tokens
Kind of tokenDollars per million tokens
Input$3.00
Input read from the cache$0.30
Output (the reply)$15.00

The Question

What does this one request cost, in dollars? Don't round to cents: an answer within 0.5% of the correct value is accepted. You can type $ signs and commas.

Need a Hint?

Hint 1 of 3 caps what you can earn at 18 out of 20 points. Points you’ve already earned stay. How points work

Your Answer

dollars

Answers within 0.5% of the correct value count. A correct answer can earn 16 out of 20 points. You can earn up to 4 more by answering the Check Your Understanding question correctly. After 3 wrong answers, there is a short wait before each new check. How points work

Something wrong with this problem?

Flag a Problem

Sign in to flag this problem. Reports help fix wording, checks and pages.

Sign In

Reports go to the site owner. Privacy