← Back to blog

How to Add Video Generation to Your AI Agent

Give an AI agent the ability to generate images and video through the 8frame MCP server. Why MCP beats raw model APIs, architecture patterns, and a human-in-the-loop design.

You've built an agent that drafts campaign briefs, or triages support tickets, or writes launch copy. The next thing someone asks for is visuals: "can it also make the video?" The clean way to add that is not to wire your agent to a dozen individual model APIs. It's to give it one tool that speaks MCP and let a single server handle image generation, editing, upscaling, and video across 16 models. This guide covers why that's the right integration layer, the architecture patterns that hold up in production, and how to keep a human in the loop where it matters.

By the end you'll understand how an AI agent can go from "draft the brief" to "generate the assets" without you maintaining a pile of per-model client code, and what a sane approval flow looks like around it.

What you're actually adding

An agent generates video by calling a tool. The question is what sits behind that tool. Two options:

  1. Raw model APIs. You integrate each provider directly: one client for a Veo endpoint, another for Kling, another for an image model, another for an upscaler. Each has its own auth, request shape, error handling, and rate limits.
  2. One MCP server. You point your agent at a single server that already exposes generate/edit/upscale/video across the whole model roster behind one interface.

The 8frame MCP server is the second option. Server URL https://mcp.8frame.co/mcp, exposing image generation, image editing, upscaling, and video generation across 16 models. Your agent gets creative generation as a capability; you don't maintain the plumbing.

Why MCP beats raw model APIs here

One integration, not N. MCP is the open standard for connecting AI systems to tools, introduced by Anthropic in late 2024 and since adopted broadly across the industry. Because it's a standard, your agent framework almost certainly already speaks it. You add one server instead of writing and maintaining a client per model.

Model changes don't break your agent. When a new video model lands or a provider changes its API, that churn happens behind the MCP server. Your agent's tool interface stays stable. Compare that to direct integrations, where every provider update is your problem.

Routing is handled. Deciding whether a shot wants Kling's speed or Veo's fidelity is a job the canvas already does. Your agent describes the shot; it doesn't have to encode model-selection logic that goes stale.

Consistent cost model. Generation is per-clip compute at the canon pricing (Kling 3.0 $0.28-0.40, Veo 3.1 $0.85-1.20, Nano Banana Pro stills $0.04-0.08), regardless of which model runs. Your agent's budgeting logic doesn't need a per-provider price map.

The honest tradeoff: raw APIs give you the absolute lowest-level control and, at massive single-model scale, potentially better unit pricing if you negotiate directly. If your product is only video generation at millions of clips a month on one model, integrate that model directly. For an agent that needs creative generation as one capability among many, MCP is the correct altitude.

How to connect it

The server is a standard remote MCP endpoint, so any MCP-capable client or framework attaches to it the same way. In Claude Code, for example:

claude mcp add --transport http 8frame https://mcp.8frame.co/mcp

In an agent framework that supports MCP, register https://mcp.8frame.co/mcp as a tool server in your config and authenticate to your 8frame workspace. The generate/edit/upscale/video tools become available to the agent's planner. The reference is at 8frame.co/mcp. If your agent runs inside claude.ai rather than your own stack, the Connectors setup is the equivalent route.

Architecture pattern: agent drafts, MCP generates, human approves

The pattern that holds up in production is a three-stage loop, not a fully autonomous one:

Stage 1: Agent drafts the brief. The agent does what it's good at: turning a goal ("launch creative for the new SKU, three hook variations") into structured prompts. Subject, action, camera, lighting, aspect ratio, one prompt per variation. This is text, so it's cheap and reviewable.

Stage 2: MCP generates. The agent calls the 8frame tool with each prompt. The server routes to the right model and returns results to the canvas. For a variation set, the agent fans out: three or four prompts, three or four clips, a few dollars of compute.

Stage 3: Human approves. The generated set surfaces to a person, who approves, flags, or requests a revision. Only approved assets move to publish. This is the guardrail that keeps a stochastic generation step from shipping something wrong.

That loop mirrors how the agent pattern works generally: goal in, tool calls, evaluation, and a stopping condition that hands off to a human when judgment is required. Video generation is exactly the kind of step you don't fully automate, because the failure mode (a warped product, an off-brand look) is visual and subjective.

Two design decisions that matter

Put the human before publish, not before generate. Generation is cheap and reviewable after the fact, so let the agent generate freely into a workspace. The approval gate belongs between "generated" and "delivered to the client or ad account," where a mistake actually costs something. Gating before generation just slows the agent down without reducing real risk.

Cap the fan-out. An agent that can call a generation tool in a loop can also burn compute in a loop. Set a per-run generation limit. A brief that should produce four variations shouldn't be able to trigger forty because of a planning error. This is the agent equivalent of the batch-cost guardrail every team learns to add.

A worked example

An agent handling paid-social creative for a DTC brand:

  1. Input: "New hook test for the sleep supplement, four angles, vertical."
  2. The agent drafts four prompts, each a different UGC hook angle (problem-first, product-first, testimonial, before-after), all 9:16.
  3. It calls the 8frame MCP tool four times. The server routes to Kling 3.0. Four clips come back to the canvas for roughly $1.40 total.
  4. The set surfaces to the performance marketer, who approves two, kills one, and asks for a re-roll on the fourth with a tweaked prompt the agent supplies.
  5. Approved clips route to the ad account.

The agent did the tedious part (drafting and generating variations); the human did the judgment part (which hooks are worth spending on). That division is the whole point.

Limits to design around

Latency is real. Video generation takes 60-90 seconds per clip. Your agent should treat these as async tool calls, not blocking ones, and report progress rather than hanging.

Review can't be skipped. The three-stage loop exists because generation is probabilistic. An agent that auto-publishes will eventually publish a bad frame. Keep the human gate.

Fine control still lives on the canvas. For precise multi-reference composition, an operator opens the canvas directly. The agent handles volume and drafting; the canvas handles the shots that need hand direction.

Related reading

To understand the protocol your agent is speaking, start with what is MCP. For the prompt-by-hand version of this setup, see how to generate AI video from Claude or, for developers, AI video in Cursor and Claude Code.


Give your agent creative generation through one server. The 8frame MCP setup is live, or explore the full canvas and workflow library your agent's output lands in.

Related articles

use caseAI Video in Cursor and Claude Code via MCPuse caseHow to Generate AI Video from Claude (MCP Guide)use caseHow to Make an ASMR Product Video with AI

Make it
move.

Stay in the loop

Be the first to hear about our launch and get product updates