Skip to content

Quiz

Subscription or API: how AI is priced, tokens, keys, and when each pays off

Read the lesson Study guide

Check what you learned

10 questions from this lesson. Answers are checked as you go; nothing is recorded.

  1. 1 / 10

    What is a token?

    Hint

    It is the unit on the meter.

  2. 2 / 10

    On Anthropic's current models, how does the price of an output token compare with an input token?

    Hint

    Look at Sonnet 5.5: $2 in, $10 out.

  3. 3 / 10

    What do you get with a subscription instead of a per-word bill?

    Hint

    Heavy users feel it on lower tiers.

  4. 4 / 10

    A program reads 3,000 tokens and writes 300 on Sonnet 5.5 ($2 in, $10 out per million). About how much does one answer cost?

    Hint

    3,000 x $2 / 1,000,000, plus 300 x $10 / 1,000,000.

  5. 5 / 10

    Which step should come before your first API call?

    Hint

    Think of the key as a card number.

  6. 6 / 10

    Where should an API key live?

    Hint

    Anywhere public is found by bots.

  7. 7 / 10

    Under Google's Gemini API terms, what is different about the free tier?

    Hint

    Turning on billing changes it.

  8. 8 / 10

    What does a 429 error from the API mean?

    Hint

    It is about pace or budget.

  9. 9 / 10

    Which job most clearly calls for the API rather than a subscription?

    Hint

    Who is at the keyboard?

  10. 10 / 10

    A job set to run every five minutes runs about how many times in a 30-day month?

    Hint

    12 an hour, 24 hours, 30 days.

After the quiz

Back to the lesson