Pinterest

The VideoGen AI Video API

The video generation API for developers. Create videos, images, voices, and avatars, or run end-to-end workflows via API or SDK.

Why VideoGen API

VideoGen runs your entire generative media stack, so you can focus on building something people want.

Smart routing layer

Every request runs on the best AI model for the job. We benchmark flagship models on real workloads from 50k+ customers. Served from a global AI compute network.

Managed media infra

Outputs are ready to embed, stream, or download with no extra setup. Built-in storage, transcoding, and global delivery are included.

Flexible tools and workflows

One API for video, images, speech, and avatars. Call individual tools or run workflows like script-to-video or voiceover-to-video.

TypeScript & Python SDKs

@videogen/sdk on npm and videogen on PyPI. Fully typed, auto-generated from our OpenAPI spec.

Built for automation

Webhooks and polling for production pipelines. Wire VideoGen into your CRM, CMS, or scheduled jobs.

Easy to integrate

Demo in 5 minutes, production-ready in 15: use the REST API, prebuilt SDKs, or our example projects.

Get started
Backed byY CombinatorCombinator

Generate a video with a few lines of code

Install the SDK and start generating videos immediately.

generate-video.ts
import { VideoGen, pollWorkflowRun } from "@videogen/sdk";

const vg = new VideoGen({ apiKey: "sk_videogen_live_..." });

const started = await vg.workflows.scriptToVideo({
  script:
    "Staying hydrated keeps your body and mind running at their best. Drinking enough water boosts your energy, focus, and mood. Keep a water bottle nearby and sip throughout the day.",
  visualStyle: {
    type: "AI_IMAGE",
    aiStyle: "loose watercolor illustration with visible brushstrokes and soft color bleeds",
  },
  visualPacing: "MEDIUM",
  quality: "HIGH",
  remixActions: [
    { type: "ENABLE_CAPTIONS" },
    {
      type: "CONVERT_IMAGES_TO_VIDEOS",
      motionPrompt: "slow cinematic push-in",
      muteOutputVideos: true,
      quality: "HIGH",
    },
  ],
});

const workflowRunId = started?.workflowRunId;
if (typeof workflowRunId !== "string") {
  throw new Error("Missing workflowRunId");
}
const run = await pollWorkflowRun({ client: vg, workflowRunId });
console.log(run.status, started?.projectUrl);
npm install @videogen/sdk

What will you build?

Personalized onboardingYouTube automationEmployee training
TikTok automationBlog to videoMultilingual explainersAI news anchorsReddit to video
Avatar sales pitchesHealth & fitness contentVideo SEO & AEOMeeting recapsSales enablement
Course narrationLocalized marketingProduct ad variantsCompliance trainingProduct demos
CRM video flowsAI UGC adsLanguage learning apps

Ready to build?

VideoGen solves the biggest pain points of video production—complexity, cost, and time.
Garry TanGarry Tan CEO of Y Combinator