Gist 842ac39b24599fe93d18a0c536f0ea69
✓ Published0🌍 Public
55un
Last edited Aug 24, 2017
Created on Aug 24, 2017
This example demonstrates a Node.js script that sends a base64-encoded image file to the TrueFace API’s face-detection endpoint, then logs the returned JSON response. It reads a local JPEG, converts it to base64, and posts it via the `superagent` HTTP client with `superagent-bluebird-promise` for promise support. The request uses the `x-api-key` header for authentication and targets `https://api.chui.ai/v1/facedetect`. The visualization shows the raw API output, not a graphical chart, highlighting a simple request–response workflow.
AI-generated description