Guide
How to Generate Video in Claude Code for Your Projects
Published By DreamClip
To generate video in Claude Code, add a video MCP server and let the agent call it like any other tool. DreamClip's server at https://dreamclip.ai/mcp takes one command to register and one browser sign-in to authorise; after that Claude Code can queue clips on PixVerse V6, Kling, Seedance and every other video model in the DreamClip studio, wait for them, and save the files into your project.
Claude Code does not render video itself, as of November 2026. It is good at the parts around the render: turning a feature description into shot prompts, keeping a storyboard file up to date, choosing sizes your layout needs, and moving finished files where the code expects them.
Every clip gets a price up front, nothing is spent until the file arrives, and a failed clip costs nothing.
Why put a video model next to your code
Developers end up needing video more often than they plan to: a muted loop behind a landing page hero, a short demo for an app store listing, a cutscene for a game prototype, a product teaser for a launch post. Doing it from the same session that builds the page means the agent knows the layout, the brand colors and the copy, and can match the clip to them without you explaining the project twice.
Setup in two steps
- Run "claude mcp add --transport http --scope user dreamclip https://dreamclip.ai/mcp" in a terminal. The user scope registers it for every project, not only the current folder.
- Start Claude Code, type /mcp, pick dreamclip, choose to authenticate, sign in to DreamClip in the browser that opens and choose Allow.
That is all: no key, no local server, no environment variable. Copy it from the connect page if you prefer. To check, ask Claude Code "list the DreamClip video models that do vertical clips".
How to generate video in Claude Code, one session
- Ask: "Make a five second muted loop for the hero section, slow drifting clouds in our brand blue, 16:9, on PixVerse V6 at 720p."
- Claude Code calls estimate_cost with those settings and tells you the price.
- It asks permission to call generate_video. The tool answers at once with a job id; the credits are now held.
- It calls get_generation, which holds for as long as 50 seconds each time, and keeps calling until the status reads delivered.
- It downloads the file into your assets folder and updates the component that plays it.
Be specific about length and size. When either is left out, the server uses the model's shortest length and its lowest resolution, which is cheap and quick for a test and rarely right for a final asset. The tool is told to keep to the model, length and size you asked for, so naming them is how you get them.
A storyboard file the agent can work from
For anything longer than one clip, keep the plan in a file in your repo, for example a short markdown list of shots. Each entry holds the prompt, the model, the length, the size and, once queued, the job id and the delivered link. Claude Code reads the file, queues the shots that have no id yet, and writes the ids back.
- If the session ends mid-render, the ids in the file let a new session pick the jobs up with get_generation instead of starting them again.
- Each generate call can carry an idempotency key. Keeping the key in the file means a retried call after a timeout returns the original job rather than a second charge.
- Editing one shot's prompt and clearing its id is a clean way to redo just that shot.
Each generate_video call makes exactly one clip. Four shots, or four takes of one shot, are four calls.
Picking a video model for the job
Every video model on sale in the Video studio is reachable from Claude Code. Five that cover common developer jobs, with cells printed from our catalog:
| Model | Maker | Clip lengths | Sizes | Sound | Start frame | Reference photos |
|---|---|---|---|---|---|---|
| PixVerse V6 | MakerPixVerse | Clip lengths1 to 15 s | Sizes360p, 540p, 720p, 1080p | SoundNo | Start frameStart and end | Reference photosNo |
| Kling V3 Turbo | MakerKling | Clip lengths3 to 15 s | Sizes720p, 1080p | SoundNo | Start frameYes | Reference photosNo |
| Seedance 2.0 Fast | MakerByteDance | Clip lengths4 to 15 s | Sizes480p, 720p | SoundYes, on by default | Start frameStart and end | Reference photosYes |
| Gemini Omni Flash 1.1 | MakerGoogle | Clip lengths3 to 10 s | Sizes360p, 720p, 1080p, 4K | SoundAlways on | Start frameStart and end | Reference photosNo |
| Kling 3.0 4K | MakerKling | Clip lengths3 to 15 s | Sizes4K | SoundYes, on by default | Start frameYes | Reference photosNo |
| Job | Start with | Why |
|---|---|---|
| Muted background loop | Start withPixVerse V6 | WhyOur catalog calls it the value pick, and it renders small sizes for tests |
| Product or UI teaser | Start withKling V3 Turbo | WhyCinematic motion at 720p or 1080p |
| The same character across shots | Start withSeedance 2.0 Fast | WhyThe only model here that takes reference photos |
| Short clip with sound | Start withGemini Omni Flash 1.1 | WhyDescribed in our catalog as fast clips with native sound |
| Final delivery in 4K | Start withKling 3.0 4K | WhyRenders at native 4K |
To judge models by eye before you commit a pipeline to one, run one prompt across several in Compare in the browser.
Writing prompts for product and interface clips
Video models are trained on footage of the world, not on your app, so ask for what a camera could film. A clip of "our dashboard" rarely comes out right; a slow push in on a laptop on a desk with a soft glow from the screen does, and the real interface can be composited on afterwards or brought in as a start frame. The same goes for brand elements: colors and mood transfer well, exact logos and small text do not.
- Name one camera move per clip: a slow push in, a pan left, a static wide shot.
- Name the light: overcast daylight, neon at night, warm studio key.
- For a loop, ask for continuous, even motion with no cut, such as drifting fog or slowly turning particles, and trim the ends in your editor.
- Say sound on or off on models that render sound, so a background loop does not come back with audio you will mute anyway.
Start and end frames from your own assets
Most video models take a start image, so a screenshot, a render or a product photo can become the clip's first frame; some also take an end image to land on. Images travel by address: an https link anyone can open, or a single embedded data URL of less than 3 MB, in PNG, JPEG or WebP. Files that only exist on your disk can go as a data URL if they are small; larger ones need to be hosted first.
Reference photos, a handful of pictures of one subject to keep steady, work on Seedance 2.0 Fast alone, and such a run renders at 480p or 720p. The guide to Seedance in Claude covers reference runs in detail, and the image to video page shows what start frames do. To try a start frame by hand first, open Seedance 2.0 Fast in frame mode.
If your start or end image shows a real person, keep it away from Seedance 2.0 Fast, Seedance 2.5 and Seedance 2.0 Mini, which refuse it. That refusal is not charged, and the answer names Kling 3.0 and two cheaper MiniMax models that take the same photo.
Waiting on renders without wasting calls
Video takes longer than a single tool call should. The server's answer to that is a long wait inside get_generation: pass wait_seconds up to 50 and the call holds until the clip is delivered or the time runs out, then answers within 55 seconds either way.
- At most four of those waiting calls run at once per account. A fifth answers at once and says so.
- Per minute, one account may make 120 tool calls, and at most 15 of those may start a generation.
- A free account renders one clip at a time; a paid one runs several, so a storyboard of shots can render in parallel.
- When a model runs slow, the server may pass the job along a preset chain of named models of the same kind, twice at most, keeping the quoted price; get_generation's notice names whichever finished it.
Money controls for an agent that runs commands
An agent working through a list can spend faster than you expect, so set limits in the request. Ask Claude Code to estimate every shot first and give you the total. Give a per clip ceiling, which it passes as max_credits: a shot priced above it is refused without a hold. The spend can never exceed your balance, credits are taken only when a clip is delivered, and a failed or cancelled clip returns its hold in full. Prices are the Video studio's own; nothing is added for working from the terminal.
After delivery: download, trim, ship
What Claude Code gets back are links to stored copies, also listed on your Assets page, and they stay valid. For a site you ship, download each clip into your repo or your own storage rather than linking to it. If you have tools such as ffmpeg installed, Claude Code can run them on the downloaded file to trim, mute or convert it, with your approval, as it would for any other command.
The chat version of this workflow is the guide to generating video in Claude. For Kling's look across sizes, the Kling page and the Kling V3 Turbo studio are the quick references.
What stays in the browser studio
- Motion Transfer, Lip Sync, the editor and Upscale to 4K, all of which start from a video file the tools cannot receive.
- Voice cloning and the voice changer, which need a recording.
- Several clips from one call. The tool makes one per call.
Revoking is done in your account: the "Connected agents" list has a "Disconnect" button per agent. Deleting the server from Claude Code without it means the token can still refresh for up to 30 days.
Questions
Can Claude Code make videos by itself?
No, not as of November 2026: rendering is not something it does. With a video MCP server such as DreamClip's added, it can queue clips on named video models and save the results in your project.
Which command adds the server?
This one: "claude mcp add --transport http --scope user dreamclip https://dreamclip.ai/mcp". Then sign in through /mcp.
How long does Claude Code wait for a clip?
Each get_generation call can wait up to 50 seconds. Claude Code repeats the call until the clip is delivered.
Can I use a screenshot as the first frame?
Yes, on any video model with a start image option. Host the screenshot at a public address, or inline it; the inline form tops out at 3 MB.
What if the session ends before the clip is done?
The job keeps running. Keep the job id, for example in a storyboard file, and a later session can fetch the finished clip with get_generation.
Is a failed clip charged?
No. The held credits return to your balance and Claude Code is told nothing was charged.
Related
- GuideHow to Generate Images in Claude Code from the TerminalAdd DreamClip's MCP server to Claude Code with one command, then ask for hero images, share cards and placeholders from GPT Image 2.5 or Nano Banana 2.
- GuideAI Video MCP Server: How an Agent Makes Clips, Tool by ToolWhat an AI video MCP server is and how an agent drives one: sign-in, the ten tools, async renders, holds and refusals, shown on DreamClip's own server.
- GuideHow to Generate Video in Claude with a ConnectorClaude does not render video itself. Add the DreamClip connector once, then ask for clips on Veo 3.1, Kling or Seedance and get the file in the chat.