🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: First API Call: all 10 questions

Quiz: First API Call · Question 4 of 10

A request uses 2,000 input and 300 output tokens on a model priced $4 / $20 per million. What does it cost in dollars?

A request uses 2,000 input and 300 output tokens on a model priced $4 / $20 per million. What does it cost in dollars?

  1. A.$0.80
  2. B.$0.014
  3. C.$14
  4. D.$0.0023
Answer & explanation

Correct answer: $0.014

2000/1e6 × 4 + 300/1e6 × 20 = 0.008 + 0.006 = $0.014.

Can you get the rest right without peeking?

Take the timed Quiz: First API Call quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →