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.
Prompts to try with Image Editing Time of Day in opencode
Copy an example into opencode, or ask in your own words.
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
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Image Editing Time of Day
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/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.
Image Editing Time of Day providers and prices
Spiral runs Image Editing Time of Day through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Image Editing Time of Day works from your image URL and time of day. Ask opencode for any of these in your prompt.
| 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. |
| Number of inference steps | 1 to 50 | 30 | Number of inference steps for sampling. |
| Safety tolerance | 1 to 6 | 2 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| Output format | jpeg or 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 and 1 more | The aspect ratio of the generated image. | |
| Seed | a 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 · Time of Day is on its tool page: open its card above.
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.
More on Image Editing Time of Day and opencode
Overview
Image Editing Time of Day in other agents
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.
Start using Image Editing Time of Day in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


