[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Fibo Edit Relight](https://spiral.ai/integrations/codex/fibo-edit-relight)

# How to Use Fibo Edit Relight in Codex

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.

|  |  |
| --- | --- |
| Model | Fibo Edit Relight |
| Available through | fal |
| Category | Image |
| Price | $0.052 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Fibo Edit Relight in Codex

- 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.
- 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 Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
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.

```bash
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.

```bash
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.

```bash
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: Codex finds Fibo Edit Relight on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Fibo Edit Relight tools and prices

- [Fibo Edit Relight · Image to Image](https://spiral.ai/tools/fal/bria/fibo-edit/relight) (fal): $0.052 per image.

## What can you do with Fibo Edit Relight in Codex?

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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Fibo Edit Relight in other agents

- [Amp](https://spiral.ai/integrations/amp/fibo-edit-relight)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/fibo-edit-relight)
- [Claude](https://spiral.ai/integrations/claude-desktop/fibo-edit-relight)
- [Claude Code](https://spiral.ai/integrations/claude-code/fibo-edit-relight)
- [Cline](https://spiral.ai/integrations/cline/fibo-edit-relight)
- [Cursor](https://spiral.ai/integrations/cursor/fibo-edit-relight)
- [Devin](https://spiral.ai/integrations/devin/fibo-edit-relight)
- [dots](https://spiral.ai/integrations/dots/fibo-edit-relight)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/fibo-edit-relight)
- [Gemini](https://spiral.ai/integrations/gemini/fibo-edit-relight)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/fibo-edit-relight)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/fibo-edit-relight)
- [goose](https://spiral.ai/integrations/goose/fibo-edit-relight)
- [Grok](https://spiral.ai/integrations/grok/fibo-edit-relight)
- [Grok Build](https://spiral.ai/integrations/grok-build/fibo-edit-relight)
- [Hermes](https://spiral.ai/integrations/hermes/fibo-edit-relight)
- [Instinct](https://spiral.ai/integrations/instinct/fibo-edit-relight)
- [Manus](https://spiral.ai/integrations/manus/fibo-edit-relight)
- [Muse](https://spiral.ai/integrations/muse/fibo-edit-relight)
- [Muse Code](https://spiral.ai/integrations/muse-code/fibo-edit-relight)
- [n8n](https://spiral.ai/integrations/n8n/fibo-edit-relight)
- [Notion](https://spiral.ai/integrations/notion/fibo-edit-relight)
- [OpenClaw](https://spiral.ai/integrations/openclaw/fibo-edit-relight)
- [opencode](https://spiral.ai/integrations/opencode/fibo-edit-relight)
- [Perplexity](https://spiral.ai/integrations/perplexity/fibo-edit-relight)
- [Raycast](https://spiral.ai/integrations/raycast/fibo-edit-relight)
- [VS Code](https://spiral.ai/integrations/vscode/fibo-edit-relight)
- [Windsurf](https://spiral.ai/integrations/windsurf/fibo-edit-relight)
- [Zapier](https://spiral.ai/integrations/zapier/fibo-edit-relight)

## More Codex guides

- [Fibo Edit Erase by Text](https://spiral.ai/integrations/codex/fibo-edit-erase-by-text)
- [Fibo Edit Replace Object by Text](https://spiral.ai/integrations/codex/fibo-edit-replace-object-by-text)
- [Fibo Edit Colorize](https://spiral.ai/integrations/codex/fibo-edit-colorize)
- [Fibo Edit Reseason](https://spiral.ai/integrations/codex/fibo-edit-reseason)
- [Fibo Edit Blend](https://spiral.ai/integrations/codex/fibo-edit-blend)
- [Fibo Edit Restore](https://spiral.ai/integrations/codex/fibo-edit-restore)

## Questions about Fibo Edit Relight in Codex

**Can Codex use Fibo Edit Relight?**

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

**How much does Fibo Edit Relight 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 Fibo Edit Relight in Codex?**

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 Codex?**

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

**Does Codex wait while Fibo Edit Relight runs?**

Fibo Edit Relight runs in the background. Codex 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.

