Google adds webhook support to Gemini API, ending polling for batch jobs and async ops
Google has added webhook support to the Gemini API, allowing developers to receive real-time HTTP POST callbacks when asynchronous or Long-Running Operations (LROs) complete — including batch inference jobs, interactions, and video generation. The change eliminates the need to repeatedly poll GET /operations endpoints, cutting both latency and infrastructure overhead for AI pipelines.
The API supports two webhook modes: static webhooks registered at the project level (useful for global integrations like Slack alerts or database syncs) and dynamic webhooks passed inline on a per-request basis for fine-grained routing. Each webhook is secured with a signing secret issued once at creation — a detail that will require careful secret-management practices from teams adopting the feature.