New ways to balance cost and reliability in the Gemini API

Google AI Blog Products

Summary

Google introduces Flex and Priority inference tiers for the Gemini API, offering developers granular control over cost and reliability for synchronous requests. Flex provides 50% savings for latency-tolerant tasks, while Priority ensures high reliability for critical applications.

<img src="https://storage.googleapis.com/gweb-uniblog-publish-prod/images/cost_reliability_Gemini_API-soc.max-600x600.format-webp.webp">Google is introducing two new inference tiers to the Gemini API, Flex and Priority, to balance cost and latency.
Original Article
View Cached Full Text

Cached at: 05/08/26, 08:09 AM

# New ways to balance cost and reliability in the Gemini API Source: [https://blog.google/innovation-and-ai/technology/developers-tools/introducing-flex-and-priority-inference/](https://blog.google/innovation-and-ai/technology/developers-tools/introducing-flex-and-priority-inference/) Introducing Flex and Priority inference: advanced controls for developers to optimize costs and reliability through a single, unified interface\. Hussein Hassan Harrirou Engineering, Gemini API Sorry, your browser doesn't support embedded videos, but don't worry, you can[download it](https://storage.googleapis.com/gweb-uniblog-publish-prod/original_videos/cost_reliability_Gemini_API-hero_circle.mp4)and watch it with your favorite video player\! Your browser does not support the audio element\. Listen to article This content is generated by Google AI\. Generative AI is experimental \[\[duration\]\] minutes Today, we are adding two new service tiers to the Gemini API:[Flex and Priority](https://ai.google.dev/gemini-api/docs/optimization#inference-tiers)\. These new options give you granular control over cost and reliability through a single, unified interface\. As AI evolves from simple chat into complex, autonomous agents, developers typically have to manage two distinct types of logic: - **Background tasks**: High\-volume workflows like data enrichment or "thinking" processes that don't need instant responses\. - **Interactive tasks**: User\-facing features like chatbots and copilots where high reliability is needed\. Until now, supporting both meant splitting your architecture between standard synchronous serving and the asynchronous Batch API\. Flex and Priority help to bridge this gap\. You can now route background jobs to Flex and interactive jobs to Priority, both using standard synchronous endpoints\. This eliminates the complexity of async job management while giving you the economic and performance benefits of specialized tiers\. ## [Flex Inference](https://ai.google.dev/gemini-api/docs/flex-inference): scale innovation for 50% less Flex Inference is our new cost\-optimized tier, designed for latency\-tolerant workloads without the overhead of batch processing\. - **50% price savings:**Pay half the price of the Standard API by downgrading criticality of your request \(making them less reliable, and adding latency\)\. - **Synchronous simplicity:**Unlike the Batch API, Flex is a synchronous interface\. You use the same familiar endpoints without managing input/output files or polling for job completion\. - **Ideal use cases:**Background CRM updates, large\-scale research simulations, and agentic workflows where the model "browses" or "thinks" in the background\. Get started fast by simply configuring the`service\_tier`parameter in your request: Flex tier will be available for all paid tiers and is available for GenerateContent and Interactions API requests\. ## [Priority Inference](https://ai.google.dev/gemini-api/docs/priority-inference): Highest reliability for critical apps The new Priority Inference tier offers our highest level of assurance at a premium price point\. This helps to ensure your most important traffic is not preempted, even during peak platform usage\. - **Highest criticality:**Priority requests get highest criticality leading to higher reliability, even during peak load\. - **Graceful downgrade:**If your traffic exceeds your Priority limits, overflow requests are automatically served at the Standard tier instead of failing\. This keeps your application online and helps to ensure business continuity\. - **Transparent response:**The API response indicates which tier served your request, giving you full visibility into your performance and billing\. - **Ideal use cases:**Real\-time customer support bots, live content moderation pipelines, and time\-sensitive requests\. To use Priority Inference, simply set the`service\_tier`parameter accordingly: Priority inference will be available to users with Tier 2 / 3 paid projects across the \`GenerateContent\` API and[Interactions API](https://ai.google.dev/gemini-api/docs/interactions)endpoints\. Visit the[Gemini API documentation](https://ai.google.dev/gemini-api/docs/pricing)to see the full pricing breakdown and start optimizing your production tiers today\. To see it in action, check out the[cookbook](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Inference_tiers.ipynb)for runnable code examples\. ### Related stories

Similar Articles

We're expanding our Gemini 2.5 family of models

Google DeepMind Blog

Google announces general availability of Gemini 2.5 Flash and Pro models, and introduces Gemini 2.5 Flash-Lite in preview—a new cost-efficient and fastest variant optimized for high-volume, latency-sensitive tasks.

Gemini 2.5: Updates to our family of thinking models

Google DeepMind Blog

Google announces stable general availability of Gemini 2.5 Pro and Flash models, introduces new Gemini 2.5 Flash-Lite in preview with lower latency and cost, and updates pricing for the Flash family with adjusted input/output token rates.