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

Windsurf · ImageReleased 2025-05-29

How to Use FLUX.1 Kontext Pro in Windsurf

Use FLUX.1 Kontext Pro to recolor objects, change scenes, and carry a character through successive image edits. Choose it for iterative work; FLUX.1 Kontext Max puts more emphasis on typography and following detailed instructions.

Prompts to try with FLUX.1 Kontext Pro in Windsurf

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

Use FLUX.1 Kontext Pro to edit the ceramic mug photograph in the project's assets. Change only the mug's body to dark green while preserving its handle shape, surface texture, lighting, and background.

FLUX.1 Kontext ProWindsurf
Try asking
  • Generate a product photo with FLUX.1 Kontext Pro: 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.1 Kontext Pro.

  • Create a 16:9 hero image of a quiet mountain cabin at dusk with FLUX.1 Kontext Pro.

  • Generate a 9:16 poster with FLUX.1 Kontext Pro for a jazz night called "Blue Hour", deep navy and brass tones.

How to set up FLUX.1 Kontext Pro in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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.1 Kontext Pro

    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-pro/kontext",
        "input": {
          "prompt": "Put a donut next to the flour.",
          "image_url": "https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png"
        }
      }'

Then paste one of the prompts above: Windsurf finds FLUX.1 Kontext Pro on Spiral, shows the price and runs it.

FLUX.1 Kontext Pro providers and prices

Spiral runs FLUX.1 Kontext Pro through fal. Open a card for today's price, with every fee included.

falImage
FLUX.1 Kontext [pro] · Editing
fal-ai/flux-pro/kontext

Settings you can ask for

FLUX.1 Kontext Pro works from your prompt and image URL. Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

The same seed and the same prompt given to the same version of the model

will output the same image every time.

Guidance scale (CFG)1 to 203.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.

Number of images1 to 41

The number of images to generate.

Output formatjpeg or pngjpeg

The format of the generated image.

Safety tolerance1 to 62

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

Enhance prompton or offoff

Whether to enhance the prompt for better results.

Aspect ratio21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 and 1 more

The aspect ratio of the generated image.

Every API field of FLUX.1 Kontext [pro] · Editing is on its tool page: open its card above.

What can you do with FLUX.1 Kontext Pro in Windsurf?

Turn project briefs into illustrations, product concepts, and other image assets with FLUX.1 Kontext. A coding agent can use the project's content to write specific visual requests and compare results with the intended design.

Product color studies

Start with a product image and change one object's color. Specify the shape, material, lighting, and background that should remain.

Campaign scene changes

Move a photographed subject into a different setting while asking to preserve its appearance. Compare important details with the original.

Sign and label revisions

Replace wording in an existing sign, poster, or label while retaining its surrounding design. Check spelling and placement in the result.

Character storyboard frames

Use a character reference to develop scenes for a storyboard. Request preservation of facial features, hairstyle, and clothing, then inspect continuity between frames.

Questions about FLUX.1 Kontext Pro in Windsurf

Can Windsurf use FLUX.1 Kontext Pro?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run FLUX.1 Kontext Pro like any built-in tool.

How much does FLUX.1 Kontext Pro cost in Windsurf?

$0.052 per image. 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 Windsurf plan is separate.

Do I need a fal account to use FLUX.1 Kontext Pro in Windsurf?

No. Spiral runs FLUX.1 Kontext Pro 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 Kontext Pro in Windsurf?

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

Does Windsurf wait while FLUX.1 Kontext Pro runs?

FLUX.1 Kontext Pro runs in the background. Windsurf starts the run, checks on it and gives you the image when it's ready.

When should I choose Pro or Max?

Choose Pro for iterative visual work and a balance of speed and quality. Choose Max when typography and following detailed instructions carry more weight.

What resolution does FLUX.1 Kontext produce?

Outputs are approximately 1 megapixel. A square text-to-image result defaults to 1024 by 1024 pixels; a wider or taller shape changes the dimensions within roughly that pixel budget.

Can FLUX.1 Kontext make illustrations as well as realistic images?

Yes. Describe the intended medium, such as a photograph, pencil illustration, or painting, along with the subject and composition.

Can I rely on every word in an image being correct?

Review the result before using it. Max emphasizes typography, but FLUX.1 Kontext can still miss specific instructions.

What should I include in a visual brief?

Name the subject, setting, visual style, lighting, and composition you want. Make requirements concrete, such as a red ceramic cup on a wooden table beside a window.

Get started

Start using FLUX.1 Kontext Pro in Windsurf

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

Paste this into Windsurf:

Set up Windsurf

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