Gemini API 新增 Webhooks 以处理长时间运行任务通知
谷歌 api 现已支持 webhooks,消除了对长任务运行的轮询需求。该系统遵循标准 webhooks 规范,为项目级和动态每请求配置提供 hmac 和 jwks 安全支持。文档和 python 指南现已上线。
Google introduced event-driven Webhooks for the Gemini API, enabling push-based notifications for long-running tasks like Deep Research and Batch API processing. This replaces inefficient polling mechanisms, ensuring at-least-once delivery with automatic retries for up to 24 hours and preventing replay attacks via signed headers. Developers can configure endpoints globally or dynamically per-request, utilizing HMAC or JWWS security.