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

Claude Code · Image

How to Use Solarize in Claude Code

Solarize turns an existing image into a color effect by inverting pixel values above a threshold. Use it for experimental photo treatments, poster artwork, and cover concepts where altered colors are part of the design.

Prompts to try with Solarize in Claude Code

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

Use Solarize on the concert photo in this project's assets at thresholds 0.25, 0.5, and 0.75. Build a local comparison page with the original and labeled results.

SolarizeClaude Code
Try asking
  • Use Solarize on the existing cover photo at threshold 0.5. Add the result as an alternate image in the album cover preview so I can compare both treatments.

  • Use Solarize on the project's editorial portrait at thresholds 0.4 and 0.7. Show both beside the original in the article mockup.

  • Use Solarize to create threshold 0.5 copies of the sample training images in this repository. Keep the originals and write a manifest linking each result to its source.

  • Use Solarize on the campaign photo at thresholds 0.3, 0.5, and 0.8. Put each result into the existing banner preview and label the threshold outside the artwork.

How to set up Solarize in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude 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 Solarize

    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/post-processing/solarize",
        "input": {
          "image_url": "https://storage.googleapis.com/falserverless/web-examples/post-process/postpro-input.jpg"
        }
      }'

Then paste one of the prompts above: Claude Code finds Solarize on Spiral, shows the price and runs it.

Solarize providers and prices

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

falImage
Post Processing Solarize
fal-ai/post-processing/solarize

Settings you can ask for

Solarize works from your image URL. Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Solarize threshold0 to 10.5

Solarize threshold

Every API field of Post Processing Solarize is on its tool page: open its card above.

What can you do with Solarize in Claude Code?

Create solarized artwork from project images and compare treatments in context. A coding agent can organize the results into a review page and record the threshold used for each image.

Concert poster artwork

Try solarization on a performance photo to develop a poster image. Compare several thresholds before adding the event title and dates.

Album cover concepts

Explore partially inverted treatments of an existing portrait or landscape for an album cover. Keep the original alongside the experiments for review.

Experimental editorial portraits

Use solarization for a deliberately altered portrait treatment. Review faces closely when choosing which threshold to keep.

Social campaign artwork

Develop solarized photo treatments for a campaign where altered colors fit the brief. Test the chosen threshold on each source image before approving the set.

Photography lessons

Show an original photo beside several solarized copies to demonstrate how the threshold changes which pixel values are inverted.

Image augmentation experiments

Create solarized copies of training images to test a model's response to altered colors. Keep them labeled separately and measure their effect on validation results.

Questions about Solarize in Claude Code

Can Claude Code use Solarize?

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

How much does Solarize cost in Claude Code?

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

Do I need a fal account to use Solarize in Claude Code?

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

How long does it take to set up Solarize in Claude Code?

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

Does Claude Code wait while Solarize runs?

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

What does Solarize do to an image?

Solarize inverts pixel values above a chosen threshold. Use it to explore partially inverted color treatments on an existing image.

Does a higher threshold mean a stronger effect?

A higher threshold restricts inversion to higher pixel values. By the documented rule, lowering the threshold makes more values eligible for inversion, so treat it as a cutoff rather than an intensity slider.

How should I prompt Solarize?

Tell your agent which image to process and which thresholds to compare. Solarize itself uses an image and a threshold; its documented schema has no descriptive text prompt.

Is Solarize suitable for accurate product colors or natural skin tones?

Avoid it when matching the original colors matters, since inversion deliberately changes pixel values. For creative portraits or product artwork, compare the result with the original before choosing a treatment.

How do I choose a useful threshold?

Try 0.25, 0.5, and 0.75 on separate copies of the original, then compare them side by side. This is a practical starting experiment, not a prescribed setting for every image.

Get started

Start using Solarize in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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