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:

Agent framework tools

Building an AI agent? These packages return the full VideoGen tool set (34 tools) in your frameworkโ€™s native format, so an agent can generate videos, images, voiceovers, sound effects, music, and avatars on demand. Each wraps the official SDK and runs as the team that owns your API key.

No-code automation

Wire VideoGen into your automations without writing code.

Explore & connect

Try the API interactively, or connect it to ChatGPT.

For any other framework, or an MCP client, see MCP server and Use with AI agents.