How to Use Broccoli Haircut in Muse 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 Muse Code
Copy an example into Muse Code, or ask in your own words.
Use Broccoli Haircut on the sample portrait in this project and save the result beside the original.
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 Muse Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Install Muse Code
curl -fsSL https://dev.meta.ai/install.sh | bash
- Ask Muse to add the server
Start muse and ask:
Add the Spiral MCP server at https://api.spiral.ai/mcp
- Sign in
In your terminal, run:
muse mcp login spiral
Use the Spiral skill
- Send Muse Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: Muse 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.
Settings you can ask for
Broccoli Haircut works from your image URL. Ask Muse Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Guidance scale | 0 to 20 | 3.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 steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| LoRA scale | 0 to 4 | 1 | The scale factor for the LoRA model. Controls the strength of the LoRA effect. |
| Seed | a 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 Muse 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.
More on Broccoli Haircut and Muse Code
Overview
Broccoli Haircut in other agents
Questions about Broccoli Haircut in Muse Code
Can Muse Code use Broccoli Haircut?
Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Broccoli Haircut like any built-in tool.
How much does Broccoli Haircut cost in Muse 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 Muse Code plan is separate.
Do I need a fal account to use Broccoli Haircut in Muse 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 Muse Code?
About two minutes: install Muse Code, then ask Muse to add the server, then sign in.
Does Muse Code wait while Broccoli Haircut runs?
Broccoli Haircut runs in the background. Muse 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.
Start using Broccoli Haircut 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 https://spiral.ai/SKILL.md


