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

推荐订阅源

V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - Franky
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
小众软件
小众软件
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
C
Check Point Blog
WordPress大学
WordPress大学
博客园 - 【当耐特】
博客园 - 司徒正美
D
Docker

AI

3 ways to prep for your next big race with Search Get ready for the game with new football features in Search Recreating a 70-year love story frame by frame Proactive cyber defense for governments and enterprises The latest AI news we announced in August 2026 Try Google Pics: Easy image creation and editing in Google Workspace 3 new ways to plan and book travel in Search 5 ways to upgrade your home decor with Google Search 5 new ways to level up your learning with Search Get closer to the game with Gemini and Pixel Bring your spreadsheet data to life with Sheets canvas AMIE, our research medical AI system, demonstrates real-time clinical video consultation capabilities in a first-of-its-kind study. Evolve your marketing with new AI tools The latest AI news we announced in July 2026 Inside our 353,000-person vibe coding course Gemini API Managed Agents: 3.6 Flash, hooks, and more 5 ways AI Mode in Search helps you enjoy the real world 5 ways to host the ultimate dinner party with Google Search 3 Google updates from Galaxy Unpacked 2026 Connect more of your apps to Search Create, edit and star in videos with two Google Vids updates Celebrating 25 years of visual search innovation Expanding Managed Agents in Gemini API: background tasks, remote MCP and more The latest AI news we announced in June 2026 New York City educators and industry leaders gathered at Google’s offices to shape the future of AI in classrooms. Unlocking Britain’s next era of productivity: Building a nation of AI trailblazers Ask an AI expert: What exactly is the full stack? Our latest Google Finance upgrades, including a new app New research shows how AMIE, our medical AI, could help manage health conditions. We’re strengthening our presence in Alabama through new investments and community support.
Reduce friction and latency for long-running jobs with We...
Lucia Loher · 2026-05-04 · via AI

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.