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
For best results, we highly suggest the Enhanced option. It will deliver the best quality and the best accuracy. See examples
Endpoint
POST
https://europe-west1-gepettoai.cloudfunctions.net/v1/sunshine
Headers
Authorization*
String
Bearer {{API_KEY}}
Request Body
url*
String
Image URL of the outdoor to be sunshined.
Ex: https://img.freepik.com/premium-photo/abandoned-dilapidated-house-gloomy-sky_419341-152622.jpg
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"






Enhance mode "false"






Last updated
Was this helpful?