惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
I
InfoQ
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
云风的 BLOG
云风的 BLOG
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
博客园_首页
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
WordPress大学
WordPress大学
B
Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
博客园 - 聂微东
Jina AI
Jina AI

The Official Google Blog

5 helpful tools from Google to keep your accounts safe This Teacher Appreciation Week, we’re celebrating educators who made a difference in our lives. Find out how AlphaEvolve has gone from research to solving real-life problems. New AI-powered bidding and budgeting innovations in Search and Shopping Here’s how we're celebrating Asian American, Native Hawaiian and Pacific Islander Heritage Month 5 gardening tips you can try right in Search Google Flow Music and Believe bring next-gen tools to artists 5 new ways to explore the web with generative AI in Search AI is reshaping ad creative. Here’s how brands can get it right. Gemini API File Search is now multimodal: build efficient, verifiable RAG Approximate location sharing gives you more control over your location data in Chrome. Accelerating Gemma 4: faster inference with multi-token prediction drafters Here’s what’s new with Google Home. Celebrating educators’ creativity this Teacher Appreciation Week Turn your data into decisions: 3 things your business needs for growth in the AI era Here’s how we’re helping Belgium's farmers save water with AI. Putting educators at the center of AI learning The latest AI news we announced in April 2026 Here's how Google AI is powering small business growth Reduce friction and latency for long-running jobs with Webhooks in Gemini API Celebrating America’s 250th on Google Arts & Culture Supporting startups that are shaping the future of energy Your car with Google built-in is about to get smarter, thanks to Gemini Preferred Sources is now available in all languages. Adapt your Shopping campaigns to modern Search with AI Max. Meet travelers in the moments that matter with Search Campaigns for Travel. AI Max Turns 1 with new ways to steer performance and expansion to more advertisers How we’re protecting energy affordability in Oklahoma Alphabet is one of TIME’s 100 most influential companies of 2026. Q1 2026 earnings call: Remarks from our CEO
New ways to balance cost and reliability in the Gemini API
Lucia Loher Product Manager, Gemini API · 2026-04-02 · via The Official Google Blog

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

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. 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: 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: 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 endpoints.

Visit the Gemini API documentation to see the full pricing breakdown and start optimizing your production tiers today. To see it in action, check out the cookbook for runnable code examples.

Related stories