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

Windsurf · ImageReleased 2026-01-27

How to Use Z-Image Base in Windsurf

Z-Image Base turns written briefs into photographs, illustrations, and concept art with control over unwanted content. Choose it when you do not need the custom LoRA support in Z-Image Base LoRA.

Prompts to try with Z-Image Base in Windsurf

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

Read the homepage copy and layout in this project. Use Z-Image Base to create a 1536 × 1024 editorial photograph that expresses the main benefit, with the subject on the right and open space on the left; start at guidance 4 and 28 steps.

Z-Image BaseWindsurf
Try asking
  • Read the onboarding screen copy. Use Z-Image Base to create a 1024 × 1024 illustration of a person organizing a cluttered workbench, with three clearly separated objects and no lettering.

  • Inspect the game's environment brief. Use Z-Image Base to create a 1536 × 1024 concept image of its harbor at dawn, specifying the viewpoint, building materials, weather, and lighting; compare two compositions.

  • Use Z-Image Base to create a 1024 × 1024 photographic concept of a ceramic desk lamp on an oak table, side lighting and a plain wall. Compare guidance 3 and 5 with the same seed and 28 steps, then show me the differences.

  • Generate a product photo with Z-Image Base: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.

How to set up Z-Image Base 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 Z-Image Base

    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/z-image/base",
        "input": {
          "prompt": "Grandmother knitting by a window, an empty chair by her"
        }
      }'

Then paste one of the prompts above: Windsurf finds Z-Image Base on Spiral, shows the price and runs it.

Z-Image Base providers and prices

Spiral runs Z-Image Base through fal. Open a card for today's price, with every fee included.

falImage
Z Image Base
fal-ai/z-image/base

Settings you can ask for

Z-Image Base works from your prompt. Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of inference steps1 to 5028

The number of inference steps to perform.

Guidance scale1 to 204

The guidance scale to use for the image generation.

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.

Number of images1 to 41

The number of images to generate.

Output formatjpeg, png, or webppng

The format of the generated image.

Accelerationnone, regular, or highregular

The acceleration level to use.

Negative promptwhat to leave out, in words

The negative prompt to use for the image generation.

Every API field of Z Image Base is on its tool page: open its card above.

What can you do with Z-Image Base in Windsurf?

Create artwork that fits the product you are building, from editorial images to onboarding illustrations. A coding agent can turn project copy and layout requirements into concrete image briefs and compare the results.

Article illustrations

Turn an article's central idea into a photographic scene or stylized illustration. Specify one clear subject and leave space for a headline added during layout.

Product concept images

Explore an imagined product's materials, lighting, and setting before arranging a photo shoot. Describe the object from text and compare several compositions.

Character design exploration

Compare fictional characters with different clothing, poses, and visual treatments. Use the results to choose an art direction.

Environment concept art

Develop settings for a game or story by specifying architecture, weather, viewpoint, and time of day. Compare photographic and illustrated treatments.

Campaign mood boards

Explore a campaign brief through scenes with different compositions, lighting, and artistic styles. Select a direction before producing finished campaign assets.

Website artwork

Generate editorial images for landing pages, onboarding screens, or empty states. Describe the required composition and keep interface text separate.

Presentation cover art

Create a visual metaphor for a presentation, such as a bridge for collaboration or a greenhouse for growth. Reserve an uncluttered area for the slide title.

Questions about Z-Image Base in Windsurf

Can Windsurf use Z-Image Base?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Z-Image Base like any built-in tool.

How much does Z-Image Base cost in Windsurf?

$0.013 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 Windsurf plan is separate.

Do I need a fal account to use Z-Image Base in Windsurf?

No. Spiral runs Z-Image Base on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Z-Image Base in Windsurf?

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

Does Windsurf wait while Z-Image Base runs?

Z-Image Base runs in the background. Windsurf starts the run, checks on it and gives you the image when it's ready.

What is Z-Image Base good at?

Z-Image Base suits photographic scenes, stylized artwork, and exploring different compositions. Use it when you want several visual directions from a written brief.

What image resolution should I use?

The maker recommends total image areas equivalent to 512 × 512 through 2048 × 2048 pixels, with any aspect ratio. A 1024 × 1024 image is a practical starting point within that range.

Which guidance and step settings should I start with?

Start with guidance 4 and 28 steps, then compare the result with 50 steps. Both sit within the maker's recommended ranges of guidance 3 to 5 and 28 to 50 steps.

How should I use negative prompts?

Describe the scene you want in the main prompt and put unwanted elements in the negative prompt. For a clean product concept, try excluding text, watermarks, and background clutter.

Should I turn guidance up when the image misses my brief?

Try making the subject, placement, and lighting more explicit first. Higher guidance can strengthen prompt adherence, but it can also reduce image quality; start within the recommended 3 to 5 range.

Get started

Start using Z-Image Base 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