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

VS Code · Image

How to Use Broccoli Haircut in VS Code

Broccoli Haircut applies a broccoli hairstyle to an existing portrait while aiming to preserve the person's likeness. It uses a specialized FLUX.1 Kontext LoRA trained for this particular edit.

Prompts to try with Broccoli Haircut in VS Code

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

Use Broccoli Haircut on the sample portrait in this project and save the result beside the original.

Broccoli HaircutVS Code
Try asking
  • Use Broccoli Haircut to edit our demo portrait, then add an original-and-edited comparison to the preview page.

  • Use Broccoli Haircut on our portrait fixture with LoRA strengths of 0.5, 1, and 1.5, keeping the seed fixed. Build a labeled comparison.

  • Use Broccoli Haircut on the avatar source image in this project. Save the full result and create a separate square crop.

  • Use Broccoli Haircut on the project's sample portraits. Create a review gallery that pairs each edit with its source.

How to set up Broccoli Haircut 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:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Broccoli Haircut

    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/image-editing/broccoli-haircut",
        "input": {
          "image_url": "https://v3.fal.media/files/rabbit/8nqqnF_KS9c0pGgwvRNAY_IMG_8421.jpeg"
        }
      }'

Then paste one of the prompts above: VS Code finds Broccoli Haircut on Spiral, shows the price and runs it.

Broccoli Haircut providers and prices

Spiral runs Broccoli Haircut through fal. Open a card for today's price, with every fee included.

falImage
Image Editing Broccoli Haircut
fal-ai/image-editing/broccoli-haircut

Settings you can ask for

Broccoli Haircut works from your image URL. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Guidance scale0 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 inference steps1 to 5030

Number of inference steps for sampling.

LoRA scale0 to 41

The scale factor for the LoRA model. Controls the strength of the LoRA effect.

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.

Every API field of Image Editing Broccoli Haircut is on its tool page: open its card above.

What can you do with Broccoli Haircut in VS Code?

Create hairstyle preview assets from portraits in your project. Your coding agent can arrange the results beside their originals for review.

Personal haircut preview

Apply the broccoli hairstyle to a selfie and compare it with the original before discussing the look with a barber.

Barbershop consultation

Prepare an edited client portrait as a visual reference for a broccoli haircut consultation.

Profile picture experiment

Try the hairstyle on an existing profile portrait and inspect the result before cropping it for an avatar.

Hairstyle meme

Create a broccoli haircut edit from a portrait, then add the joke's caption in a separate editing step.

Hair trend article

Prepare an original-and-edited portrait comparison to illustrate an article about the broccoli hairstyle.

Haircut preview app demo

Use sample portraits to demonstrate a focused hairstyle preview feature, with the original beside each result.

Questions about Broccoli Haircut in VS Code

Can VS Code use Broccoli Haircut?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Broccoli Haircut like any built-in tool.

How much does Broccoli Haircut cost in VS Code?

$0.052 per image. 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 Broccoli Haircut in VS Code?

No. Spiral runs Broccoli Haircut on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Broccoli Haircut in VS Code?

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

Does VS Code wait while Broccoli Haircut runs?

Broccoli Haircut runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

What is Broccoli Haircut best used for?

Use it to preview a broccoli hairstyle on an existing portrait. Suggested applications include haircut consultations, profile pictures, and hairstyle memes.

Will Broccoli Haircut keep the person recognizable?

Preserving the original likeness is an explicit goal. Compare the edited face with the original before choosing a result.

Is Broccoli Haircut suitable for other hairstyles?

Its documented specialty is the broccoli haircut. Treat requests for unrelated hairstyles as outside its verified scope.

How should I describe the edit?

Keep the request focused on changing the hair to a broccoli haircut. The published LoRA model card uses that direct instruction; ask your agent to handle captions or comparison layouts separately.

How can I compare stronger and weaker haircut effects?

Adjust the LoRA strength while keeping the source portrait and other settings fixed. Use the same seed for a more controlled comparison.

Get started

Start using Broccoli Haircut in VS Code

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

Paste this into VS Code:

Set up VS Code

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