AI Gateway now supports asynchronous video generation
Source
vercel.com
Author
Kevin Dawkins
Date
Context
Vercel's asynchronous video support offers two different kinds of waiting. Adding polling or a webhook to generateVideo avoids holding one gateway request open throughout rendering, but the original calling ProcessA running instance of a program, with its own working memory, open files and identity.Full definition → must still remain alive. The changelog distinguishes this from starting a job for later RetrievalSelecting evidence relevant to the current request.Full definition →.
For work that must outlive the caller, startVideo returns an operation that the ApplicationSoftware arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.Full definition → can store in a database or queue. Another process can later pass it to getVideoStatus. That separates the rendering job from the lifetime of a serverless request. The status call returns hosted URLs or inline bytes; hosted videos need downloading before their URLs expire.
Terms in this piece · Glossary
Process — A running instance of a program, with its own working memory, open files and identity.
Retrieval — Selecting evidence relevant to the current request.
Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.