Replace Sky
Replace Sky
POST https://api.novita.ai/v3/replace-sky
Replace the sky in images with bluesky, sunset, sunrise, or galaxy based on your prompt.
Example
This API allows you to replace the sky in images with bluesky, sunset, sunrise, or galaxy based on your prompt.
Try it in the playground.
Request:
curl --location --request POST 'https://api.novita.ai/v3/replace-sky' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_file": "{{Base64 encoded image}}",
"sky": "sunrise"
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted. A code of 400 means there is an error with the request parameters, while status codes in the 5xx range indicate internal server errors.
You can find the image URL in the image_file
of the response in base64 format.
Response:
{
"image_file": "{{Base64 encoded image}}",
"image_type": "png"
}