TypeScript
Official TypeScript SDK for the VideoGen API.
Install
Create a client
The client reads from the VIDEOGEN_API_KEY environment variable when no token is provided.
Run a tool and poll for the result
All tool endpoints are asynchronous. Use pollExecutedTool to wait for the result:
Options
pollExecutedTool accepts an optional third argument: