Sunshine ☀️

Sunshine allows you to refresh the sky of your outdoors when your pictures when taken during gloomy day. 🌧️

💵 Credit Cost

You have two options:

  • Enhanced sunshine : 2 credits

    • Ultra realistic sky with surroundings modification

    • Works for outdoor and indoor photos

  • Regular sunshine: 1 credit

    • Basic sky modification and do not affect the surroundings

    • Only works for outdoor photos

Endpoint

POST https://europe-west1-gepettoai.cloudfunctions.net/v1/sunshine

Headers

Name
Type
Description

Authorization*

String

Bearer {{API_KEY}}

Request Body

Name
Type
Description

skyId*

String

The sky ID that can be fetched on the Get Skies endpoint. sunny, sunrise, sunset, sunset_rose

webhook

String

(optional) Webhook POST URL to send the result on completion. If not provided, the request will wait for the result.

enhanced

(True / False)

(recommended)

Default to false.

Will use to enhanced mode to deliver an ultra realistic sky modification with advanced effects on the environment. (works for both indoors and outdoors photos) Cost: 2 credits

{
  "base64": "<base64 encoded image>",
  "status": "success"
}

Code Examples

curl --location 'https://europe-west1-gepettoai.cloudfunctions.net/v1/sunshine' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "url": "https://img.freepik.com/premium-photo/abandoned-dilapidated-house-gloomy-sky_419341-152622.jpg",
  "skyId": "sunny",
  "enhanced": true
}'

Results

Enhanced mode "true"

Original photo
Sunny (enhanced) + Upscale
Sunset (enhanced) + Upscale
Sunrise (enhanced) + Upscale
Original photo
Sunset (enhanced) + Upscale

Enhance mode "false"

BEFORE
AFTER SUNRISE + UPSCALE
BEFORE
AFTER SUNNY + UPSCALE
BEFORE
AFTER SUNNY + UPSCALE

Last updated

Was this helpful?