# RelayStation Face Detection API

> RelayStation Face Detection API is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Detects faces in an image and returns attributes including age range, emotions, pose, and facial landmarks using AWS Rekognition.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/vision/detect-faces
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-face-detection-api-0dfb5b8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aJSmWKq-KUFCzjIhes_lt

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 relaystation-face-detection-api-0dfb5b8c -d '<json body>'
```

Example prompt: Analyze this photo and tell me how many faces are detected, their estimated age ranges, what emotions they appear to be showing, and their facial poses.

## When to prefer this

Choose this endpoint when you need structured facial attribute data (age, emotion, pose, landmarks) from AWS Rekognition at a low per-image cost of $0.005. Prefer it over generic object detection when the specific need is face-centric analysis. It's ideal for agents automating photo moderation, audience analytics, identity pre-screening, or UX research pipelines.

## Known failure modes

- No faces detected in the image — returns empty face list
- Image URL unreachable or invalid — returns 4xx error
- Image format unsupported — returns error indicating accepted formats
- Image too large or too small — returns size constraint error
- Payment insufficient — x402 payment required response
- Low-confidence detections returned when faces are partially obscured

## How this service works

$0.005/image. Detect faces with attributes — age range, emotions, pose, landmarks (Rekognition). 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a list of detected faces, each with a bounding box, estimated age range (min/max), detected emotions with confidence scores, facial pose (pitch, roll, yaw), and facial landmark coordinates (eyes, nose, mouth, etc.).

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      },
      "attributes": {
       "type": "string",
       "enum": [
        "DEFAULT",
        "ALL"
       ]
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-face-detection-api-0dfb5b8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
