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

opencode · Image

How to Use Fibo Edit Relight in opencode

Fibo Edit Relight changes the lighting in an existing photo, including light direction, atmosphere, and harsh shadows. Use it when the scene already works and you want to test a different lighting treatment.

Prompts to try with Fibo Edit Relight in opencode

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

Use Fibo Edit Relight on the product photo in this project's assets. Create a side-lit version with low-angle sunlight, save it separately, and add an original-versus-edit comparison to the preview page.

Fibo Edit Relightopencode
Try asking
  • Use Fibo Edit Relight on the portrait used on our About page. Compare front and side lighting with the same sunrise treatment, and show both results beside the original.

  • Use Fibo Edit Relight on our outdoor hero photo to create a blue hour treatment with light from the side. Put the result in a local preview so I can review it in the page layout.

  • Use Fibo Edit Relight on the room photo in our assets with low-angle sunlight from the front. Save the output separately and make a comparison view for checking furniture edges and shadows.

  • Use Fibo Edit Relight on the featured product image with a spotlight on the subject from above. Add the result to a review page beside the original, with space to record any changes to the label or product shape.

How to set up Fibo Edit Relight in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 Fibo Edit Relight

    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": "bria/fibo-edit/relight",
        "input": {
          "image_url": "https://bria-datasets.s3.us-east-1.amazonaws.com/Liza/bria_result+-+2026-01-13T095546.173.png",
          "light_direction": "front",
          "light_type": "midday"
        }
      }'

Then paste one of the prompts above: opencode finds Fibo Edit Relight on Spiral, shows the price and runs it.

Fibo Edit Relight providers and prices

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

falImage

Settings you can ask for

Fibo Edit Relight works from your image URL. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Light directionfront, side, bottom, or top-down

Where the light comes from.

Light typemidday, blue hour light, low-angle sunlight, sunrise light, spotlight on subject, overcast light, soft overcast daylight lighting, cloud-filtered lighting and 5 more

The quality/style/time of day.

Every API field of Fibo Edit Relight · Image to Image is on its tool page: open its card above.

What can you do with Fibo Edit Relight in opencode?

Create lighting alternatives for photos used in your project. Your coding agent can organize the results beside the originals and build a comparison view for review.

Product photo lighting tests

Try side lighting and a subject spotlight on an existing product photo. Compare how each treatment presents the product before choosing an image for a listing.

Portrait lighting studies

Relight an existing portrait to compare frontal and side lighting. Review facial detail and shadows against the original before selecting a treatment.

Outdoor campaign concepts

Use an existing outdoor photo to explore sunrise and blue hour lighting for a campaign mood board.

Interior lighting concepts

Test low-angle sunlight on a room photo to explore a different lighting treatment. Use the result as a visual concept for review.

Food photo lighting comparisons

Compare front and side lighting on an existing dish photo. Review highlights, shadows, and visible food detail before choosing an editorial image.

Scene mood exploration

Relight a location photo with sunrise and blue hour treatments to compare moods for a storyboard or creative brief.

Questions about Fibo Edit Relight in opencode

Can opencode use Fibo Edit Relight?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Fibo Edit Relight like any built-in tool.

How much does Fibo Edit Relight cost in opencode?

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

Do I need a fal account to use Fibo Edit Relight in opencode?

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

How long does it take to set up Fibo Edit Relight in opencode?

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

Does opencode wait while Fibo Edit Relight runs?

Fibo Edit Relight runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

What is Fibo Edit Relight best for?

Use it when you like an existing photo's scene but want different lighting. It changes light direction and atmosphere, making it useful for testing a new treatment before deciding on a reshoot.

Can Fibo Edit Relight soften harsh shadows?

Yes. Softening harsh shadows is one of its documented uses; compare the result with the original to decide whether the treatment suits the photo.

How should I describe a relighting request?

Name the lighting treatment and where the light should come from, such as sunrise light from the side. Keep the request focused, and tell your agent which details to check against the original afterward.

When should I choose Fibo Edit Relight over a broader image edit?

Choose it when lighting is the change you need and the existing scene already works. Keep requests for changes to objects, layout, or artistic style separate from the relighting brief.

How can I compare lighting treatments fairly?

Start each edit from the same original photo and change one lighting decision at a time. Compare subject detail, shadows, and the overall mood before choosing a result.

Get started

Start using Fibo Edit Relight in opencode

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

Paste this into opencode:

Set up opencode

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