Compare two faces
compare_facesCompare two faces from images or embeddings to determine whether they show the same person, returning face detection status, similarity score, and match result.
Instructions
Check whether two images (or embeddings) show the same person. Uses the best face on each side. Returns face_found, similarity (0-1, null when a side has no face), match and the threshold used. Each side is a public URL, a CDN key or a 512-number embedding. Costs 93 credits per image processed: 186 for two images, 93 for one image and one embedding, 93 for two embeddings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | No | Public URL of the first image. | |
| target_url | No | Public URL of the second image. | |
| source_gcs_key | No | CDN key of the first image. | |
| target_gcs_key | No | CDN key of the second image. | |
| idempotency_key | No | Optional. A retry that reuses the key is never charged twice: if the first call finished, the retry gets 409 duplicate_request_already_processed; if it is still running, 409 duplicate_request_in_flight. Use a new key for each different request. | |
| source_embedding | No | Embedding of the first face. | |
| target_embedding | No | Embedding of the second face. |