Reduce friction and latency for long-running jobs with Webhooks in Gemini API

AI-generated summary of reporting by Google AI Blog. Read the original for the full story.

Why it matters

Developers building Gemini API agents and batch jobs can drop polling loops and receive push notifications the moment long-running tasks finish.

Read this as

Google has added a feature called Webhooks to its Gemini API, the service developers use to build on its AI models. Instead of repeatedly asking 'is it done yet?' while a slow task like Deep Research or a long video runs, the system now sends an automatic message to the developer's server the moment the task finishes. This affects any developer running jobs that take minutes or hours.

Google's Gemini API now supports Webhooks, push notifications that replace constant polling for jobs like Deep Research, video generation and Batch API processing that can run for hours. Available today to all Gemini API developers, it reduces wasted requests and latency. The feature follows the Standard Webhooks spec with signed requests and retries up to 24 hours, so engineering teams should update integrations to adopt it.

Gemini API now emits event-driven HTTP POST payloads when long-running jobs complete, replacing GET polling. Requests follow the Standard Webhooks specification, signed with webhook-signature, webhook-id and webhook-timestamp headers for idempotency and replay-attack prevention. Delivery is at-least-once with automatic retries for up to 24 hours. Webhooks can be configured globally at project level via HMAC or per-request via JWKS using the Python SDK, e.g. dynamic webhook URIs and user_metadata on batch jobs.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Gemini API Webhooks Deep Research Batch API Google

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading