# AI Gateway now supports asynchronous video generation

DevFeed: [AI Gateway now supports asynchronous video generation](<https://devfeed.tech/articles/ai-gateway-now-supports-asynchronous-video-generation-801.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/ai-gateway-now-supports-asynchronous-video-generation>)

Author: Jerilyn Zheng

Published: 2026-08-25T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-gateway](<https://devfeed.tech/tags/ai-gateway.md>), [event](<https://devfeed.tech/tags/event.md>), [generation](<https://devfeed.tech/tags/generation.md>), [http](<https://devfeed.tech/tags/http.md>), [image-to-video](<https://devfeed.tech/tags/image-to-video.md>), [text-to-video](<https://devfeed.tech/tags/text-to-video.md>), [video](<https://devfeed.tech/tags/video.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

Vercel AI Gateway adds asynchronous video generation through workflow webhooks, direct webhooks, polling, or later retrieval, avoiding long-lived requests that may time out.

## Source excerpt

Video generation on AI Gateway can now run asynchronously. By default, generateVideo keeps one HTTP request to AI Gateway open until the result is ready. Because video generation can take seconds or minutes, that request can exceed request timeouts. With asynchronous generation, your application can receive a webhook, poll for completion, or start a generation and retrieve the result in a later request. Choose an option based on whether your process can keep running and whether your application can receive webhooks: Existing generateVideo calls continue to work as before. All four options support text-to-video, image-to-video, reference-to-video, and other video inputs. Upgrade the SDK Install the latest versions of the AI SDK and AI Gateway provider: Use asynchronous video generationWait for completion in a Workflow An easy way to consume the completion webhook is a Workflow SDK. The workflow creates its own webhook URL, passes it to startVideo, and suspends until AI Gateway delivers the completion event. Install the Workflow SDK alongside the AI SDK: While the video renders, the workflow run is suspended and resumes when AI Gateway delivers the terminal event. Use a webhook with generateVideo Pass webhook to generateVideo to wait for a completion event without polling. AI Gateway sends an event when the job completes or fails. The SDK waits for that event, fetches the generated videos, and resolves the original generateVideo call. The calling process and webhook handler need a shared token and store so the delivery can be matched to the correct generation. generateVideo does not expose the signing secret for this job. See the webhook verification documentation for the complete receiver pattern. Both the polling and webhook options for generateVideo return result.videos as GeneratedFile objects. The SDK downloads provider-hosted videos, making uint8Array, base64, and mediaType available in either job. Poll with generateVideo Add poll to an existing generateVideo ca