AI and agents
deepface.dev publishes agent-facing docs through Mintlify and the public API contract.Start with the machine-readable docs
https://docs.deepface.dev/llms.txthttps://docs.deepface.dev/llms-full.txthttps://docs.deepface.dev/skill.mdhttps://docs.deepface.dev/mcp(configured; validate after deploy before relying on it in production)
Recommended agent workflow
- Read
GET /capabilitiesbefore choosing a model or detector. - Use
POST /verify,POST /represent, orPOST /comparefor compute work. - Send
x-request-idon every request you may need to debug later. - Log the echoed
x-request-id, status code, and retry headers.
Authentication for agents
- Create an account at deepface.dev/signup.
- Create an API key in the dashboard after sign-in.
- Send the key with either
Authorization: Bearer YOUR_API_KEYorx-api-key: YOUR_API_KEY.
Retry and backoff guidance
429 rate_limited: back off usingRetry-Afterand theRateLimit-*headers.503 queue_fulland503 queue_timeout: treat as temporary capacity pressure and retry with backoff.502 upstream_failedand504 upstream_timeout: retry only after reducing payload size or request concurrency if failures persist.
Safe automation boundaries
- Safe to automate: capability discovery, verification, embedding generation, vector comparison, and account-side key rotation by a signed-in user.
- Do not automate: scraping the public tester, credential sharing, bypassing rate limits, or sending models/detectors that are not in the current allowlist.
- Always re-check the active model and detector allowlists before switching models in production automation.