ospalabs
Guide · Gemini

What Gemini thinking tokens cost

Updated November 2026

A thinking model can write a long internal trace and a short answer. Google bills the thinking tokens. On the OpenAI-compatible Gemini endpoint they show up inside the completion token count, which is the number Fuse settles as output. The answer on screen is not the invoice.

A thinking budget or an effort setting changes how much of that trace the model may produce. It is still a token knob. A daily dollar ceiling is what stops a loop of thinking calls from becoming the bill people write guides about.

  1. 01

    Expect the output count to dwarf the answer

    Compare the visible reply with completion_tokens on a real response. The gap is thinking, and sometimes tool markup. Price the call off the token counts, not off the paragraph you display.

  2. 02

    Set max_tokens for thinking plus the answer

    The output cap is the whole budget the model has. If thinking consumes it, the answer is cut off. If you leave the cap unset, Fuse inserts the project's default output cap and reserves that many tokens. Set both to a number you have priced.

  3. 03

    Send Gemini through Fuse

    Store the Google key, enable the Gemini model, and call it with the Fuse base URL. The reservation uses the output price times the cap, before Google is contacted.

    app.ts
    import OpenAI from "openai";
    
    const client = new OpenAI({
      baseURL: process.env.FUSE_BASE_URL,
      apiKey: process.env.FUSE_API_KEY,
    });
    
    await client.chat.completions.create({
      model: "gemini-2.5-flash",
      messages: [{ role: "user", content: "Plan the migration in five steps." }],
      max_tokens: 2048,
    });
  4. 04

    Cap the app that thinks in a loop

    An agent that thinks, calls a tool, and thinks again pays the thinking tokens on every step. A daily ceiling on that key stops the sequence. Lower the thinking budget on steps that do not need it.

Questions

Does turning thinking off remove the charge?
It removes the thinking tokens for requests where the model actually skips them. Check the completion count. Some prompts still produce a short trace, and the answer tokens are billed either way.
Are thinking tokens priced separately in Fuse?
No. They are inside the output total, billed at that model's output rate. The log shows one output count.