[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [FLUX 3 Klein Image Edit](https://spiral.ai/integrations/muse-code/flux-3-klein-image-edit)

# How to Use FLUX 3 Klein Image Edit in Muse Code

FLUX 3 Klein Image Edit turns reference images into product scenes, revised posters, and photo edits. Use it to combine visual references or guide object placement with bounding boxes, then check for changes outside the requested area.

|  |  |
| --- | --- |
| Model | FLUX 3 Klein Image Edit |
| Available through | fal |
| Category | Image |
| Price | $0.0117 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 3 Klein Image Edit in Muse Code

- Use FLUX 3 Klein Image Edit on assets/product-mug.png to create a 1536 × 1024 product scene on a dark oak desk beside a window. Preserve the mug's shape, handle, glaze, and printed design; use soft afternoon light. Save the result separately for comparison.
- Use FLUX 3 Klein Image Edit to revise assets/event-poster.png. Replace the main headline with "Night market" while preserving its position, the illustration, and all other lettering. Keep prompt expansion enabled and flag any spelling changes in the result.
- Use FLUX 3 Klein Image Edit with assets/room.jpg as the setting and assets/chair.png as the object reference. Place the chair beside the window, matching its scale and the room's light. Preserve the walls, floor, windows, and camera angle.
- Use FLUX 3 Klein Image Edit to restyle assets/forest-illustration.png as a woodblock print with dark green ink, rough carved edges, and visible paper texture. Preserve the tree arrangement and path. Make the result 1024 × 1024.
- Use FLUX 3 Klein Image Edit on assets/campaign.jpg to move the product toward the right third using bounding-box guidance. Preserve its size and appearance, leaving open background on the left. Save a separate edit and compare the surrounding scene with the original.

## How to set up FLUX 3 Klein Image Edit in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse 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 3 Klein Image Edit**: 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/klein/edit-image",
    "input": {
      "prompt": "A miniature grey amigurumi knight figure crocheted from thick woolen yarn stands on a cliff of stacked yarn skeins at night, lit by a full moon, next to a large…",
      "image_urls": [
        "<image_urls>"
      ]
    }
  }'
```

Then paste one of the prompts above: Muse Code finds FLUX 3 Klein Image Edit on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## FLUX 3 Klein Image Edit tools and prices

- [FLUX 3 Klein Image Edit](https://spiral.ai/tools/fal/blackforestlabs/flux-3/klein/edit-image) (fal): $0.0117 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 |
| --- | --- | --- | --- |
| enable_prompt_expansion |  | true | If set to true, the prompt is expanded into a detailed caption (grounded in the reference images when editing) before generation. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| output_format | jpeg, png, webp | png | The format of the generated image. |
| image_size |  | — | The size of the generated image, 256 to 4096 pixels per side. If not set, a single reference image's own size (scaled to at most 4 megapixels) is used, or the first reference image's size (at most 1 megapixel) when several are given. |
| bounding_boxes |  | — | Optional layout, with (0, 0) at the top-left of each image: keep, move, resize or remove objects from the references, or place new ones. Name boxes in the prompt by label, e.g. `<dragon>`. |

## What can you do with FLUX 3 Klein Image Edit in Muse Code?

Turn project image assets into revised product scenes, posters, and illustrations. A coding agent can use existing assets as references and save edits alongside the originals for comparison.

### Product background edits

Place a photographed product in a new setting. Describe the surface, lighting, and shadows, and name the product details to preserve.

### Color exploration

Recolor a photographed chair, garment, or package to compare design directions. Check surrounding materials and lighting for unintended changes.

### Poster revisions

Replace a headline or subtitle in an existing poster while requesting the same composition. Proofread the replacement and the text meant to stay.

### Seasonal scene edits

Turn a summer exterior into a winter scene or change the weather in a campaign photo. Specify which architecture, subjects, and framing should remain.

### Reference compositions

Combine a subject, an object, and a setting from separate images. Assign each reference a clear role and describe their positions in the finished image.

### Illustration restyling

Rework an existing illustration as woodblock, mosaic, clay, or pixel art. Describe the desired palette and texture along with the content to retain.

### Composition revisions

Move or resize an object in an existing image with bounding-box guidance. Review the result for missing details and changes around the object's original position.

### Accessory concepts

Add a bandana, scarf, or other visible accessory to a photographed subject. Request matching light and preserve the subject's appearance and pose.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## FLUX 3 Klein Image Edit in other agents

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

## More Muse Code guides

- [FLUX 3 Image Edit](https://spiral.ai/integrations/muse-code/flux-3-image-edit)
- [FLUX 3 Klein Text to Image](https://spiral.ai/integrations/muse-code/flux-3-klein-text-to-image)
- [FLUX 3 Image](https://spiral.ai/integrations/muse-code/flux-3-image)
- [FLUX Kontext LoRA Text to Image](https://spiral.ai/integrations/muse-code/flux-kontext-lora-text-to-image)
- [FLUX 1.1 Pro Ultra](https://spiral.ai/integrations/muse-code/flux-1-1-pro-ultra)
- [FLUX.1 Dev](https://spiral.ai/integrations/muse-code/flux-1-dev)

## Questions about FLUX 3 Klein Image Edit in Muse Code

**Can Muse Code use FLUX 3 Klein Image Edit?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run FLUX 3 Klein Image Edit like any built-in tool.

**How much does FLUX 3 Klein Image Edit cost in Muse Code?**

$0.0117 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 Muse Code plan is separate.

**Do I need a fal account to use FLUX 3 Klein Image Edit in Muse Code?**

No. Spiral runs FLUX 3 Klein Image Edit 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 Klein Image Edit in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while FLUX 3 Klein Image Edit runs?**

FLUX 3 Klein Image Edit runs in the background. Muse Code starts the run, checks on it and gives you the image when it's ready.

**What is FLUX 3 Image Klein useful for?**

Use it to revise photos, restyle illustrations, or combine references into one composition. Product scenes, poster revisions, and changes to individual objects are practical starting points.

**How large can the edited image be?**

FLUX 3 Klein Image Edit supports dimensions from 256 to 4096 pixels per side. Specify the dimensions your finished asset needs.

**Will a targeted edit leave everything else untouched?**

Check the whole result. Bounding boxes guide the edit, but Klein can change surrounding content or omit small requested elements.

**Should I leave prompt expansion enabled?**

Yes. Klein is trained on detailed scene captions, and the maker reports weaker results when prompts reach the image model without expansion.

**Can FLUX 3 Image Klein edit lettering on a poster?**

Yes, poster text revisions are a supported use. Check every word afterward because rendered text can contain mistakes or distorted letters.

