AINewsnow

tiktoken vs count_tokens: My Claude Budget Was 17% Off

This story is from 2026-09-16. It is preserved in the archive; the latest stories are on the live feed.

My budget guard said the prompt was 171,000 tokens. Haiku 4.5's context window is 200,000. Plenty of room. The API returned a 400 anyway: prompt too long. That was run 1,102 of a pipeline I'd been babysitting for three weeks, and it was the first time I seriously questioned the little function at t…

Read the full story at DEV Community — AI ↗

Timeline · 1 report

  1. 2026-09-16 16:59 · DEV Community — AI
    tiktoken vs count_tokens: My Claude Budget Was 17% Off

More stories

  1. AI's role in building AI surging? Anthropic says Claude now leads 26% of its R&D — Mint AI
  2. Security researchers used Claude to help them hack into OpenAI — The Verge AI
  3. Claude, Anthropic’s AI model, is helping to develop the next version of itself — Fast Company AI
  4. Minimax H3 template Missing. — r/comfyui
  5. OpenAI ‘ethically hacked’ with help of Anthropic’s Claude chatbot — The Guardian AI
  6. Mathematicians Hate AI. They Can’t Quit It — Wired AI
  7. Anthropic Shifts Planned IPO to November — Wall Street Journal Technology
  8. A zero-click RCE flaw in AI coding agents could have exposed enterprise systems — InfoWorld AI

Get the daily brief of stories like this at 6:30 every morning →