POST
/
v3
/
async
/
adetailer
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": {},
    "sampler_name": "<string>",
    "image_assets_ids": [
      "<string>"
    ],
    "image_urls": [
      "<string>"
    ],
    "negative_prompt": "<string>",
    "seed": 123,
    "sd_vae": "<string>",
    "loras": [
      {
        "model_name": "<string>",
        "strength": {}
      }
    ],
    "embeddings": [
      {
        "model_name": "<string>"
      }
    ],
    "clip_skip": 123,
    "strength": {}
  }
}'
{
  "task_id": "<string>"
}

ADetailer features auto-detection, masking, and inpainting using a detection model.

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.

Request Headers

Content-Type
string
required

Enum: application/json

Authorization
string
required

Bearer authentication format, for example: Bearer {{API Key}}.

Request Body

extra
object

Optional extra parameters for the request.

request
object
required

Response

task_id
string

Use the task_id to request the Task Result API to retrieve the generated outputs.