How to make video ads with Gemini CLI

Gemini CLI can make video ads once an MCP (Model Context Protocol) server that runs video models is connected. Pick the model by how long one generation can run, and let the CLI cut, caption and mix in its own shell.

By Grace Kong·Updated ·5 min read

Make a vertical video ad from your agent

TL;DR

  • Setup is one command, gemini mcp add, a restart and /mcp auth hypesonic. The CLI waits up to 10 minutes per MCP request by default, enough for a video render.

  • Since June 18, 2026, free, AI Pro and Ultra accounts run the same flow in Antigravity CLI, with the server URL in its own config file.

  • Seedance 2.5 renders 4 to 30 seconds in one generation, enough for a whole Reel or a 30-second TV spot, while Veo 3.1 makes 4, 6 or 8-second clips (model docs, Nov 2026).

  • A finished vertical ad costs about $4 to $15 with Hypesonic's meta-video-ads playbook, and a 30-second streaming TV draft about $7 to $15.

  • Render in the shape of the placement: 9:16 with the top 14% and bottom 35% clear for Reels, 16:9 at exactly 15 or 30 seconds for streaming TV.

Set up Hypesonic in Gemini CLI

One command, a restart, one sign-in.

gemini mcp add --transport http hypesonic https://www.hypesonic.com/mcp

Restart Gemini CLI, then run /mcp auth hypesonic and check with /mcp. If you edit ~/.gemini/settings.json by hand instead, use httpUrl, not url (that is SSE). The default MCP request timeout is 600,000 ms, or 10 minutes (Gemini CLI docs). Setup guide: hypesonic.com/agents/gemini.

Since June 18, 2026, free, AI Pro and Ultra accounts use Antigravity CLI instead, with "serverUrl": "https://www.hypesonic.com/mcp" in ~/.gemini/config/mcp_config.json (Google, Antigravity docs).

The exact request to type

Describe the shot like a director: camera, subject, action, place, sound.

Use Hypesonic to make an 8-second 9:16 clip with Seedance 2.5 at 480p.
Handheld close-up. A woman in a yellow raincoat opens a can of our cold brew
at a rainy bus stop at dusk. She says: "Finally."
Ambient noise: rain on the shelter roof, a bus passing.
Product reference: ./refs/can.png. Quote first. Save to ./out/rain-8s.mp4.

Google's prompt guide for its Veo model orders a prompt as cinematography, subject, action, context, then style, with dialogue in quotes and sound in its own sentence (Google Cloud). The same order reads clearly to any video model.

For a finished ad rather than one clip, name the playbook: meta-video-ads for Reels and Stories (about $4 to $15 an ad) or ctv-ads for streaming TV (about $7 to $15 for a 30-second draft, $30 to $55 finished at 1080p).

What Gemini CLI does, step by step

Read the schema, upload, quote, confirm, render, edit.

  1. Reads the model's inputs with model_get, so it only asks for lengths and sizes the model supports.
  2. Uploads your reference: asset_upload returns an upload URL and the CLI PUTs ./refs/can.png from your disk.
  3. Quotes with run and estimate: true, then waits for your confirmation (choose "proceed once").
  4. Renders and collects with run_wait; video takes a few minutes, well inside the 10-minute timeout.
  5. Finishes in the shell: ffmpeg joins clips, burns captions and sets loudness, following Hypesonic's meta-video-ads or ctv-ads playbook for full ads.

The same connection can then launch the ad on Meta or TikTok, or book the spot on streaming TV, with the budget you set.

What you get back

MP4 files on disk and the prompt that made each one.

  • The clip in ./out, plus its run ID and prompt so a retake starts from the same words.
  • For a full ad: the cut, captioned, mixed file, and a note of any shot it could not fix.
  • Spend so far from spend_get.

Which model for which ad

Length per generation decides more than looks do, because a whole ad made in one take keeps faces and rooms consistent.

ModelLength per generationMax resolutionBest forOn Hypesonic
Seedance 2.54 to 30 s4KA whole 15 or 30-second ad in one takeYes, bytedance/seedance-2.5
Veo 3.14, 6 or 8 s (extend in 7 s steps to 37 s on Vertex AI)4K; 24 fps; 16:9 or 9:16One line to camera with matching soundNo; Google's own video model on Hypesonic is google/gemini-omni-flash-1.2
Kling 3.03 to 15 s, up to 6 shots4KMulti-shot product clips from a stillThe newer kuaishou/kling-4.0

Sources: BytePlus, Seedance 2.5 docs, Google Cloud, Veo 3.1 docs, Kling API docs, accessed Nov 2026.

Veo 3.1 takes 1 to 3 reference images of a person or product and writes its own voice; you cannot upload a voice track. The Veo 3.1 preview model ids in the Gemini API shut down on October 22, 2026 (Google AI Studio docs), so scripts that called Google directly with preview ids need updating.

Specs for where the video runs

Render once in the right shape instead of cropping later.

PlacementShape and sizeNotes
Instagram and Facebook Reels9:16, 1440 x 2560Keep text out of the top 14% and bottom 35%
TikTok in-feed9:16, 540 x 960 or more, up to 500 MBValue proposition in the first 3 seconds
Performance Max16:9, 1:1 and 9:16, 10 s or longerGoogle may auto-generate video if you add none; launching on Google through Hypesonic is coming soon
Streaming TV16:9, 1920x1080, exactly 15 or 30 sMix to -24 LKFS

Sources: Meta Ads Guide, TikTok, TikTok creative best practices, Google Ads Help, Netflix Ads.

Where Gemini CLI is strong and weak for video ads

Strong for hands-on video work; mind the account changes.

  • Strong: a 10-minute default timeout and a shell with ffmpeg, so render, edit and caption happen in one session.
  • Strong: local reference files upload straight from disk.
  • Weak: Gemini CLI now needs a paid API key or Code Assist Standard or Enterprise; free and AI Pro users run the same flow in Antigravity CLI.
  • Weak: Gemini CLI shows text, not video; open the MP4 in a player to review takes.

Questions

Can Gemini CLI make videos?

With an MCP server that runs video models, such as Hypesonic, yes. It can generate with Seedance 2.5, Kling 4.0 or Google's Gemini Omni Flash 1.2 and edit the result with ffmpeg in its shell.

How long can a Veo 3.1 clip be?

Each generation is 4, 6 or 8 seconds. On Vertex AI a clip can be extended in 7-second steps to 37 seconds.

Which AI model is best for a 30-second ad?

One that renders the whole length in one take, such as Seedance 2.5 at up to 30 seconds, keeps faces and settings consistent across shots.

Why does my video job not time out in Gemini CLI?

Gemini CLI waits up to 10 minutes per MCP request by default, and Hypesonic returns long renders through repeated short waits.

Sources

  1. 1Gemini CLI docs, MCP servers · accessed Nov 30, 2026
  2. 2Google Developers Blog, Transitioning Gemini CLI to Antigravity CLI · May 19, 2026
  3. 3Google Antigravity docs, MCP · accessed Nov 30, 2026
  4. 4Google Cloud, Veo 3.1 model docs · accessed Nov 2026
  5. 5Google Cloud, Veo 3.1 prompting guide · Oct 15, 2025
  6. 6Google AI Studio, video docs · accessed Nov 2026
  7. 7BytePlus, Seedance 2.5 docs · accessed Nov 2026
  8. 8Kling, VIDEO 3.0 API docs · accessed Nov 2026
  9. 9Meta Ads Guide, Instagram Reels video · accessed Nov 30, 2026
  10. 10TikTok, In-Feed Ads specifications · Jun 2026
  11. 11TikTok, creative best practices · Jun 2025
  12. 12Google Ads Help, Performance Max specs · accessed Nov 30, 2026
  13. 13Netflix Ads, creative specs · accessed Nov 30, 2026

Make a vertical video ad from your agent

Keep reading