Face refiner
POST/v2/artworks/face-refiner
Clean up and sharpen faces in an image. Useful when a generated photo has good composition but the faces need an extra pass to look right.
Request
- application/json
Body
required
URL of the source image to refine.
Possible values: [tengrai-20231128-m-d.safetensors, tengrai-20240423-m-f.safetensors]
Possible values: >= 1 and <= 5
Default value: 3
Denoising strength level from 1 (very subtle) to 5 (extreme). Controls how much the face is refined.
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Responses
- 202
- 400
- 401
- 403
- 429
- 500
Response indicating that the artwork was successfully created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [face_refiner]
parameters
object
required
URL of the source image to refine.
Possible values: [tengrai-20231128-m-d.safetensors, tengrai-20240423-m-f.safetensors]
Possible values: >= 1 and <= 5
Default value: 3
Denoising strength level from 1 (very subtle) to 5 (extreme). Controls how much the face is refined.
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Possible values: [starting, processing, succeeded, failed, canceled]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"artworkType": "face_refiner",
"parameters": {
"imageUrl": "string",
"model": "tengrai-20231128-m-d.safetensors",
"denoising": 3,
"webhook": "string"
},
"duration": 0,
"results": [
"string"
],
"status": "starting",
"createdAt": "2024-07-29T15:51:28.071Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}