Relight
Based on ic-light by lllyasviel. Changes the background and light up the image based on the direction provided.
Tip
- Provide simple prompts to describe the background you need
- Input
- Output
https://api.imagepipeline.io/relight/v1
API-Key
{
"prompt": "sunset on the beach",
"negative_prompt": "cartoon,illustration,(low quality:2)",
"samples": 1, //Upto 4
"seed" : -1, //-1 will set the seed to a random number
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_zfdf0a8ed59e8666b89b10713_f117af872740fe30a_d20240608_m134333_c005_v0501011_t0058_u01717854213713",
"light": "top" //Options are "top", "bottom", "left", "right"
}
https://api.imagepipeline.io/relight/v1/status/{{id}}
API-Key
{
"download_urls": [
"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?..."
],
"status": "SUCCESS"
}
Status
Your response will include a status
.
- If the
status
=SUCCESS
, you will also havedownload_urls
that will have the links to your generated image based on the number of samples you have entered. The maximum number of samples that can be generated is 4. - If the
status
=PENDING
, you will receive aid
. You can use the status endpoint to fetch your image using theid
. - If the
status
=FAILURE
, you will receive only an error message.
Endpoint: [GET]
https://api.imagepipeline.io/relight/v1/status/{{id}}
Pass the API-Key as the authorization in the header.