[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Image Editing Time of Day](https://spiral.ai/integrations/opencode/image-editing-time-of-day)

# How to Use Image Editing Time of Day in opencode

Image Editing Time of Day changes an existing photo's lighting and atmosphere to match a requested time. Use it to explore golden-hour or midnight treatments of a scene.

|  |  |
| --- | --- |
| Model | Image Editing Time of Day |
| 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 Image Editing Time of Day in opencode

- Use Image Editing Time of Day on the homepage's existing exterior photo to make a golden-hour treatment. Save it beside the original for review.
- Use Image Editing Time of Day on the location photo in this project to create a midnight treatment. Make a comparison page showing the original and edit.
- Use Image Editing Time of Day to make golden-hour and midnight treatments of the project's landscape image. Label each result with its requested time.
- Use Image Editing Time of Day on the terrace photo in the assets directory with the instruction 'golden hour, warm low sunlight.' Keep the original available in the preview.
- Use Image Editing Time of Day on our environment reference image to compare two guidance settings with the same golden-hour prompt. Show the results side by side.

## How to set up Image Editing Time of Day 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.

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

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

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

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Image Editing Time of Day**: 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": "fal-ai/image-editing/time-of-day",
    "input": {
      "image_url": "https://v3.fal.media/files/zebra/hAjCkcyly4gsS9-cptD3Y_image%20(20).png"
    }
  }'
```

Then paste one of the prompts above: opencode finds Image Editing Time of Day on Spiral, shows the price and runs it.

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

## Image Editing Time of Day tools and prices

- [Image Editing · Time of Day](https://spiral.ai/tools/fal/fal-ai/image-editing/time-of-day) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| guidance_scale | 0 to 20 | 3.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. |
| num_inference_steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| output_format | jpeg, png | jpeg | The format of the generated image. |
| aspect_ratio | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 | — | The aspect ratio of the generated image. |
| seed |  | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |

## What can you do with Image Editing Time of Day in opencode?

Create time-of-day treatments of scene images in your project for design reviews. Ask the coding agent to organize the results beside the originals so you can compare lighting and inspect details.

### Property exterior lighting studies

Use an existing exterior photo to explore golden-hour and midnight treatments before choosing a presentation image.

### Hotel and resort photo treatments

Try different times of day on an existing hotel, pool, or terrace photo to compare the atmosphere for a travel campaign.

### Film location mood studies

Relight a location photo for golden hour and midnight to help discuss the intended look of a scene.

### Landscape photo experiments

Explore how a landscape photo reads under different time-of-day lighting, then compare each edit with the original.

### Outdoor campaign concepts

Test golden-hour lighting on an existing outdoor campaign photo before deciding which treatment suits the creative brief.

### Game environment references

Use a scene image to explore day and night lighting references for an environment art discussion.

## Overview

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

## Image Editing Time of Day in other agents

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

## More opencode guides

- [Image Editing Reframe](https://spiral.ai/integrations/opencode/image-editing-reframe)
- [Image to SVG](https://spiral.ai/integrations/opencode/image-to-svg)
- [Image Editing Realism](https://spiral.ai/integrations/opencode/image-editing-realism)
- [Juggernaut Flux Base](https://spiral.ai/integrations/opencode/juggernaut-flux-base)
- [Image Background Remover](https://spiral.ai/integrations/opencode/image-background-remover)
- [Juggernaut Flux Base Image to Image](https://spiral.ai/integrations/opencode/juggernaut-flux-base-image-to-image)

## Questions about Image Editing Time of Day in opencode

**Can opencode use Image Editing Time of Day?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Image Editing Time of Day like any built-in tool.

**How much does Image Editing Time of Day 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 Image Editing Time of Day in opencode?**

No. Spiral runs Image Editing Time of Day on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Image Editing Time of Day in opencode?**

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

**Does opencode wait while Image Editing Time of Day runs?**

Image Editing Time of Day runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Image Editing Time of Day useful for?**

It changes the lighting and atmosphere of an existing photo to match a requested time. Try it when comparing daytime and nighttime treatments of the same scene.

**Can Image Editing Time of Day turn a photo into a nighttime scene?**

Yes. The official description explicitly includes midnight as a target, alongside golden hour.

**What should I write in the prompt?**

Describe the time you want the scene to show. Start with a direct instruction such as "golden hour," then test a more specific description of the desired light.

**Which setting matters for following my lighting description?**

Guidance controls how closely Image Editing Time of Day follows the prompt. When comparing guidance settings, keep the source photo and wording unchanged so you can judge the difference.

**How should I review a time-of-day edit?**

Compare the result with the original, checking scene details as well as the new lighting. For a property or product photo, inspect shapes, signs, and colors before choosing an edit.

