
RetinaFace ResNet-50
Finds every face in a photo and returns a box around each one with five landmarks, the eyes, the nose tip and the…
Fine-tunableYUNET_FACE_DETECTIONFast face detection that returns a box around every face in a photo and five landmarks, the eyes, the nose tip and the mouth corners.

YuNet by Shiqi Yu and the libfacedetection contributors, released under the MIT License, Copyright (c) 2020 Shiqi Yu; its training code is BSD-3-Clause.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | The picture: PNG, JPEG or WebP, at most 30 MB and 40 megapixels. 1–2048 characters · image/png, jpeg, webp |
score_threshold | number | No | 0.9 | Lowest score of a returned face, 0 to 1; higher returns fewer, surer faces. 0–1 |
max_faces | integer | No | 50 | The most faces to return, best first. 1–200 |
Output. JSON array, best first: [{"score": 0.99, "box": [x0, y0, x1, y1], "landmarks": [[x, y], ...]}], in pixels of the picture; landmarks: eyes, nose tip, mouth corners, left to right as seen. At most 200 faces.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=YUNET_FACE_DETECTION" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image": "https://example.com/input.png",
"max_faces": 50,
"score_threshold": 0.9
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"YUNET_FACE_DETECTION",
{
"image": "https://example.com/input.png",
"max_faces": 50,
"score_threshold": 0.9
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune YuNet Face Detection on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 1000 pictures and a manifest.jsonl: one line per picture, {"file", "faces": [{"box", "landmarks"}]} in pixels. More rules: Good to know, in the README.
The steps are in the docs.
Price per request: 0.0437 credits ($0.000437). The price is shown again before every run; all prices are on the pricing page.

Finds every face in a photo and returns a box around each one with five landmarks, the eyes, the nose tip and the…
Fine-tunable
Removes the background from a photo and returns the subject on a transparent background, or as a black-and-white mask.
Fine-tunable
Finds the clothes a person wears in a photo and returns a mask for the upper body, the lower body and full-body…
Fine-tunable
Splits a picture into its objects and regions, such as people, cars, sky and road, with a label and a mask for each one.
Fine-tunable
Removes the background from a photo with fine detail at hair and edges, and returns the subject on a transparent…
Fine-tunable
Estimates metric depth, surface normals and the camera's field of view from a single photo of any scene, indoors or out.
Fine-tunable