Errors and limits
Error format
Every error is JSON with the same shape, and the HTTP status tells you the class of the problem. Branch on error.code, which is stable. The message is for people and can change.
{
"error": {
"code": "free_exhausted",
"message": "The free allowance is used up. Upgrade to keep going.",
"upgrade_url": "https://carmetadata.com/dashboard#plan"
}
}
upgrade_url is present on 402 errors only. contact_url is present on the capacity errors (capacity_rate_limited, capacity_busy) and links the contact form for guaranteed capacity or an SLA. 429 and 503 errors also send a Retry-After header with the number of seconds to wait.
Errors are never counted as calls. Only a successful 200 answer counts, including a no_car answer. Every request that reaches the upload step (valid key, accepted terms, valid add-ons) does count toward the account’s rate limit, rejected uploads included, so a burst of bad files gets 429 like a burst of good ones. The body must finish uploading within 15 seconds, or the call is 408 with invalid_image and the message “Upload took too long”.
Errors from /v1/identify
| Code | HTTP | When it happens | What to do |
|---|---|---|---|
invalid_key |
401 | The Authorization header is missing, is not Bearer <key>, or the key is unknown or revoked. |
Check the header and the key in the dashboard. Do not retry with the same key. |
invalid_addon |
400 | addons names something that is not angle, color, damage, deep_damage, plates, parts or polygon, or an add-on that is not on sale yet (not listed on the pricing page). |
Fix the list. Names are lower case. |
invalid_request |
400 | cars has a value other than all, or sensitivity is not low, normal or high. |
Send cars=all or leave it out; send one of the three levels or leave sensitivity out. |
invalid_image |
400 | There is no file part, the bytes do not match the declared type (a PNG sent as image/jpeg, a renamed file), the header cannot be read, or the request has no Content-Length. With 408, the upload took longer than 15 seconds. |
Send a real JPEG, PNG or WebP as a multipart file field, declared with its own type. Do not retry the same upload. |
unsupported_image_type |
415 | The file part is declared as something other than image/jpeg, image/png or image/webp (GIF, SVG, BMP, TIFF, HEIC…). |
Convert the image to JPEG, PNG or WebP and declare that type. HEIC/HEIF photos from iPhones must be converted to JPEG first. |
invalid_dimensions |
400 | A side is under 32 or over 10,000 pixels, or the image is over 50 megapixels. The size is read from the file header, so this comes back before anything is decoded. | Resize the image within the limits below and send it again. |
file_too_large |
413 | The image is over 10 MB. | Resize or recompress it below 10 MB and send it again. |
terms_not_accepted |
403 | The account has not accepted the current terms. | Open the dashboard and accept the updated terms. |
free_exhausted |
402 | The 200 free calls are used up. | Choose a plan in the dashboard (see upgrade_url). Retrying does not help. |
plan_paused |
402 | The plan is paused, for example because a payment did not go through. | Update your billing details in the dashboard. Calls resume afterwards. |
polygon_daily_cap |
429 | The account reached its daily limit of polygon calls. |
Stop asking for polygon until Retry-After has passed. The day ends at midnight UTC. Calls without polygon still work. |
free_pool_exhausted |
429 | Free accounts in their first 7 days only: new free accounts share a number of free calls per day, and today it is used up. Your own 200 free calls are not touched. | Try again after Retry-After seconds (the day ends at midnight UTC), or choose a plan (see upgrade_url). Paid plans are never affected. |
rate_limited |
429 | Calls are arriving faster than the account’s rate limit. The same code is used when the account sent 10 photos within a minute that could not be read or were too large, and when a paid account reached 10 times its plan’s included calls in one billing period; the message says which. | Wait Retry-After seconds, then retry. Smooth out bursts on your side, and check your photos before sending them. At the billing-period limit, Retry-After is the time until the next period starts; to go above it, contact support. |
capacity_rate_limited |
429 | The whole platform is receiving more calls than it can serve right now. This limit is for all accounts together, so it can happen below your own rate limit. | Retry after Retry-After seconds, with a growing delay if it repeats. The call is not counted. If you need guaranteed capacity or an SLA, use the contact form (see contact_url). |
capacity_busy |
503 | The platform is at full capacity: it is already working on as many calls as it can at the same time. | As for capacity_rate_limited: retry after Retry-After seconds. The call is not counted. For guaranteed capacity or an SLA, use the contact form. |
origin_unavailable |
503 | The identification service is unavailable or timed out. | Retry after Retry-After seconds, with a growing delay if it keeps failing. The call is not counted. |
not_found |
404 | The path does not exist on the API host, or the method is wrong (only POST /v1/identify exists). |
Use POST https://api.carmetadata.com/v1/identify. |
Errors returned only by the website
The demo on the home page, sign-in and the dashboard return the same error shape. You will not meet these from /v1/identify, but they are listed so that every code in the OpenAPI schema is explained.
| Code | HTTP | Where | Meaning |
|---|---|---|---|
invalid_email |
400 | Sign-in | The email address does not look valid. |
throwaway_email |
400 | Sign-in | The address belongs to a temporary inbox service. Use a permanent address. |
signup_limited |
429 | Sign-in link | A free account already exists for this device, or this network opened several accounts today. Sign in with the address used before. |
terms_required |
400 or 409 | Sign-in, dashboard | The terms box was not ticked, or the latest terms have to be accepted first. |
turnstile_failed |
403 | Demo, sign-in | The human check failed. Try again. |
forbidden_origin |
403 | Demo, sign-in, dashboard | The request did not come from the site itself. |
demo_limit |
429 | Demo | The demo tries for today are used up, by this visitor or by everyone together (then the response has the header X-Demo-Limit: all). Sign up for a free key to continue. |
unauthorized |
401 or 400 | Dashboard, sign-in link | You are not signed in, or the sign-in link is not valid. |
invalid_request |
400, 403 or 409 | Dashboard, billing | The request body is not valid (400), the account is suspended (403), or the withdrawal period has closed (409). |
trials_at_capacity |
503 | Dashboard | The platform is at capacity for new trials right now, so a new free account cannot create its first key. Try again in a few days. If you need guaranteed capacity or an SLA, use the contact form. Accounts that already have a key are not affected. |
The website also uses invalid_image, file_too_large, rate_limited, origin_unavailable and not_found with the meanings above. origin_unavailable can come with 502 when billing is temporarily unavailable.
Limits
| Limit | Value |
|---|---|
| Image types | JPEG, PNG and WebP, declared as image/jpeg, image/png or image/webp. The bytes must match. HEIC/HEIF photos from iPhones must be converted to JPEG first. |
| Image size | 10 MB (10 × 1024 × 1024 bytes) per call |
| Image dimensions | Each side at least 32 and at most 10,000 pixels |
| Image pixels | At most 50 megapixels (width × height ≤ 50,000,000) |
| Calls per second | 3 images (calls) per second per account on every paid plan, 1 on the free calls. A call over the limit gets 429 with a Retry-After header. Need more? Use the contact form. Rejected uploads count toward this limit, never toward calls. |
| Rejected photos | 10 per minute per account. After 10 photos that the identification service could not read or that were too large for it, calls get 429 until a minute has passed. Uploads the gateway refuses itself (wrong type, size or dimensions) do not count. |
| Calls per billing period | Paid plans: 10 times the plan’s included calls. Calls above that get 429 until the next period; contact support to raise it. |
polygon calls per day |
Per account, see the table below. The day is a UTC day. |
| Free calls | 200 per account. A new key does not reset them. |
| Platform capacity | All accounts share one machine. When the total load is too high, calls get 429 with capacity_rate_limited or 503 with capacity_busy, even below your own rate limit. While the platform is at capacity, new free accounts cannot create their first key. |
The rate limit and the daily polygon cap are the same for every key of an account. The rate limit is 3 images (calls) per second on every paid plan and 1 on the free calls; the polygon cap depends on the plan:
| Plan | Calls per second | polygon calls per day |
|---|---|---|
| Free calls | 1 | 20 |
| Brand | 3 | 200 |
| Model | 3 | 200 |
| Generation | 3 | 200 |
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.