Palm Line Detection API
Detect heart, head, and life lines from palm images with machine learning. Build fortune-telling apps, wellness tools, and more.
See It in Action
Our ML model detects three major palm lines with color-coded overlays.



Built for Developers
3-Line Detection
Detect heart, head, and life lines with semantic segmentation powered by U-Net.
Simple REST API
Send a base64 image, get back overlay, masks, and line statistics. One endpoint, no complexity.
Fast Inference
~2 second response time with GPU-accelerated inference. Warm responses for production workloads.
Try It in Seconds
One endpoint. Send an image, get palm line data back.
curl -X POST https://api.trace-line.site/v1/palm/analyze \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "<base64-encoded-image>"
}'// Response
{
"overlay": "<base64-overlay-image>",
"masks": {
"heart": "<base64-mask>",
"head": "<base64-mask>",
"life": "<base64-mask>"
},
"lines": {
"heart": { "pixels": 1842, "confidence": 0.94 },
"head": { "pixels": 1567, "confidence": 0.91 },
"life": { "pixels": 2103, "confidence": 0.96 }
}
}Frequently Asked Questions
What palm lines does the API detect?+
The Traceline API detects three major palm lines: the heart line, head line, and life line. Each line is returned as a separate binary mask with confidence scores.
How accurate is the detection?+
Our U-Net based model typically achieves 90-96% confidence on clear palm images. Accuracy depends on image quality, lighting, and hand positioning.
What image formats are supported?+
The API accepts base64-encoded JPEG and PNG images up to 5MB. For best results, use well-lit photos with the palm facing the camera.
How fast is the API response?+
Typical response time is under 2 seconds with GPU-accelerated inference. Cold starts may take longer on the first request.
Can I use it for commercial applications?+
Yes. All plans, including the free tier, allow commercial use. The Pro plan offers higher quotas and priority inference for production workloads.
Is there an SDK available?+
The API uses standard REST with JSON. You can call it from any language using HTTP. Official Python and JavaScript SDKs are coming soon.