Token

  • [Dev Note] Gemini 3's PDF Black Magic: From Token Explosion to Painless All-You-Can-Eat

    · 5 min read

    Preface: PDF Black Magic in the Gemini 3 Era As a developer who loves integrating AI into side projects, my relationship with Google Gemini over the past six months has been like a roller coaster: from a honeymoon phase to a disappointing breakup (turning to hand-coded wheels), and finally to today—where I’ve fallen in love with it all over again. Today, I want to talk about a “silent but massive” change in Gemini 3’s PDF Document Processing. If you, like me, used to get headaches from token explosions caused by converting PDFs to images for Gemini’s file API, and had to look for other solutions (to markdown, OCR, vision models), then I have to say, “Go home, everybody!”