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

Codex · Image

How to Use fal Style Transfer in Codex

fal Style Transfer turns an existing photo into an artistic interpretation. Describe the look you want, such as Van Gogh's Starry Night, to explore a different treatment of your image.

Prompts to try with fal Style Transfer in Codex

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

Use fal Style Transfer on the homepage photo in this project with the style brief: watercolor, loose washes, visible paper texture, muted forest greens. Save the result separately and show it in a local preview.

fal Style TransferCodex
Try asking
  • Use fal Style Transfer on the existing author portrait to explore a charcoal drawing treatment. Place the result beside the original in a temporary review page.

  • Use fal Style Transfer on the travel photo used by the article template. Request a vintage painted postcard treatment, then preview it in the current article layout.

  • Use fal Style Transfer on the project's cover photo three times with separate style briefs: woodcut, watercolor, and oil painting. Save each result with its brief and build a comparison page.

  • Use fal Style Transfer on the existing landing page photo with one fixed style brief and seed. Compare two guidance settings in a local preview and record the settings beside each result.

How to set up fal Style Transfer 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 Style Transfer

    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/style-transfer",
        "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 Style Transfer on Spiral, shows the price and runs it.

fal Style Transfer providers and prices

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

falImage
Image Editing Style Transfer
fal-ai/image-editing/style-transfer

Settings you can ask for

fal Style Transfer works from your image URL and 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 Style Transfer is on its tool page: open its card above.

What can you do with fal Style Transfer in Codex?

Turn project photos into artistic image studies for a website or app. A coding agent can compare the results in your layout and keep the chosen style brief with the project.

Illustrated article images

Try an ink or watercolor treatment on an existing editorial photo, then review it alongside the article before choosing the final image.

Portrait art studies

Explore charcoal, oil paint, and watercolor treatments of the same portrait. Compare how each treatment handles the face before selecting one.

Travel postcard concepts

Restyle a destination photo as a painted postcard concept. Add the location name and other typography during layout.

Cover artwork studies

Use an existing photo to explore artistic directions for a podcast, playlist, or book cover. Review the image before adding the title.

Campaign art direction

Apply several written style briefs to one approved campaign photo. Use the results to discuss palette, texture, and medium before committing to a direction.

Website image treatments

Try a painted or illustrated treatment of an existing website photo. Compare it in the actual page layout before replacing the original.

Questions about fal Style Transfer in Codex

Can Codex use fal Style Transfer?

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

How much does fal Style Transfer 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 Style Transfer in Codex?

No. Spiral runs fal Style Transfer 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 Style Transfer in Codex?

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

Does Codex wait while fal Style Transfer runs?

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

What is fal Style Transfer useful for?

It applies an artistic treatment to an existing photo. Try it for illustrated article images, portrait studies, or postcard concepts.

Can fal Style Transfer create a Van Gogh-inspired look?

Yes. The maker specifically names Van Gogh's Starry Night as an example of a style you can request.

How should I describe the style I want?

Write a style brief: name the medium, describe the texture, and specify a palette. For example, try watercolor with loose washes, visible paper texture, and muted greens.

What does guidance change?

Guidance controls how closely the model follows your written prompt. When testing it, keep the source photo and style description unchanged so you can judge the effect.

Can I reproduce a result?

fal documents the same output for the same seed, prompt, and model version. Keep the source image and all other settings unchanged when repeating a result.

Get started

Start using fal Style Transfer 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