For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DashboardAPI PricingGet an API key
  • Guides
    • Introduction
    • Getting started
    • Use with AI agents
    • Examples
    • Authentication
    • Handling async tasks
    • File uploads
    • File hydration
    • Embedding videos
    • Errors
    • Rate limits
    • Libraries & SDKs
  • REST API Reference
    • Overview
    • Workflows
        • POSTGenerate image
        • POSTGenerate video clip
        • POSTText to speech
        • POSTGenerate sound effect
        • POSTGenerate avatar clip
        • POSTVectorize image
        • POSTRemove background from an image
        • POSTRemove background from a video
        • POSTUpscale an image
        • POSTUpscale a video
        • POSTCancel tool execution
        • GETGet tool execution info
        • GETList files
        • POSTSearch files
        • GETGet file
        • POSTCreate file upload
        • POSTHydrate file
        • POSTArchive file
        • POSTEnable public preview
        • POSTDisable public preview
        • GETList avatar presenters
        • GETList TTS voices
        • GETList webhooks
        • POSTCreate webhook
        • DELDelete webhook
  • Webhook events
    • Overview
    • Changelog
LogoLogo
DashboardAPI PricingGet an API key
On this page
  • 1. Get an API key
  • 2. Install the SDK
  • 3. Generate a video clip
  • What’s next
Guides

Getting started

Install an SDK and generate your first video clip in under a minute.
Was this page helpful?
Previous

Use with AI agents

Add VideoGen media generation to your AI agent or agentic workflow.
Next
Built with

1. Get an API key

Go to app.videogen.io/developers and create an API key. The full key is only shown once, so copy and store it securely.

2. Install the SDK

TypeScript
Python
cURL
$npm install @videogen/sdk

3. Generate a video clip

TypeScript
Python
cURL
1import { VideoGenClient, pollExecutedTool } from "@videogen/sdk";
2
3const client = new VideoGenClient({ token: "YOUR_API_KEY" });
4
5const { toolExecutionId } = await client.tools.generateVideoClip({
6 prompt: "A sunset over a calm ocean, cinematic lighting",
7});
8
9const result = await pollExecutedTool(client, toolExecutionId);
10console.log(result);

The response includes a results array when the execution succeeds, where each entry contains a fileId, type, and an optional hydrated file with signed download URLs. You can also retrieve file metadata via GET /v1/files/{fileId}, or hydrate it via POST /v1/files/{fileId}/hydrate.

What’s next

  • Authentication: API key details and best practices
  • Handling async tasks: Learn how to retrieve results via polling or webhooks.
  • REST API Reference: Full endpoint documentation