# GlianaAI Face Compare

> GlianaAI Face Compare is a paid API for AI agents from gliana-ai.glianalabs.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Compares two face images and returns a similarity score indicating whether they belong to the same person

## Facts

- Endpoint: GET https://gliana-ai.glianalabs.workers.dev/x402/tools/face-compare
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-face-compare-facd0b42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KSnvE7SCGoPKuOeMGHDgt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glianaai-face-compare-facd0b42
```

Example prompt: Can you compare these two face photos and tell me if they're the same person? Here's the first image: https://example.com/photo1.jpg and the second: https://example.com/photo2.jpg

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call face comparison with no signup friction, accepting both image URLs and base64 inputs. Ideal for AI agents performing quick identity checks, de-duplication of user photos, or verification workflows using USDC micropayments via x402.

## Known failure modes

- No face detected in one or both images — returns error indicating face not found
- Invalid or unreachable image URL — returns fetch or URL error
- Base64 image too large or malformed — returns payload error
- Images contain multiple faces — ambiguous match result or error
- Low-quality or obscured face image — low confidence score or failure
- Missing required body fields (a or b) — returns validation error

## How this service works

tools/face-compare: utility API on GlianaAI - pay-per-call, no signup, USDC. Input: { a:{image_url|image_base64}, b:{image_url|image_base64} }. Upload each image to /v1/media first for URLs; base64 only for small images. https://ai.glianalabs.com

## Output

Returns a similarity score (likely 0–1 or percentage) indicating how closely the two faces match, along with a boolean or categorical match result and confidence level

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-face-compare-facd0b42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gliana-ai.glianalabs.workers.dev](https://www.zero.xyz/host/gliana-ai.glianalabs.workers.dev/llms.txt)
