Libraries & SDKs

Official client libraries for the VideoGen API.

VideoGen provides official SDKs and a CLI that stay up to date with the latest API features. All are generated from the OpenAPI spec. The SDKs include typed helpers for polling, file management, and webhook verification, and the CLI ships as a single self-contained binary.

Quick install

$npm install @videogen/sdk

SDK helpers

Both SDKs ship convenience functions on top of the generated client:

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).
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.
verifyWebhookSignatureVerify a Standard Webhooks signature on an incoming delivery.

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