Sunshine ☀️

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

Sunshine only works for outdoor photos, indoor photos won't work.

Endpoint

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

Headers

NameTypeDescription

Authorization*

String

Bearer {{API_KEY}}

Request Body

NameTypeDescription

url*

String

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.

{
  "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"
}'

Results

Last updated