Skip to navigation

Libraries & SDKs

Official client libraries for the VideoGen API.

VideoGen provides official hand-written SDKs and a CLI that track the public OpenAPI surface. The SDKs include helpers for polling, file management, and webhook verification. The CLI wraps @videogen/sdk and exposes videogen <resource> <kebab-op> commands.

Quick install

npm install @videogen/sdk

SDK helpers

Both SDKs ship convenience helpers on top of the client (named exports and bound methods). Tools, workflows, and projects also expose *AndWait / *_and_wait wrappers that start work and poll to completion.

HelperPurpose
pollWorkflowRunPoll a workflow run until it reaches a terminal status (succeeded, failed, cancelled).
pollProjectExportPoll a project export until it reaches a terminal status (succeeded, failed).
pollExecutedToolPoll a tool execution until it reaches a terminal status (succeeded, failed, cancelled).
pollRemixActionsPoll remix actions on a project until all reach a terminal status.
uploadFileCreate a file upload, PUT the bytes, and poll until processed.
downloadFileHydrate a file’s download URL and fetch the content (optionally stream to disk).
getHydratedFileFetch a file and refresh signed URLs if they are missing or expired.
pollPublicPreviewAfter enablePublicPreview, poll getFile until staticPublicPreviewSource (and optionally publicPlaybackId for video/audio) are ready. Throws if public preview is not enabled.
createPublicPreviewEnable public preview and poll until preview / embed URLs are ready.
verifyWebhookSignatureVerify a Standard Webhooks signature on an incoming delivery; returns the parsed event.

See the per-language pages for usage examples and configuration details:

AI agents

The MCP server is the supported way to give an agent VideoGen. Use the hosted remote endpoint, or run @videogen/mcp locally. For a custom agent in code, install the TypeScript or Python SDK and bind a function, as in Use with AI agents.

No-code automation

Wire VideoGen into your automations without writing code.

Explore & connect

Try the API interactively, or connect it to ChatGPT.