Photo$0.08 per call
Plate from a photo
Send a JPEG, PNG or WebP photo of a vehicle or its plate. Returns the plate characters, the issuing state when it can be identified, and a confidence. Pair it with plate to VIN. Photos are processed in memory and never stored.
POST /v1/ocr/plate
Request body
Send the photo (JPEG, PNG or WebP, up to 4 MB) either as a multipart upload with a file field named image, or as JSON: {"image": "<base64>", "media_type": "image/jpeg"}. A data URL works in image too. Photos are processed in memory and never stored.
| Name | In | Description |
|---|
Request
curl -X POST "https://api.hubcapdata.com/v1/ocr/plate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F image=@photo.jpgResponse
Sample data from test mode. Live responses have the same fields.
{
"data": {
"plate": "HUBCAP1",
"state": "CA",
"method": "vision",
"confidence": "high",
"alternatives": []
},
"meta": {
"request_id": "req_4n8b2v6c1x9z3l7k5j0h",
"mode": "live",
"cost": 0.08,
"cached": false,
"balance": 98.42
}
}Errors
400 invalid input, 401 bad key, 402 not enough credit, 404 no record (free), 429 rate limited, 503 sources unavailable (free). See Errors.