Face Detect API

Model id: lumina/face-detect.

A chat model with a context window of 4K tokens, called through Hyperouter's OpenAI-compatible API.

Price

Prices per 1M tokens: input / cached input / output.

ModelContextPrice
lumina/face-detect4K$0.0013 per request

Call it with the OpenAI SDK

Set HYPEROUTER_API_KEY to an API key from the dashboard. Any OpenAI SDK works once its base URL is https://api.hyperouter.app/v1.

curl https://api.hyperouter.app/v1/chat/completions \
  -H "Authorization: Bearer $HYPEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "lumina/face-detect",
    "crop_heads": true,
    "messages": [
      {
        "content": [
          {
            "image_url": {
              "url": "https://example.com/photo.jpg"
            },
            "type": "image_url"
          }
        ],
        "role": "user"
      }
    ]
  }'

JPEG or PNG only (at most 5 MB, 3072 px on the longer side): a WebP is refused even under a .png name, so check what your CDN serves. message.content is a JSON string: parse it for faces[].corners, box, confidence and head_url.

Reference

Sign in with Google or GitHub, create an API key, and open a top-up ticket to add credits. You are charged at the provider's list price.