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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
I
InfoQ
B
Blog RSS Feed
D
Docker
GbyAI
GbyAI
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
F
Fortinet All Blogs
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
M
MIT News - Artificial intelligence
C
Check Point Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
博客园 - Franky
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Last Week in AI
Last Week in AI
L
LangChain Blog

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 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 A new way to create a digital wardrobe from your Google Photos
Reduce friction and latency for long-running jobs with We...
Lucia Loher · 2026-05-04 · via The Official Google Blog

We're making it easier and more efficient to build complex, long-running agentic applications with the Gemini API Webhooks.

Hussein Hassan Harrirou

Engineering, Gemini API

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're making it easier and more efficient to build complex, long-running agentic applications with the Gemini API. We are introducing event-driven Webhooks, a push-based notification system that eliminates the need for inefficient polling.

As Gemini shifts toward agentic workflows and high-volume processing — like Deep Research, long video generation, or processing thousands of prompts via the Batch API — operations can take minutes or even hours. Until now, developers had to rely on continuous polling (e.g., repeatedly callingGEToperations) to check if a job was completed.

Now, the Gemini API can simply push a real-time HTTP POST payload to your server the instant a task finishes.

We’ve built this with reliability and security in mind. Our implementation strictly adheres to the Standard Webhooks specification. Every request is signed using webhook-signature, webhook-id, and webhook-timestamp headers, ensuring idempotency and preventing replay attacks. We also guarantee "at-least-once" delivery with automatic retries for up to 24 hours.

How it works

You can configure webhooks globally at the project level (secured via HMAC), or override them dynamically on a per-request basis to route specific jobs (secured via JWKS).

Here's a quick example of how you can dynamically configure a webhook for a batch task using the Python SDK:

Get started today

This feature is available now for all developers using the Gemini API:

  • Read the guide: Check out the Webhooks documentation to explore the full event catalog and learn how to secure your endpoints.
  • Hands-on practice: We've prepared a comprehensive Cookbook to help you build an end-to-end integration with webhooks.