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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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.