# 2.5 Pro Preview API: thoughts pricing

**URL:** <https://discuss.ai.google.dev/t/2-5-pro-preview-api-thoughts-pricing/77753>\
**Category:** Gemini API\
**Tags:** prompt, api\
**Created:** [April 4, 2025, 11:59pm UTC](https://discuss.ai.google.dev/t/2-5-pro-preview-api-thoughts-pricing/77753 "2025-04-04T23:59:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilias\_Efstathiou](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ilias_efstathiou/32/23937_2.png) [@Ilias\_Efstathiou](https://discuss.ai.google.dev/u/Ilias_Efstathiou)\
**Post date:** [April 4, 2025, 11:59pm UTC](https://discuss.ai.google.dev/t/2-5-pro-preview-api-thoughts-pricing/77753/1 "2025-04-04T23:59:56Z")

</div>

Regarding 2.5 Pro Preview API Pricing:

1. to calculate my total charge, please confirm: candidates\_token\_count INCLUDES thoughts\_token\_count and I multiply it by the OUTPUT token rate. Then, I add prompt\_token\_count multiplied by the INPUT token rate.
2. how to configure the amount of thinking via the (Python) API?

Many thanks,  
Elias

---

<div class="post-metadata">

**Author:** ![Pannaga\_J](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/pannaga_j/32/31911_2.png) [@Pannaga\_J](https://discuss.ai.google.dev/u/Pannaga_J)\
**Post date:** [June 5, 2025, 6:30am UTC](https://discuss.ai.google.dev/t/2-5-pro-preview-api-thoughts-pricing/77753/3 "2025-06-05T06:30:48Z")

</div>

Hi @Ilias_Efstathiou Apologies for late response  
You’re mostly correct. Total Charge Calculation:  
( candidates\_token\_count ) \* OUTPUT token rate (both the final output and the thinking tokens)+ (prompt\_token\_count ) \* INPUT token rate (initial input to the model).

it’s important to note that thinkingBudget is currently only fully supported for Gemini 2.5 Flash, not Gemini 2.5 Pro. You can get more information of the pricing here [Gemini Developer API Pricing &nbsp;|&nbsp; Gemini API &nbsp;|&nbsp; Google AI for Developers](https://ai.google.dev/gemini-api/docs/pricing)

Thank you
