The identify endpoint
POST https://api.carmetadata.com/v1/identify?addons=angle,plates,parts,polygon
Authorization: Bearer cm_live_YOUR_KEY
Content-Type: multipart/form-data
One call identifies one photo. The call is synchronous: the answer comes back in the response.
Request
| Part | Required | Description |
|---|---|---|
file (multipart field) |
yes | The photo. A JPEG, PNG or WebP image, at most 10 MB (10 × 1024 × 1024 bytes), declared as image/jpeg, image/png or image/webp. Each side between 32 and 10,000 pixels, at most 50 megapixels. See Image limits. |
addons (query) |
no | A comma-separated list of add-ons: angle, color, damage, deep_damage, plates, parts, polygon. Names are lower case and case matters. Repeats are ignored, and an empty value means no add-ons. An unknown name, such as wheels, is rejected with invalid_addon. |
sensitivity (query) |
no | With deep_damage: low, normal (the default) or high, how readily the deep search draws boxes. See damage. Ignored without deep_damage. Any other value is rejected with invalid_request. |
cars (query) |
no | all: also return cars, every car in the photo, each with its own box and answers. See cars. Any other value is rejected with invalid_request. Without it, the answer describes one car, as before. |
Your client must send a Content-Length header, as every normal HTTP client does for a multipart form. A streamed upload without one is rejected with invalid_image, and a body that has not finished uploading after 15 seconds is 408 with the same code.
The declared type must match the bytes: a PNG sent as image/jpeg is 400 invalid_image, a GIF or HEIC is 415 unsupported_image_type, and a header that announces more pixels than the limits allow is 400 invalid_dimensions. These checks read only the file header; nothing is decoded before the limits are enforced.
Photos are processed and discarded. We keep the call counts and each call’s result (as your plan returned it) for 90 days, never the photo. Signed-in accounts see the results under History in the dashboard.
Response
200 OK with a JSON body and an X-Request-Id header that repeats the request_id field. Quote it when you contact us about a call.
What the body contains depends on your plan (the identity fields) and on the add-ons you asked for. The fields are described in Response fields. The shape is the same for every photo: a photo without a car still returns 200 with no_car set to true.
{
"request_id": "d8d5aad1-6c1e-4b0a-9f3e-2a7c5b8e4d10",
"no_car": false,
"view": "exterior",
"identity": {
"level": "model",
"top50": true,
"brand": { "name": "toyota", "confidence": 0.9931 },
"model": { "name": "Yaris", "confidence": 0.9704 }
}
}
What counts as a call
Every successful answer counts as one call, including a no_car answer, whatever add-ons it used. Each add-on you asked for is billed on every counted call, whatever the photo shows: polygon on an interior photo is billed too (which photos get an add-on). Errors, rejected uploads and timeouts are never counted as calls, but every request that reaches the upload step (valid key, accepted terms, valid add-ons) counts toward your rate limit, so a stream of bad uploads is throttled like good ones. See Errors and limits.
No SLA
The service has no uptime or availability guarantee, and the answers are model output that can be wrong. Do not use it for critical decisions.
No SLA: the service has no uptime or availability guarantee and no service credits. It is provided as is and may change, pause or stop at any time. Do not use it for critical decisions.