[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Gemini Omni 1.1 Flash Preview](https://spiral.ai/integrations/opencode/gemini-omni-1-1-flash-preview)

# How to Use Gemini Omni 1.1 Flash Preview in opencode

Gemini Omni 1.1 Flash Preview edits short footage with written instructions, such as changing lighting or visual style. Choose it to revise an existing shot; choose Gemini Omni 1.1 Flash to create a shot from text or keyframes.

|  |  |
| --- | --- |
| Model | Gemini Omni 1.1 Flash Preview |
| Available through | Vertex AI |
| Category | Video |
| Price | Edits keep the source's length and resolution: $0.132 per second at 720p ($0.0439 at 360p, $0.198 at 1080p, $0.395 at 4K), plus $0.0113 per second of source video. Text: $1.95 per 1M tokens. Reasoning: $11.70 per 1M tokens. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemini Omni 1.1 Flash Preview in opencode

- Use Gemini Omni 1.1 Flash Preview to edit the project's 6-second product clip. Change the lighting to overcast daylight and preserve the mug, framing, and action. Save a separate draft for comparison.
- Use Gemini Omni 1.1 Flash Preview to restyle the project's 5-second character clip as hand-drawn animation. Preserve the action and framing, then save the result beside the original.
- Estimate, then generate a 5-second 9:16 clip with Gemini Omni 1.1 Flash Preview: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with Gemini Omni 1.1 Flash Preview for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with Gemini Omni 1.1 Flash Preview and list what each cost.

## How to set up Gemini Omni 1.1 Flash Preview in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Gemini Omni 1.1 Flash Preview**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "vertex",
    "model": "gemini-omni-1.1-flash-preview",
    "input": {
      "input": [
        {
          "type": "user_input",
          "content": [
            {
              "uri": "<uri>",
              "type": "video"
            },
            {
              "text": "<text>",
              "type": "text"
            }
          ]
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Gemini Omni 1.1 Flash Preview on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Gemini Omni 1.1 Flash Preview tools and prices

- [Gemini Omni 1.1 Flash · Video Editing](https://spiral.ai/tools/vertex/gemini-omni-1.1-flash-preview) (Vertex AI): Edits keep the source's length and resolution: $0.132 per second at 720p ($0.0439 at 360p, $0.198 at 1080p, $0.395 at 4K), plus $0.0113 per second of source video. Text: $1.95 per 1M tokens. Reasoning: $11.70 per 1M tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| response_format |  | — | Configuration for the video output. The edited video is returned inline. |
| generation_config |  | — | Configuration parameters for the model interaction. |
| system_instruction |  | — | System instruction for the interaction. |

## What can you do with Gemini Omni 1.1 Flash Preview in opencode?

Turn a project's creative brief into short video assets and targeted revisions. A coding agent can use project references, save drafts, and record which visual changes still need review.

### Product shot concepts

Explore a short product shot or revise existing footage to test a different setting or lighting treatment.

### Storyboard reviews

Create a draft shot or revise an existing take so a team can assess framing, action, and mood before production.

### Lighting studies

Compare daylight, overcast light, and evening light on a simple scene. Keep the subject and action consistent for the comparison.

### Animation style tests

Develop a short animated concept or restyle source footage to compare illustrated and realistic treatments.

### Background treatments

Explore a subject in different environments, either by creating a scene or changing the surroundings in an existing shot.

### Camera viewpoint studies

Test a straightforward close-up or eye-level view before committing to a shot. Review the result rather than assuming exact camera compliance.

## Overview

- [Google Vertex AI](https://spiral.ai/providers/vertex)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Gemini Omni 1.1 Flash Preview in other agents

- [Amp](https://spiral.ai/integrations/amp/gemini-omni-1-1-flash-preview)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gemini-omni-1-1-flash-preview)
- [Claude](https://spiral.ai/integrations/claude-desktop/gemini-omni-1-1-flash-preview)
- [Claude Code](https://spiral.ai/integrations/claude-code/gemini-omni-1-1-flash-preview)
- [Cline](https://spiral.ai/integrations/cline/gemini-omni-1-1-flash-preview)
- [Codex](https://spiral.ai/integrations/codex/gemini-omni-1-1-flash-preview)
- [Cursor](https://spiral.ai/integrations/cursor/gemini-omni-1-1-flash-preview)
- [Devin](https://spiral.ai/integrations/devin/gemini-omni-1-1-flash-preview)
- [dots](https://spiral.ai/integrations/dots/gemini-omni-1-1-flash-preview)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gemini-omni-1-1-flash-preview)
- [Gemini](https://spiral.ai/integrations/gemini/gemini-omni-1-1-flash-preview)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gemini-omni-1-1-flash-preview)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gemini-omni-1-1-flash-preview)
- [goose](https://spiral.ai/integrations/goose/gemini-omni-1-1-flash-preview)
- [Grok](https://spiral.ai/integrations/grok/gemini-omni-1-1-flash-preview)
- [Grok Build](https://spiral.ai/integrations/grok-build/gemini-omni-1-1-flash-preview)
- [Hermes](https://spiral.ai/integrations/hermes/gemini-omni-1-1-flash-preview)
- [Instinct](https://spiral.ai/integrations/instinct/gemini-omni-1-1-flash-preview)
- [Manus](https://spiral.ai/integrations/manus/gemini-omni-1-1-flash-preview)
- [Muse](https://spiral.ai/integrations/muse/gemini-omni-1-1-flash-preview)
- [Muse Code](https://spiral.ai/integrations/muse-code/gemini-omni-1-1-flash-preview)
- [n8n](https://spiral.ai/integrations/n8n/gemini-omni-1-1-flash-preview)
- [Notion](https://spiral.ai/integrations/notion/gemini-omni-1-1-flash-preview)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gemini-omni-1-1-flash-preview)
- [Perplexity](https://spiral.ai/integrations/perplexity/gemini-omni-1-1-flash-preview)
- [Raycast](https://spiral.ai/integrations/raycast/gemini-omni-1-1-flash-preview)
- [VS Code](https://spiral.ai/integrations/vscode/gemini-omni-1-1-flash-preview)
- [Windsurf](https://spiral.ai/integrations/windsurf/gemini-omni-1-1-flash-preview)
- [Zapier](https://spiral.ai/integrations/zapier/gemini-omni-1-1-flash-preview)

## More opencode guides

- [Gemini Omni 1.1 Flash](https://spiral.ai/integrations/opencode/gemini-omni-1-1-flash)
- [Gemini Omni 1.2 Flash](https://spiral.ai/integrations/opencode/gemini-omni-1-2-flash)
- [FLUX Video Upscale](https://spiral.ai/integrations/opencode/flux-video-upscale)
- [Gemini Omni Flash 1.1 Edit](https://spiral.ai/integrations/opencode/gemini-omni-flash-1-1-edit)
- [FLUX 3 Video Edit Fast](https://spiral.ai/integrations/opencode/flux-3-video-edit-fast)
- [Gemini Omni Flash 1.1 Image to Video](https://spiral.ai/integrations/opencode/gemini-omni-flash-1-1-image-to-video)

## Questions about Gemini Omni 1.1 Flash Preview in opencode

**Can opencode use Gemini Omni 1.1 Flash Preview?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Gemini Omni 1.1 Flash Preview like any built-in tool.

**How much does Gemini Omni 1.1 Flash Preview cost in opencode?**

Edits keep the source's length and resolution: $0.132 per second at 720p ($0.0439 at 360p, $0.198 at 1080p, $0.395 at 4K), plus $0.0113 per second of source video. Text: $1.95 per 1M tokens. Reasoning: $11.70 per 1M tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a Vertex AI account to use Gemini Omni 1.1 Flash Preview in opencode?**

No. Spiral runs Gemini Omni 1.1 Flash Preview on its own Vertex AI account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Gemini Omni 1.1 Flash Preview in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Gemini Omni 1.1 Flash Preview runs?**

Gemini Omni 1.1 Flash Preview runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

**What is Gemini Omni 1.1 Flash useful for?**

Use it for short visual concepts, storyboard shots, and revisions to a video's appearance or action. Keep each request focused on a shot you can inspect before using it.

**How long should a Gemini Omni 1.1 Flash shot be?**

Plan around 3 to 10 seconds for an individual shot. Give a short clip one clear action rather than squeezing a full story into it.

**Which resolution should I use for drafts?**

Start at 360p to check the composition and action. Request higher resolution after the shot works; extra pixels will not correct an unwanted action or inconsistent object.

**How should I describe a video edit?**

State the change briefly and identify what should stay the same. For example: Change the lighting to late afternoon; preserve the subject and action.

**What should I check before using the result?**

Check object and character consistency, complicated movements, and any visible text. Google identifies all three as areas where mistakes can remain.

