[{"data":1,"prerenderedAt":271},["ShallowReactive",2],{"navigation":3,"\u002Fproviders\u002Fgemini":99,"\u002Fproviders\u002Fgemini-surround":266},[4,23,44,78],{"title":5,"path":6,"stem":7,"children":8,"icon":22},"Getting Started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,12,17],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":13,"path":14,"stem":15,"icon":16},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":18,"path":19,"stem":20,"icon":21},"MCP Setup","\u002Fgetting-started\u002Fmcp-setup","1.getting-started\u002F3.mcp-setup","i-lucide-plug","i-lucide-rocket",{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":43},"CLI","i-lucide-terminal","\u002Fcli","2.cli",[29,33,38],{"title":30,"path":31,"stem":32,"icon":25},"Usage","\u002Fcli\u002Fusage","2.cli\u002F1.usage",{"title":34,"path":35,"stem":36,"icon":37},"Options","\u002Fcli\u002Foptions","2.cli\u002F2.options","i-lucide-sliders-horizontal",{"title":39,"path":40,"stem":41,"icon":42},"Batch & JSON","\u002Fcli\u002Fbatch-json","2.cli\u002F3.batch-json","i-lucide-package",false,{"title":45,"icon":46,"path":47,"stem":48,"children":49,"page":43},"Providers","i-lucide-cpu","\u002Fproviders","3.providers",[50,55,60,65,70,74],{"title":51,"path":52,"stem":53,"icon":54},"Claude (Area-Based)","\u002Fproviders\u002Fclaude","3.providers\u002F1.claude","i-lucide-square",{"title":56,"path":57,"stem":58,"icon":59},"GPT-4o & GPT-5 (Tiling)","\u002Fproviders\u002Fgpt","3.providers\u002F2.gpt","i-lucide-grid-2x2",{"title":61,"path":62,"stem":63,"icon":64},"Gemini (Large Tiles)","\u002Fproviders\u002Fgemini","3.providers\u002F3.gemini","i-lucide-grid-3x3",{"title":66,"path":67,"stem":68,"icon":69},"Llama Vision (Tiles)","\u002Fproviders\u002Fllama","3.providers\u002F4.llama","i-simple-icons-meta",{"title":71,"path":72,"stem":73,"icon":64},"Qwen-VL (Patch Grid)","\u002Fproviders\u002Fqwen","3.providers\u002F5.qwen",{"title":75,"path":76,"stem":77,"icon":59},"DeepSeek-VL (Open Weights)","\u002Fproviders\u002Fdeepseek","3.providers\u002F6.deepseek",{"title":79,"icon":80,"path":81,"stem":82,"children":83,"page":43},"Guides","i-lucide-book-open","\u002Fguides","4.guides",[84,89,94],{"title":85,"path":86,"stem":87,"icon":88},"Python Bindings","\u002Fguides\u002Fpython-bindings","4.guides\u002F1.python-bindings","i-lucide-file-code",{"title":90,"path":91,"stem":92,"icon":93},"Sandbox (Think in Code)","\u002Fguides\u002Fsandbox","4.guides\u002F2.sandbox","i-lucide-flask-conical",{"title":95,"path":96,"stem":97,"icon":98},"Crawler Integration","\u002Fguides\u002Fcrawler-integration","4.guides\u002F3.crawler-integration","i-lucide-globe",{"id":100,"title":61,"body":101,"description":259,"extension":260,"links":261,"meta":262,"navigation":263,"path":62,"seo":264,"stem":63,"__hash__":265},"docs\u002F3.providers\u002F3.gemini.md",{"type":102,"value":103,"toc":253},"minimark",[104,109,113,139,143,146,194,201,205,212,242,249],[105,106,108],"h2",{"id":107},"how-gemini-bills-images","How Gemini bills images",[110,111,112],"p",{},"Google Gemini uses large tiles:",[114,115,116,129],"ul",{},[117,118,119,120,124,125,128],"li",{},"Images ",[121,122,123],"strong",{},"≤ 384×384"," cost a flat ",[121,126,127],{},"258 tokens",".",[117,130,131,132,135,136,128],{},"Larger images are tiled on a ",[121,133,134],{},"768×768"," grid at ",[121,137,138],{},"258 tokens per tile",[105,140,142],{"id":141},"the-doubling-trap","The doubling trap",[110,144,145],{},"Because tiles are huge, a tiny overlap is brutally expensive. Crossing a 768px boundary by even one pixel adds a whole tile:",[147,148,149,165],"table",{},[150,151,152],"thead",{},[153,154,155,159,162],"tr",{},[156,157,158],"th",{},"Image",[156,160,161],{},"Tiles",[156,163,164],{},"Tokens",[166,167,168,181],"tbody",{},[153,169,170,173,176],{},[171,172,134],"td",{},[171,174,175],{},"1",[171,177,178],{},[121,179,180],{},"258",[153,182,183,186,189],{},[171,184,185],{},"800×768",[171,187,188],{},"2×1",[171,190,191],{},[121,192,193],{},"516",[110,195,196,197,200],{},"An 800px-wide image costs ",[121,198,199],{},"double"," a 768px one for 32 extra pixels of width.",[105,202,204],{"id":203},"optimization-strategy","Optimization strategy",[110,206,207,208,211],{},"Aggressively snap dimensions ",[121,209,210],{},"down"," to the nearest 768px boundary. Squeezer trims to the largest size that still fits inside the current tile count.",[213,214,220],"pre",{"className":215,"code":216,"filename":217,"language":218,"meta":219,"style":219},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","vision-squeezer image.png --model gemini\n","Terminal","bash","",[221,222,223],"code",{"__ignoreMap":219},[224,225,228,232,236,239],"span",{"class":226,"line":227},"line",1,[224,229,231],{"class":230},"sBMFI","vision-squeezer",[224,233,235],{"class":234},"sfazB"," image.png",[224,237,238],{"class":234}," --model",[224,240,241],{"class":234}," gemini\n",[243,244,246],"callout",{"icon":245},"i-lucide-lightbulb",[110,247,248],{},"If your content fits within 384×384, Squeezer will keep it under that threshold to hit the flat 258-token rate — the cheapest possible image on Gemini.",[250,251,252],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":219,"searchDepth":227,"depth":254,"links":255},2,[256,257,258],{"id":107,"depth":254,"text":108},{"id":141,"depth":254,"text":142},{"id":203,"depth":254,"text":204},"How Google Gemini tiles images and why snapping to 768px boundaries halves the cost.","md",null,{},{"icon":64},{"title":61,"description":259},"2CGVyW3t8Q_8QDN5t5Kx2uaWagDbagYNdWM5l9Sp6XA",[267,269],{"title":56,"path":57,"stem":58,"description":268,"icon":59,"children":-1},"How OpenAI tiles images and how VisionSqueezer avoids spill-over tiles.",{"title":66,"path":67,"stem":68,"description":270,"icon":69,"children":-1},"How Meta Llama 3.2\u002F4 Vision tiles images and how VisionSqueezer snaps to the 560px canvas.",1782053692263]