[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [FLUX.1 Krea Dev](https://spiral.ai/integrations/vscode/flux-1-krea-dev)

# How to Use FLUX.1 Krea Dev in VS Code

FLUX.1 Krea Dev creates images from text, with a focus on realistic photography and deliberate art direction. Compared with FLUX.1 Dev, its training emphasizes distinctive aesthetics and reducing the oversaturated AI look.

|  |  |
| --- | --- |
| Model | FLUX.1 Krea Dev |
| Available through | fal |
| Category | Image |
| Price | $0.0325 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.1 Krea Dev in VS Code

- Read the bakery homepage copy and use FLUX.1 Krea Dev to create a photographic concept of a baker shaping dough beside a morning window. Leave space on the left for the heading.
- Use FLUX.1 Krea Dev to generate a 1024 × 1024 photograph concept for our gardening article: a rooftop planter, damp soil, early sunlight, and apartment buildings beyond.
- Check the outdoor brand's written design brief, then use FLUX.1 Krea Dev to create a misty campsite photograph concept with restrained colors. Save the result with a descriptive filename.
- Use FLUX.1 Krea Dev to create a ceramic mug shoot concept for the shop redesign: pale wooden table, linen cloth, side lighting, and an uncluttered composition. Keep product copy in HTML.
- Use FLUX.1 Krea Dev to generate a square reading-room concept at 1024 × 1024 with 28 steps and guidance 4.5. Add it to the design preview for review.

## How to set up FLUX.1 Krea Dev in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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.1 Krea Dev**: 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-1/krea",
    "input": {
      "prompt": "A candid street photo of a woman with a pink bob and bold eyeliner on a graffiti-covered subway platform. She wears a bright yellow patent leather coat over a…"
    }
  }'
```

Then paste one of the prompts above: VS Code finds FLUX.1 Krea Dev on Spiral, shows the price and runs it.

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

## FLUX.1 Krea Dev tools and prices

- [FLUX.1 Krea \[dev\] · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux-1/krea) (fal): $0.0325 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1.
- [FLUX.1 Krea \[dev\] · Text to Image](https://spiral.ai/tools/fal/fal-ai/flux/krea) (fal): $0.0325 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 |
| --- | --- | --- | --- |
| image_size |  | landscape_4_3 | The size of the generated image. |
| num_inference_steps | 1 to 50 | 28 | The number of inference steps to perform. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| guidance_scale | 1 to 20 | 4.5 | The CFG (Classifier Free 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. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png | jpeg | The format of the generated image. |

## What can you do with FLUX.1 Krea Dev in VS Code?

Create photographic assets while building a website or app. A coding agent can turn the project's written content into image briefs and place selected results into the layout.

### Editorial article artwork

Create a photographic illustration for an article about urban gardening, remote work, or slow travel. Specify the scene and leave room for the headline.

### Campaign art direction

Explore a campaign through written briefs for lighting, setting, and color. Compare a quiet morning scene with a dramatic evening treatment before commissioning a shoot.

### Interior design concepts

Visualize an imagined reading nook or living room from descriptions of materials, furniture, and daylight. Use the images to discuss mood and styling.

### Product shoot planning

Stage an imagined ceramic mug or perfume bottle in different photographic settings. Use the results to plan backgrounds, props, and camera framing.

### Portrait lighting studies

Develop portrait briefs around window light, direct flash, or evening street lighting. Compare the proposed mood and framing before a session.

### Website photography concepts

Generate original scene concepts for a bakery, outdoor brand, or design studio website. Request a clear focal subject and space for surrounding page copy.

### Film location mood boards

Imagine a rainy storefront, a rural roadside diner, or an apartment at dusk. Describe the atmosphere and camera position to support discussions about a scene.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## FLUX.1 Krea Dev in other agents

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

## More VS Code guides

- [FLUX.1 Kontext Pro Text to Image](https://spiral.ai/integrations/vscode/flux-1-kontext-pro-text-to-image)
- [FLUX.1 Krea LoRA](https://spiral.ai/integrations/vscode/flux-1-krea-lora)
- [FLUX.1 Kontext Pro Multi](https://spiral.ai/integrations/vscode/flux-1-kontext-pro-multi)
- [FLUX.1 Krea Redux](https://spiral.ai/integrations/vscode/flux-1-krea-redux)
- [FLUX.1 Kontext Pro](https://spiral.ai/integrations/vscode/flux-1-kontext-pro)
- [FLUX.1 Redux \[dev\]](https://spiral.ai/integrations/vscode/flux-1-redux-dev)

## Questions about FLUX.1 Krea Dev in VS Code

**Can VS Code use FLUX.1 Krea Dev?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run FLUX.1 Krea Dev like any built-in tool.

**How much does FLUX.1 Krea Dev cost in VS Code?**

$0.0325 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 VS Code plan is separate.

**Do I need a fal account to use FLUX.1 Krea Dev in VS Code?**

No. Spiral runs FLUX.1 Krea Dev 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.1 Krea Dev in VS Code?**

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

**Does VS Code wait while FLUX.1 Krea Dev runs?**

FLUX.1 Krea Dev runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

**What is FLUX.1 Krea good at?**

Its main focus is realistic photography with distinctive art direction. Consider it for editorial images, campaign concepts, and photographic mood boards.

**How does FLUX.1 Krea differ from FLUX.1 Dev?**

FLUX.1 Krea puts more emphasis on a particular aesthetic taste and reducing oversaturated textures. Choose it when photographic mood and visual character are central to the brief.

**What resolution should I start with?**

Try 1024 × 1024 for a square draft. Krea recommends resolutions between 1024 and 1280 pixels; that recommendation does not establish a maximum output size.

**Which generation settings are a useful starting point?**

Start with 28 steps and guidance of 4.5. Both sit within Krea's recommended ranges of 28 to 32 steps and guidance of 3.5 to 5.0.

**How should I write a FLUX.1 Krea prompt?**

Use a concrete photographic brief: subject, surroundings, framing, lighting, and color palette. Review the result against the brief, since the model can miss requested details.

