curl --request POST \
--url https://api.novita.ai/v3/async/adetailer \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"extra": {
"response_image_type": "<string>",
"webhook": {
"url": "<string>",
"test_mode": {
"enabled": true,
"return_task_status": "<string>"
}
},
"custom_storage": {
"aws_s3": {
"region": "<string>",
"bucket": "<string>",
"path": "<string>",
"save_to_path_directly": true
}
},
"enterprise_plan": {
"enabled": true
},
"enable_nsfw_detection": true,
"nsfw_detection_level": 123
},
"request": {
"model_name": "<string>",
"prompt": "<string>",
"steps": 123,
"guidance_scale": 123,
"sampler_name": "<string>",
"image_assets_ids": [
"<string>"
],
"image_urls": [
"<string>"
],
"negative_prompt": "<string>",
"seed": 123,
"sd_vae": "<string>",
"loras": [
{
"model_name": "<string>",
"strength": 123
}
],
"embeddings": [
{
"model_name": "<string>"
}
],
"clip_skip": 123,
"strength": {}
}
}
'{
"task_id": "<string>"
}curl --request POST \
--url https://api.novita.ai/v3/async/adetailer \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"extra": {
"response_image_type": "<string>",
"webhook": {
"url": "<string>",
"test_mode": {
"enabled": true,
"return_task_status": "<string>"
}
},
"custom_storage": {
"aws_s3": {
"region": "<string>",
"bucket": "<string>",
"path": "<string>",
"save_to_path_directly": true
}
},
"enterprise_plan": {
"enabled": true
},
"enable_nsfw_detection": true,
"nsfw_detection_level": 123
},
"request": {
"model_name": "<string>",
"prompt": "<string>",
"steps": 123,
"guidance_scale": 123,
"sampler_name": "<string>",
"image_assets_ids": [
"<string>"
],
"image_urls": [
"<string>"
],
"negative_prompt": "<string>",
"seed": 123,
"sd_vae": "<string>",
"loras": [
{
"model_name": "<string>",
"strength": 123
}
],
"embeddings": [
{
"model_name": "<string>"
}
],
"clip_skip": 123,
"strength": {}
}
}
'{
"task_id": "<string>"
}This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the image generation results.
application/jsonShow properties
png, webp, jpegShow properties
Show properties
TASK_STATUS_SUCCEED, TASK_STATUS_FAILEDShow properties
Show properties
Show properties
0, 1, 2Hide properties
, . Range [1, 1024].Euler a, Euler, LMS, Heun, DPM2, DPM2 a, DPM++ 2S a, DPM++ 2M, DPM++ SDE, DPM fast, DPM adaptive, LMS Karras, DPM2 Karras, DPM2 a Karras, DPM++ 2S a Karras, DPM++ 2M Karras, DPM++ SDE Karras, DDIM, PLMS, UniPC, . Range [1, 1024].Show properties
Show properties
strength indicates the degree to which the reference image_base64 should be transformed. It must be between 0 and 1. input_images will be used as a starting point, with increasing levels of noise added as the strength value increases. The number of denoising steps depends on the amount of noise initially added. When strength is 1, added noise will be at its maximum, and the denoising process will run for the full number of iterations specified in steps. A value of 1, therefore, essentially ignores input_images.Was this page helpful?