Relight
Relight
POST https://api.novita.ai/v3/relight
The Relight API helps you enhance or change the illumination of images.
Example
The Relight API helps you enhance or change the illumination of images.
Request:
curl --location --request POST 'https://api.novita.ai/v3/relight' \
--header 'Authorization: Bearer {{API Key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"extra": {
"response_image_type": "jpeg"
},
"model_name": "realisticVisionV40_v40VAE_81510.safetensors",
"prompt": "handsome man, realistic, sun and beach",
"negative_prompt": "(worst quality, low quality:1.2)",
"lighting_preference": "LEFT_LIGHT",
"image_file": "{{The base64 encoding of the input image}}",
"steps": 25,
"sampler_name": "DPM++ 2M Karras",
"seed": -1,
"strength": 0.9,
"guidance_scale": 6.5
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted. Code 400 means there is an error with the request parameters, while status codes in the 5xx range indicate internal server errors.
You can obtain the image URL in the image_file
field of the response in base64 format.
Response:
{
"image_file": "{{The base64 of the returned image_file}}",
"image_type": "jpeg"
}