Seedream 5.0 Pro jest już LIVE | Wypróbuj w Generator obrazów →

Fibo Relight

bria /

Bria Relight modifies the lighting setup (direction and atmosphere) of an image. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-image
Wejście

Bezczynny

$0.04za uruchomienie·~25 / $1

Dalej:

PrzykładyZobacz wszystkie

Powiązane modele

README

Bria Fibo Relight

Bria Fibo Relight is an AI-powered image relighting model that transforms the lighting conditions of any photo. Choose from a wide variety of lighting styles — from golden sunrise to moonlit nights — and control the light direction for professional-quality results.

Why Choose This?

  • Extensive lighting options Over 10 distinct lighting styles covering all times of day and weather conditions.

  • Directional control Adjust light direction from front, side, bottom, or top-down.

  • Natural results AI understands scene structure for realistic lighting transformations.

  • Simple workflow Upload an image, select lighting style and direction, and get instant results.

  • Versatile applications Perfect for portraits, product photos, and creative projects.

Parameters

ParameterRequiredDescription
imageYesSource image to relight (URL or upload)
light_typeYesLighting style to apply (see options below)
light_directionNoLight direction: front, side, bottom, top-down

Lighting Options

Light TypeDescription
middayBright, overhead sunlight
blue hour lightCool, soft light just before sunrise/after sunset
low-angle sunlightWarm, dramatic light from a low sun angle
sunrise lightGolden, warm morning light
spotlight on subjectFocused dramatic lighting on the subject
overcast lightSoft, diffused cloudy day lighting
soft overcast daylight lightingGentle, even illumination
cloud-filtered lightingSubtle, filtered sunlight through clouds
fog-diffused lightingAtmospheric, misty lighting
moonlight lightingCool, bluish nighttime illumination
starlight nighttimeDim, ambient night lighting

And more.

How to Use

  1. Upload your image — provide the image you want to relight.
  2. Select light type — choose the desired lighting style.
  3. Set light direction (optional) — choose where the light comes from.
  4. Run — submit and download your relit image.

Pricing

OutputCost
Per image$0.04

Best Use Cases

  • Portrait Enhancement — Add golden hour glow or dramatic studio lighting to portraits.
  • Product Photography — Apply consistent, professional lighting to product shots.
  • Social Media Content — Create mood-specific visuals with different lighting styles.
  • Creative Projects — Transform daytime photos to nighttime scenes or vice versa.
  • Photo Correction — Fix poorly lit images with better lighting conditions.

Pro Tips

  • Combine "sunrise light" or "low-angle sunlight" with "side" direction for dramatic portraits.
  • Use "soft overcast daylight lighting" for even, flattering light on faces.
  • "Moonlight lighting" and "starlight nighttime" can transform daytime shots into night scenes.
  • "Spotlight on subject" creates professional studio-style lighting effects.
  • Experiment with different light directions to find the most flattering angle for your subject.

Notes

  • Both image and light_type are required fields.
  • Light direction defaults to a balanced setting if not specified.
  • Ensure uploaded image URLs are publicly accessible.
  • Works best with images that have clear subjects and defined backgrounds.

Related Models

Uwaga:Ta strona korzysta z modeli AI udostępnianych przez podmioty trzecie.

Fibo Relight API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/bria/fibo/relight with your input as JSON. The endpoint returns a prediction id. Start polling the result endpoint around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. On completed, read output values from data.outputs. Examples for Fibo Relight below.

HTTP example
set -euo pipefail

: "${WAVESPEED_API_KEY:?Set WAVESPEED_API_KEY}"

REQUEST_BODY=$(cat <<'JSON'
{
    "image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
    "light_type": "midday",
    "light_direction": "front"
}
JSON
)

# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
  -X POST "https://api.wavespeed.ai/api/v3/bria/fibo/relight" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d "$REQUEST_BODY")

TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
  printf 'Submission response did not contain a prediction id
' >&2
  exit 1
fi
RESULT_URL=$(printf '%s' "$TASK" | jq -r '.urls.get // empty')
if [ -z "$RESULT_URL" ]; then
  RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"
fi

# 2. Poll until the prediction finishes.
while true; do
  RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
    -H "Authorization: Bearer $WAVESPEED_API_KEY")
  RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
  STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
  case "$STATUS" in
    completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
    failed|cancelled|timeout) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
    created|processing) sleep 2 ;;
    *) printf 'Unexpected status: %s
' "$STATUS" >&2; exit 1 ;;
  esac
done
Node.js example
const submitUrl = "https://api.wavespeed.ai/api/v3/bria/fibo/relight";
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');

async function requestJson(url, options = {}) {
  const response = await fetch(url, options);
  if (!response.ok) throw new Error(await response.text());
  return response.json();
}

// 1. Submit the prediction.
const body = await requestJson(submitUrl, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
        "image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
        "light_type": "midday",
        "light_direction": "front"
}),
});
const task = body.data ?? body;
if (!task.id) throw new Error("Submission response did not contain a prediction id");
const resultUrl = task.urls?.get ||
  `https://api.wavespeed.ai/api/v3/predictions/${task.id}/result`;

// 2. Poll until the prediction finishes.
while (true) {
  const resultBody = await requestJson(resultUrl, {
    headers: { "Authorization": `Bearer ${apiKey}` },
  });
  const result = resultBody.data ?? resultBody;
  if (result.status === "completed") {
    console.log(result.outputs);
    break;
  }
  if (["failed", "cancelled", "timeout"].includes(result.status)) throw new Error(JSON.stringify(result));
  if (!["created", "processing"].includes(result.status)) throw new Error("Unexpected status: " + result.status);
  await new Promise(resolve => setTimeout(resolve, 2000));
}
Python example
import json
import os
import time
from urllib.request import Request, urlopen

api_key = os.environ["WAVESPEED_API_KEY"]
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
payload = {
    "image": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/painted-hand-298-332.jpg",
    "light_type": "midday",
    "light_direction": "front"
}

def request_json(url, data=None):
    request = Request(url, data=data, headers=headers, method="POST" if data else "GET")
    with urlopen(request) as response:
        return json.load(response)

# 1. Submit the prediction.
body = request_json("https://api.wavespeed.ai/api/v3/bria/fibo/relight", json.dumps(payload).encode())
task = body.get("data", body)
if not task.get("id"):
    raise RuntimeError("Submission response did not contain a prediction id")
result_url = task.get("urls", {}).get("get") or f"https://api.wavespeed.ai/api/v3/predictions/{task['id']}/result"

# 2. Poll until the prediction finishes.
while True:
    result_body = request_json(result_url)
    result = result_body.get("data", result_body)
    status = result.get("status")
    if status == "completed":
        print(result.get("outputs", []))
        break
    if status in {"failed", "cancelled", "timeout"}:
        raise RuntimeError(result)
    if status not in {"created", "processing"}:
        raise RuntimeError(f"Unexpected status: {status}")
    time.sleep(2)

Fibo Relight API — Frequently asked questions

What is the Fibo Relight API?

Fibo Relight is a Bria model for image editing, exposed as a REST API on WaveSpeedAI. Bria Relight modifies the lighting setup (direction and atmosphere) of an image. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Fibo Relight API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates production-oriented Python, JavaScript, and cURL examples with timeouts, transient-error handling, and safe GET retries. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/bria/bria-fibo-relight.

How much does Fibo Relight cost per run?

Fibo Relight starts at $0.040 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Fibo Relight accept?

Key inputs: `image`, `light_direction`, `light_type`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/bria/bria-fibo-relight.

How long does Fibo Relight take to generate?

Median end-to-end generation time on WaveSpeedAI is around 24 seconds per request, based on recent successful runs. Queue time varies with global demand; live status is visible in the prediction record.

Can I use Fibo Relight outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Bria). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.

Fibo Relight | Fast Image Editing API | WaveSpeedAI