Urgent.News

What's breaking now, across hundreds of outlets.

More in AI

How Many Tokens Does a Gemini PDF Page or Image Really Cost? (Measured With count_tokens)

Almost every blog post about Gemini API pricing repeats the same rule of thumb: "a PDF page costs 258 tokens." I wanted to verify that before budgeting a document pipeline, so on 10 November 2026 I…

  • PDFs cost 560 tokens per page regardless of content
  • Images cost about 1,090 tokens each, size doesn't matter much
  • Using counttokens() avoids underestimating costs by 2.17x

More from Sunday, 29 November 2026 →