[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [FLUX.2 Turbo](https://spiral.ai/integrations/codex/flux-2-turbo)

# How to Use FLUX.2 Turbo in Codex

Use FLUX.2 Turbo for repeated image generation with an eight-step distilled model. Unlike FLUX.2 Turbo Edit, it creates images from text rather than revising references.

|  |  |
| --- | --- |
| Model | FLUX.2 Turbo |
| Available through | fal |
| Category | Image |
| Price | $0.008216 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with FLUX.2 Turbo in Codex

- Use FLUX.2 Turbo to create a 1536 × 1024 product concept for the desk lamp described in the project brief. Show brushed aluminum, a circular base, and a warm pool of light in a side-view studio photograph.
- Generate a product photo with FLUX.2 Turbo: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.
- Make four logo concepts for a coffee brand called "Northline" with FLUX.2 Turbo.
- Create a 16:9 hero image of a quiet mountain cabin at dusk with FLUX.2 Turbo.
- Generate a 9:16 poster with FLUX.2 Turbo for a jazz night called "Blue Hour", deep navy and brass tones.

## How to set up FLUX.2 Turbo 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.2 Turbo**: 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": "fal-ai/flux-2/turbo",
    "input": {
      "prompt": "A realistic photograph of a vintage typewriter with a sheet of paper inserted that says '\''Chapter One: The Journey Begins,'\'' sunlight falling across the desk."
    }
  }'
```

Then paste one of the prompts above: Codex finds FLUX.2 Turbo on Spiral, shows the price and runs it.

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

## FLUX.2 Turbo tools and prices

- [FLUX 2 Turbo · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux-2/turbo) (fal): $0.008216 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 0 to 20 | 2.5 | Guidance Scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| seed |  | — | The seed to use for the generation. If not provided, a random seed will be used. |
| image_size |  | landscape_4_3 | The size of the image to generate. The width and height must be between 512 and 2048 pixels. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| enable_prompt_expansion |  | false | If set to true, the prompt will be expanded for better results. |
| output_format | jpeg, png, webp | png | The format of the generated image. |

## What can you do with FLUX.2 Turbo in Codex?

Create product imagery and visual design concepts alongside the project you are building. Have the agent turn project requirements into concrete image briefs with explicit composition, colors, and text.

### Product concept photography

Create product concepts from a written brief, with specific materials, camera angles, and lighting. Explore packaging or industrial design before arranging a shoot.

### Editorial cover concepts

Develop cover images with a clear focal subject and a short, explicitly quoted headline. Specify where the headline sits relative to the subject.

### Interface design concepts

Create visual concepts for app screens with named sections, clear placement instructions, and exact button text. Use the image to discuss layout and art direction.

### Explanatory posters

Turn a short explanation into a poster with a title, a few labeled sections, and a specified illustration style. Supply every label you want rendered.

## Overview

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

## FLUX.2 Turbo in other agents

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

## More Codex guides

- [FLUX.2 Sepia Vintage](https://spiral.ai/integrations/codex/flux-2-sepia-vintage)
- [FLUX.2 Turbo Edit](https://spiral.ai/integrations/codex/flux-2-turbo-edit)
- [FLUX.2 Satellite View Style](https://spiral.ai/integrations/codex/flux-2-satellite-view-style)
- [FLUX1.1 Pro Redux](https://spiral.ai/integrations/codex/flux1-1-pro-redux)
- [FLUX.2 Realism LoRA](https://spiral.ai/integrations/codex/flux-2-realism-lora)
- [FLUX1.1 Pro Ultra Fine-tuned](https://spiral.ai/integrations/codex/flux1-1-pro-ultra-fine-tuned)

## Questions about FLUX.2 Turbo in Codex

**Can Codex use FLUX.2 Turbo?**

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

**How much does FLUX.2 Turbo cost in Codex?**

$0.008216 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. 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.2 Turbo in Codex?**

No. Spiral runs FLUX.2 Turbo 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.2 Turbo in Codex?**

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

**Does Codex wait while FLUX.2 Turbo runs?**

FLUX.2 Turbo runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

**What is FLUX.2 good at?**

FLUX.2 is useful for realistic product imagery, editorial scenes, and designs that include text. Specify the materials, lighting, composition, and exact wording you want.

**How large can FLUX.2 images be?**

These FLUX.2 tools support dimensions from 512 to 2048 pixels per side. A square image can reach 2048 × 2048 pixels, roughly four megapixels.

**How should I write a FLUX.2 prompt?**

Describe the subject, action, visual style, and setting. Use concrete details such as brushed steel, side lighting, or an overhead view.

**Does FLUX.2 support negative prompts?**

No. Describe the desired result positively: ask for an empty street or sharp focus instead of listing things to exclude.

**How do I get readable text in FLUX.2 images?**

Put the exact wording in quotation marks and describe its position and appearance. Black Forest Labs warns that text-bearing objects can produce gibberish when you leave their wording unspecified.

