← 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?
- A.$0.80
- B.$0.014
- C.$14
- 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 →