[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [FLUX 3 Text to Video](https://spiral.ai/integrations/codex/flux-3-text-to-video)

# How to Use FLUX 3 Text to Video in Codex

FLUX 3 Text to Video creates scenes from a written brief, including motion and synchronized sound. Unlike FLUX 3 Image to Video, it builds the opening composition from your description.

|  |  |
| --- | --- |
| Model | FLUX 3 Text to Video |
| Available through | fal |
| Category | Video |
| Price | Up to $4.42 per run at the default inputs. `resolution`: 720p (default) $4.42, 1080p $7.54, 1440p $8.32, 2160p $12.22. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FLUX 3 Text to Video in Codex

- Read the project's creative brief and use FLUX 3 Text to Video to make a 10-second animated scene explaining its main idea. Show one clear action and describe the matching sound effects.
- Read the campaign brief and use FLUX 3 Text to Video to make a 15-second concept with three shots: an establishing view, the main action, and a closing detail. Carry one music bed across the cuts.
- Estimate, then generate a 5-second 9:16 clip with FLUX 3 Text to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
- Make a 10-second product teaser with FLUX 3 Text to Video for a smartwatch, slow orbit shot, studio lighting.
- Generate three 5-second b-roll clips of a busy coffee shop with FLUX 3 Text to Video and list what each cost.

## How to set up FLUX 3 Text to Video in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

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

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 FLUX 3 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": "blackforestlabs/flux-3/text-to-video",
    "input": {
      "prompt": "A red panda walks along a mossy log in a sunlit forest, one continuous unbroken shot. Ambient birdsong and rustling leaves."
    }
  }'
```

Then paste one of the prompts above: Codex finds FLUX 3 Text to Video on Spiral, shows the price and runs it.

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

## FLUX 3 Text to Video tools and prices

- [FLUX 3 Text to Video](https://spiral.ai/tools/fal/blackforestlabs/flux-3/text-to-video) (fal): Up to $4.42 per run at the default inputs. `resolution`: 720p (default) $4.42, 1080p $7.54, 1440p $8.32, 2160p $12.22.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| aspect_ratio | auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16 | auto | Aspect ratio of the generated video. `auto` lets the model choose. |
| resolution | 720p, 1080p, 1440p, 2160p | 720p | Resolution of the generated video. `1080p`, `1440p` (2K) and `2160p` (4K) are finished by the video upsampler; exact dimensions depend on the aspect ratio. |
| duration | auto, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 | auto | Duration of the generated video in seconds. `auto` lets the model choose. |
| generate_audio |  | true | Whether to generate audio for the video. |
| safety_tolerance | 0 to 4 | 2 | The safety tolerance level for the generated video. 0 is the strictest and 4 is the most permissive. |

## What can you do with FLUX 3 Text to Video in Codex?

Create short video assets for a website, app, or game from a project brief. Have the agent turn each visual idea into a concrete shot with action and sound.

### Product ad concepts

Create a short product reveal with a clear action and matching sound effects. Use the clip to compare creative directions before planning a shoot.

### Animated explainers

Show one idea through a brief animated sequence, such as a seed sprouting or water moving through a landscape.

### Storyboard motion studies

Turn a planned scene into a moving shot to assess framing, action, and pacing before production.

### Localized presenter clips

Create short on-camera lines in different languages, with a named speaker and exact dialogue. Review pronunciation and speaker attribution before publishing.

### Titles within a scene

Build a short sequence around a sign, title, or other typography placed inside the picture.

### Stylized social clips

Explore an illustrated or animated look for a short social post, with motion and sound directed around one clear visual idea.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Codex guides](https://spiral.ai/integrations/codex)

## FLUX 3 Text to Video in other agents

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

## More Codex guides

- [FLUX 3 Max Text to Video](https://spiral.ai/integrations/codex/flux-3-max-text-to-video)
- [FLUX 3 Text to Video Draft](https://spiral.ai/integrations/codex/flux-3-text-to-video-draft)
- [FLUX 3 Max Keyframes to Video](https://spiral.ai/integrations/codex/flux-3-max-keyframes-to-video)
- [FLUX 3 Video Edit Fast](https://spiral.ai/integrations/codex/flux-3-video-edit-fast)
- [FLUX 3 Max Image to Video](https://spiral.ai/integrations/codex/flux-3-max-image-to-video)
- [FLUX Video Upscale](https://spiral.ai/integrations/codex/flux-video-upscale)

## Questions about FLUX 3 Text to Video in Codex

**Can Codex use FLUX 3 Text to Video?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run FLUX 3 Text to Video like any built-in tool.

**How much does FLUX 3 Text to Video cost in Codex?**

Up to $4.42 per run at the default inputs. `resolution`: 720p (default) $4.42, 1080p $7.54, 1440p $8.32, 2160p $12.22. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need a fal account to use FLUX 3 Text to Video in Codex?**

No. Spiral runs FLUX 3 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 FLUX 3 Text to Video in Codex?**

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

**Does Codex wait while FLUX 3 Text to Video runs?**

FLUX 3 Text to Video runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.

**How long can a FLUX 3 video be?**

A clip can run from 5 to 20 seconds, in whole-second increments. Plan longer pieces as separate shots.

**Does FLUX 3 generate sound and speech?**

Yes. It generates lip-synced speech, sound effects, and ambience alongside the picture, and supports multiple languages and accents.

**Can FLUX 3 create several shots in one clip?**

Yes. A generation can contain scene changes and different camera angles. Describe the shots in order and make each transition explicit.

**Is FLUX 3 limited to realistic footage?**

No. You can request animation, motion design, or stylized artistic looks. It can also render typography inside a scene.

**How should I prompt dialogue in FLUX 3?**

Put the exact spoken words in quotation marks and identify the person speaking on camera. For an off-screen line, explicitly call it a voiceover.

