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

Codex · Image

How to Use fal Hair Change in Codex

fal Hair Change edits hairstyles in an existing image, including a completely bald look. Its focus is hair experimentation with natural lighting and realistic results.

Prompts to try with fal Hair Change in Codex

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

Use fal Hair Change on the portrait in this project's assets folder to try a chin-length bob with blunt bangs. Save the result beside the original for review.

fal Hair ChangeCodex
Try asking
  • Use fal Hair Change on our demo portrait to create a bald look. Add it to the hairstyle comparison page and label the requested edit.

  • Use fal Hair Change to make three separate edits of the project's reference portrait: a pixie cut, shoulder-length waves, and long straight hair. Start each from the original and label the results.

  • Use fal Hair Change on the project's sample portrait with the prompt 'short curls with a side part.' Save the prompt and returned seed alongside the image for a repeatability check.

  • Use fal Hair Change to test two guidance values on the same project portrait with the same hairstyle prompt. Build a comparison view so I can inspect prompt adherence and unintended changes.

How to set up fal Hair Change in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 fal Hair Change

    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/hair-change",
        "input": {
          "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
        }
      }'

Then paste one of the prompts above: Codex finds fal Hair Change on Spiral, shows the price and runs it.

fal Hair Change providers and prices

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

falImage
Image Editing Hair Change
fal-ai/image-editing/hair-change

Settings you can ask for

fal Hair Change works from your image URL and hair style prompt. Ask Codex 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.

Safety tolerance1 to 62

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

Output formatjpeg or pngjpeg

The format of the generated image.

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.

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 Hair Change is on its tool page: open its card above.

What can you do with fal Hair Change in Codex?

Create hairstyle comparison assets from portraits in your project. Save each result beside its prompt so you can review the requested look against the edit.

Haircut consultation

Try a bob, pixie cut, and shoulder-length cut on the same portrait before discussing the choices with a stylist.

Bald look preview

Request a bald edit of a portrait to explore a different appearance before shaving.

Bangs comparison

Compare blunt bangs and side-swept bangs on one portrait. Request the same hair length in both edits.

Character appearance studies

Start with a character portrait and explore short curls, a close crop, or long straight hair for an appearance board.

Photo shoot planning

Use a subject's reference portrait to explore hairstyle directions before a portrait or fashion shoot.

Hairstyle comparison content

Create labeled hairstyle examples from a source portrait for a haircut guide. Inspect each edit before publishing.

Questions about fal Hair Change in Codex

Can Codex use fal Hair Change?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run fal Hair Change like any built-in tool.

How much does fal Hair Change cost in Codex?

$0.052 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use fal Hair Change in Codex?

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

How long does it take to set up fal Hair Change in Codex?

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

Does Codex wait while fal Hair Change runs?

fal Hair Change runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

What is fal Hair Change useful for?

It changes hairstyles in an existing image. Try it for haircut previews, salon consultation images, or character appearance studies.

Can fal Hair Change preview a bald look?

Yes. Bald looks are explicitly included in fal's description, so a direct instruction such as “bald” is a supported starting point.

How should I describe a hairstyle?

Write a concrete target such as “chin-length bob with blunt bangs.” As a practical comparison method, change one detail at a time, such as length or part placement.

Does fal Hair Change aim for realistic results?

fal describes natural lighting and realistic results as its goals. Review the hairline, face, and background before choosing an edit.

How can I repeat an edit?

Keep the source image and settings unchanged, and reuse the same prompt and seed. fal documents repeatability for the same seed, prompt, and model version.

Get started

Start using fal Hair Change in Codex

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

Paste this into Codex:

Set up Codex

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