Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · ImageReleased 2025-12-16

How to Use FLUX.2 Max Edit in Muse Code

FLUX.2 Max Edit changes backgrounds, materials, and text in supplied images. Choose it over FLUX.2 Max when you need an existing product or character to guide the result.

Prompts to try with FLUX.2 Max Edit in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use FLUX.2 Max Edit on the product photo in this project's assets. Place the product on a pale stone counter beside a window, with soft morning light; retain its shape, label, and proportions. Output 1536 × 1024.

FLUX.2 Max EditMuse Code
Try asking
  • Use FLUX.2 Max Edit on the chair image in this project's assets. Change the upholstery to woven rust-colored fabric, preserving the chair's shape, camera angle, and lighting. Output 1024 × 1024.

  • Remove the background from the photo I attach with FLUX.2 Max Edit and give me a transparent PNG. Save the result in ./assets.

  • Use FLUX.2 Max Edit to clean up these product shots so they sit on pure white.

  • Edit this image with FLUX.2 Max Edit: keep the subject, swap the background for a sunlit studio.

How to set up FLUX.2 Max Edit in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    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.

    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 Max Edit

    One request; the result comes back by polling or a webhook.

    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-max/edit",
        "input": {
          "prompt": "A high-fashion magazine cover featuring an android in an avant-garde geometric cloth dress, with logo prints from @Image1. The backdrop is an eye-catching…",
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

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

FLUX.2 Max Edit providers and prices

Spiral runs FLUX.2 Max Edit through fal. Open a card for today's price, with every fee included.

falImage
FLUX.2 [max] · Image Editing
fal-ai/flux-2-max/edit

Settings you can ask for

FLUX.2 Max Edit works from your prompt and image URLs. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

The seed to use for the generation.

Safety tolerance1 to 52

The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.

Output formatjpeg or pngjpeg

The format of the generated image.

Every API field of FLUX.2 [max] · Image Editing is on its tool page: open its card above.

What can you do with FLUX.2 Max Edit in Muse Code?

Produce product scenes, posters, and editorial images for your project with FLUX.2 Max. A coding agent can turn the project's copy and visual requirements into specific image instructions.

Product background changes

Use FLUX.2 Max Edit to place a supplied product image in a different setting for seasonal campaigns or lifestyle photography.

Material and surface studies

Use FLUX.2 Max Edit to explore different finishes on a supplied object while asking it to preserve shape, geometry, and lighting.

Character continuity across scenes

Use FLUX.2 Max Edit with a character reference to change the environment while retaining facial features, proportions, and visual identity.

Room furnishing composites

Use FLUX.2 Max Edit to combine furniture from supplied photos into one room, specifying which reference supplies each object.

Questions about FLUX.2 Max Edit in Muse Code

Can Muse Code use FLUX.2 Max Edit?

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

How much does FLUX.2 Max Edit cost in Muse Code?

$0.091 for the first megapixel, $0.039 for each further started one, counting the output and the input images, each sized to 1 to 4 megapixels. 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.2 Max Edit in Muse Code?

No. Spiral runs FLUX.2 Max 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.2 Max 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.2 Max Edit runs?

FLUX.2 Max 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.2 Max good at?

Product photography, editorial images, posters, and graphics with readable text are useful starting points. Describe the composition, lighting, materials, and wording you need.

How large can FLUX.2 Max images be?

Output can reach 4 megapixels, including 2048 × 2048. BFL recommends staying at or below 2 megapixels for quality and speed.

How should I describe a photographic image?

Specify the subject, lens, lighting, framing, and visible texture. A concrete description such as an 85mm portrait with side lighting gives clearer direction than asking for a professional photo.

Does FLUX.2 Max support negative prompts?

No. Describe the result positively: use "sharp focus" or "an empty street" to state what should appear.

Can FLUX.2 Max put text inside an image?

Yes, it supports readable typography for posters, ads, and magazine layouts. Give the exact wording and describe its position, size, and lettering style.

Get started

Start using FLUX.2 Max Edit in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options