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
medium
AI for Frontend Developers
What does client.messages.countTokens() provide that response.usage does not?
A
It's identical to response.usage in every way
B
An exact PRE-FLIGHT token count before actually sending a request and generating a response
C
The dollar cost of a request directly
D
A way to bypass rate limits
Check Answer