Can someone explain why our OpenAI API token estimation script is off by forty percent and how to fix it before our monthly budget runs out?
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
Can someone explain why our OpenAI API token estimation script is off by forty percent and how to fix it before our monthly budget runs out?
2 real searches · 1 real-search pass
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
Classifying 2 queries…
Searches and sources
ChatGPT2 real searches · gpt-6
OpenAI API official documentation usage prompt_tokens completion_tokens cached_tokens responses API token counting tools images tokenizer tiktoken Google ↗
OpenAI cookbook counting tokens chat completions tool calls tiktoken official Google ↗
- Understanding and counting tokens · help.openai.com
- Advanced usage · developers.openai.com
- Counting tokens · developers.openai.com
- Reviewing API usage and costs · help.openai.com
- Prompt Caching in the API · openai.com
Queries
2 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
OpenAI API official documentation usage prompt_tokens completion_tokens cached_tokens responses API token counting tools images tokenizer tiktoken OBSERVED | Google ↗ AI Mode ↗ | — | — | — | — | 1x of 1 | |
OpenAI cookbook counting tokens chat completions tool calls tiktoken official OBSERVED | Google ↗ AI Mode ↗ | — | — | — | — | 1x of 1 |