Mental Edge API Quickstart
Go from zero to your first successful API call in a few minutes. Get an API key from the developer dashboard, add it to requests as an X-API-Key header, and start with the sandbox host (sandbox-api.mentaledge.ai) — free, 60 req/min, 1,000 req/day.
Step 1 — Get an API key
Sign in to the Mental Edge developer dashboard and create an API key. Store it as an environment variable — never hard-code it in source.
Step 2 — Detect a face
POST an image URL or base64 payload to the face detection endpoint. The response returns every face with its bounding box, facial landmarks (eyes, nose tip, mouth corners), detection confidence, and predicted attributes.
Step 3 — Extract an embedding
POST the same image to the embeddings endpoint to receive a 512-dimension face vector. Similar faces produce vectors that are numerically close — use these for custom matching, clustering, or deduplication in your own database.
Step 4 — Go to production
Switch the host from sandbox-api.mentaledge.ai to api.mentaledge.ai. Production requests are metered: face detection and recognition from $0.001/image, image analysis $0.002/image, video $0.08/min. Only successful jobs are billed.
API Pricing | Face Detection | Face Embeddings | Developer API overview