DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
AI for Frontend Developers Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
easy
AI for Frontend Developers
What is the reliable way to determine the actual token cost of a request that was just made?
A
Estimate from the character count of the input text
B
Read response.usage (input_tokens, output_tokens, cache_read/creation tokens)
C
Assume every request costs the same fixed amount
D
Count words and multiply by an average
Check Answer