[Integrations](https://spiral.ai/integrations) › [Google Antigravity](https://spiral.ai/integrations/antigravity) › [Kling 4.0 Flash Text to Video](https://spiral.ai/integrations/antigravity/kling-4-0-flash-text-to-video)

# How to Use Kling 4.0 Flash Text to Video in Google Antigravity

Kling 4.0 Flash Text to Video suits testing shot ideas from a written brief. It produces 720p clips up to 20 seconds, while Kling 4.0 Text to Video supports 1080p and clips up to 30 seconds.

|  |  |
| --- | --- |
| Model | Kling 4.0 Flash Text to Video |
| Available through | fal |
| Category | Video |
| Price | $0.1222 per second. Billed on `duration`, default 5. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kling 4.0 Flash Text to Video in Google Antigravity

- Read the project's campaign brief and use Kling 4.0 Flash Text to Video to make a 5-second 720p shot of a ceramic cup on a windowsill. Specify morning side light and a slow push toward the rim.
- Read the storyboard in this project and use Kling 4.0 Flash Text to Video to make a 12-second 1080p sequence with three 4-second shots: a closed workshop, a hand opening the door, and a craftsman stepping inside.
- Estimate, then generate a 5-second 9:16 clip with Kling 4.0 Flash Text to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with Kling 4.0 Flash Text to Video for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with Kling 4.0 Flash Text to Video and list what each cost.

## How to set up Kling 4.0 Flash Text to Video in Google Antigravity

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

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity 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 Kling 4.0 Flash Text to Video**: 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": "fal",
    "model": "kling/v4/flash/text-to-video",
    "input": {
      "prompt": "10 seconds, 21:9. Elegant luxury resort film, one continuous camera move, no cuts: from the unmade bed, out through the open doors, across the deck and down to…"
    }
  }'
```

Then paste one of the prompts above: Google Antigravity finds Kling 4.0 Flash Text to Video on Spiral, shows the price and runs it.

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

## Kling 4.0 Flash Text to Video tools and prices

- [Kling 4.0 Flash Text to Video](https://spiral.ai/tools/fal/kling/v4/flash/text-to-video) (fal): $0.1222 per second. Billed on `duration`, default 5.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| duration | 3 to 20 | 5 | Video duration in seconds (3-20). |
| resolution | 720p | 720p | Output resolution. Flash is 720p only. |
| aspect_ratio | 16:9, 9:16, 1:1, 21:9 | 16:9 | Aspect ratio of the generated video. |

## What can you do with Kling 4.0 Flash Text to Video in Google Antigravity?

Turn a project's creative brief into short video assets and controlled shot tests. Use project files to keep the subject, visual direction, and review criteria consistent.

### Product shot tests

Create or revise a short product shot to compare lighting, camera movement, and presentation before choosing a direction.

### Social video hooks

Develop short opening shots with a clear visual action, then compare different ways to introduce a product or character.

### Film previsualization

Create or revise a scene to test character blocking, camera coverage, and the timing of a visible action before a shoot.

### Visual style studies

Explore a short scene through specific materials, lighting, and color choices, using a written brief or suitable source assets.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Google Antigravity guides](https://spiral.ai/integrations/antigravity)

## Kling 4.0 Flash Text to Video in other agents

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

## More Google Antigravity guides

- [Kling 4.0 Flash Reference to Video](https://spiral.ai/integrations/antigravity/kling-4-0-flash-reference-to-video)
- [Kling 4.0 Flash Video Edit](https://spiral.ai/integrations/antigravity/kling-4-0-flash-video-edit)
- [Kling 4.0 Flash Image to Video](https://spiral.ai/integrations/antigravity/kling-4-0-flash-image-to-video)
- [Kling 4.0 Image to Video](https://spiral.ai/integrations/antigravity/kling-4-0-image-to-video)
- [Kling 3.0 Turbo Standard Text to Video](https://spiral.ai/integrations/antigravity/kling-3-0-turbo-standard-text-to-video)
- [Kling 4.0 Reference to Video](https://spiral.ai/integrations/antigravity/kling-4-0-reference-to-video)

## Questions about Kling 4.0 Flash Text to Video in Google Antigravity

**Can Google Antigravity use Kling 4.0 Flash Text to Video?**

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run Kling 4.0 Flash Text to Video like any built-in tool.

**How much does Kling 4.0 Flash Text to Video cost in Google Antigravity?**

$0.1222 per second. Billed on `duration`, default 5. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.

**Do I need a fal account to use Kling 4.0 Flash Text to Video in Google Antigravity?**

No. Spiral runs Kling 4.0 Flash Text to Video on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Kling 4.0 Flash Text to Video in Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while Kling 4.0 Flash Text to Video runs?**

Kling 4.0 Flash Text to Video runs in the background. Google Antigravity starts the run, checks on it and gives you the video when it's ready.

**What should I include in a Kling 4.0 prompt?**

Describe the subject, visible action, setting, lighting, and camera movement. Give concrete details, such as a bottle catching side light, instead of asking for a premium look.

**Should I use long negative prompts?**

Keep them brief. Kling recommends describing what should appear and warns that negative prompts can increase errors.

**How do I describe a visual style clearly?**

Translate the style into visible details. For a vintage room, describe worn furniture, yellowed walls, and warm incandescent light.

**How can I reduce ambiguity in an action prompt?**

Describe the pose and movement you want to see. For example, ask for a person shown in profile during a phone call instead of listing views to avoid.

**What should I change when a result misses the brief?**

Replace vague instructions with observable details about the missed action, framing, or lighting. Revise one part of the brief at a time so you can judge the effect.

