Errors
problem+json and every status code.
Problem responses
Every JSON failure is an RFC 9457 application/problem+json document. The type URI points at the matching section of this page, so an agent can link a human straight to the fix. Log the request_id; never log credentials or delivery tokens.
{
"type": "https://carimage.dev/docs/errors#402",
"title": "Plan limit reached",
"status": 402,
"detail": "The Free plan includes 30 free vehicle images per account plus a one-time courtesy of 30 (each vehicle in each color and angle) and this account has used 60; this request names 3 more. Images already received keep serving; a paid plan adds a monthly allowance. Nothing was charged. Free's images do not reset each month. Upgrade to Pro to cover more: https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap (compare plans: https://carimage.dev/dashboard?ref=api#plan), or an Image Pack buys a set of images to keep (https://carimage.dev/pricing?ref=api#packs).",
"request_id": "req_01j9x…",
"code": "plan_image_limit",
"plan": "free",
"used": 60,
"included": 60,
"requested": 3,
"resets_at": null,
"pack_url": "https://carimage.dev/pricing?ref=api#packs",
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap",
"next_plan": {
"id": "pro",
"name": "Pro",
"price": {
"monthly": 99,
"yearly": 790
},
"adds": [
"2,500 vehicle images a month",
"Commercial license while subscribed",
"1,000 credits a month for quality upgrades"
],
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap"
},
"pricing": {
"plans": [
{
"id": "starter",
"price_monthly": 59,
"vehicle_images_per_month": 100,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=starter&interval=month&ref=agent-api"
},
{
"id": "pro",
"price_monthly": 99,
"vehicle_images_per_month": 2500,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
{
"id": "business",
"price_monthly": 199,
"vehicle_images_per_month": 10000,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=business&interval=month&ref=agent-api"
}
],
"image_packs_url": "https://carimage.dev/pricing?ref=agent-api#packs",
"pricing_url": "https://carimage.dev/api/v1/pricing"
}
}At a glance
| Status | Meaning | Retry? |
|---|---|---|
| 400 | Invalid parameters or JSON. | Fix, then retry |
| 401 | Bearer key missing, invalid or revoked. | Fix, then retry |
| 402 | A plan allowance is used up, a 3D model (beta) is not paid for yet, or the credits a quality upgrade needs are missing. | Do not retry |
| 403 | Missing scope, an invalid/expired delivery token, a suspended account or a disallowed origin. | Fix, then retry |
| 404 | The make/model/year is not in the catalog. | Fix, then retry |
| 409 | A request with this Idempotency-Key is still running, or a credit Checkout was asked for. | Retry later |
| 410 | A capped delivery URL was fully redeemed. | Create a new URL |
| 413 | JSON body larger than 64 KiB. | Fix, then retry |
| 422 | The Idempotency-Key was already used with a different body. | Fix, then retry |
| 429 | Rate limited: this key, the whole account, or the account's daily share of new images. | Retry with backoff |
| 500 | Unexpected failure. | Retry later |
| 502 | The image could not be prepared. | Create a new URL |
| 503 | A dependency is down or the service is overloaded. | Retry later |
400Bad Request
A parameter is missing, out of range or not one of the allowed values, or the JSON body does not parse. Image errors include parameter and retryable: false; detail explains the correction. Correct the request; do not retry it unchanged.
A JSON body the endpoint cannot read (malformed, empty, not an object, an unknown field or a field of the wrong type) answers code: "invalid_body"; parameter names the field at fault when there is one, and for an unknown field allowed lists every field the body accepts.
A query parameter the image endpoints do not read is one of these, and free: the problem names it in parameter and lists every name the endpoint reads in allowed, so a request is never served, and billed, as a different image than the one it asked for. Only tracking tags and cache busters (utm_source, gclid, ref, v, t…) are ignored instead, and named in X-Ignored-Parameters. The other names each parameter is read under (angle for view, paint for color, bg for background) are on Images.
{
"type": "https://carimage.dev/docs/errors#400",
"title": "Invalid image parameters",
"status": 400,
"detail": "Unknown parameter: wiggle. Nothing was charged. This endpoint reads make, model, year, vehicle, view, color, size, w, h, fit, background, framing, aspect_ratio, resolution, trim, padding, shadow, format, market and response (also under the spellings at /docs/images#spellings), and ignores only tracking tags and cache busters such as utm_source, gclid, v and t.",
"request_id": "req_01j9x…",
"code": "invalid_params",
"parameter": "wiggle",
"allowed": [
"make",
"model",
"year",
"vehicle",
"view",
"color",
"size",
"w",
"h",
"fit",
"background",
"framing",
"aspect_ratio",
"resolution",
"trim",
"padding",
"shadow",
"format",
"market",
"response"
],
"retryable": false
}401Unauthorized
Send the key as Authorization: Bearer cimg_…. Keys in the query string are never accepted. Authentication required means no key arrived: none, a blank one, or a placeholder such as an unexpanded ${CAR_IMAGE_API_KEY}. Invalid credential means the key is malformed, unknown, expired or revoked: create a new one in the dashboard or run car-image login. The detail says which, and how to fix it; on /api/mcp it is written for Claude Code, which shows it when a server will not connect.
402Payment Required
Every 402 carries a code extension member that says which allowance or balance refused the request. Nothing was charged and nothing was counted, and none of them is fixed by retrying: stop, tell the human which plan the account is on and what it covers, and hand over checkout_url (the next plan, described in next_plan) or pack_url (Image Packs) with the price. The detail and the Link header name the dashboard's plan section (#plan).
With "code": "plan_download_limit" (title Plan limit reached) the plan's month of images as files is used up. A plan delivers its whole allowance through hosted URLs, which we serve from our CDN; the number of different vehicle images it delivers as files fetched with an API key (GET /api/v1/images/car) is 250 a month on Pro and 1,000 on Business. An image already fetched this month can be fetched again at any size, and a 304 or a signed URL never counts. The problem carries plan, downloads_this_month, downloads_per_month, resets_at, hosted_urls (the call that returns a hosted URL for the same image) and packs_url: an Image Pack is the way to keep files and host them yourself. For an account that subscribed before November 19, 2026, the limit applies from December 4, 2026.
With "code": "plan_image_limit" (title Plan limit reached) the request names more vehicle images (a vehicle in one color from one angle) than the plan has left this month, whether or not they are prepared yet. It carries plan, used, included, requested (how many of this request's images the month had not counted yet) and resets_at, the 1st of next month (UTC). On Free it is null: Free's 30 vehicle images are one allowance per account, followed once by a courtesy of 30 more, and do not reset. Images the account already received keep serving, so a live product is never cut off. There is no overage: a higher plan raises the allowance, and an Image Pack is a one-time purchase of a set of images on a perpetual license. Check a batch first with POST /api/v1/images/availability, which says for free whether it fits. The Free plan is one allowance per person: Free accounts on one network share one allowance a month, so a Free account whose network the other accounts already used up this month gets the same refusal with scope: "address" for images it has not received yet (email support@carimage.dev if that network is a shared office).
{
"type": "https://carimage.dev/docs/errors#402",
"title": "Plan limit reached",
"status": 402,
"detail": "The Free plan includes 30 free vehicle images per account plus a one-time courtesy of 30 (each vehicle in each color and angle) and this account has used 60; this request names 3 more. Images already received keep serving; a paid plan adds a monthly allowance. Nothing was charged. Free's images do not reset each month. Upgrade to Pro to cover more: https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap (compare plans: https://carimage.dev/dashboard?ref=api#plan), or an Image Pack buys a set of images to keep (https://carimage.dev/pricing?ref=api#packs).",
"request_id": "req_01j9x…",
"code": "plan_image_limit",
"plan": "free",
"used": 60,
"included": 60,
"requested": 3,
"resets_at": null,
"pack_url": "https://carimage.dev/pricing?ref=api#packs",
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap",
"next_plan": {
"id": "pro",
"name": "Pro",
"price": {
"monthly": 99,
"yearly": 790
},
"adds": [
"2,500 vehicle images a month",
"Commercial license while subscribed",
"1,000 credits a month for quality upgrades"
],
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-image-cap"
},
"pricing": {
"plans": [
{
"id": "starter",
"price_monthly": 59,
"vehicle_images_per_month": 100,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=starter&interval=month&ref=agent-api"
},
{
"id": "pro",
"price_monthly": 99,
"vehicle_images_per_month": 2500,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
{
"id": "business",
"price_monthly": 199,
"vehicle_images_per_month": 10000,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=business&interval=month&ref=agent-api"
}
],
"image_packs_url": "https://carimage.dev/pricing?ref=agent-api#packs",
"pricing_url": "https://carimage.dev/api/v1/pricing"
}
}With "code": "subscription_required_for_credits" (title Insufficient credits) the balance cannot pay for something credits pay for: a quality upgrade, or an image or make logo of an account still on the credit meter. Credits are no longer sold; a plan includes some every month. The problem carries balance and required_credits, then checkout_url, pack_url, next_plan and pricing. Credits already in the balance stay spendable. A renewing signed URL of an account on the credit meter that meets an empty balance answers the same problem with renewal_window, the window it could not pay for. A request for a credit Checkout answers 409 with the same code and links.
{
"type": "https://carimage.dev/docs/errors#402",
"title": "Insufficient credits",
"status": 402,
"detail": "This request needs 20 credits; balance is 5. Nothing was charged. Credits are no longer sold; paid plans include credits every month: compare plans at https://carimage.dev/dashboard?ref=api#plan, or buy an Image Pack to license images for good at https://carimage.dev/pricing?ref=api#packs",
"request_id": "req_01j9x…",
"code": "subscription_required_for_credits",
"balance": 5,
"required_credits": 20,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api",
"pack_url": "https://carimage.dev/pricing?ref=agent-api#packs",
"next_plan": {
"id": "pro",
"name": "Pro",
"price": {
"monthly": 99,
"yearly": 790
},
"adds": [
"2,500 vehicle images a month",
"Commercial license while subscribed",
"1,000 credits a month for quality upgrades"
],
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
"pricing": {
"plans": [
{
"id": "starter",
"price_monthly": 59,
"vehicle_images_per_month": 100,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=starter&interval=month&ref=agent-api"
},
{
"id": "pro",
"price_monthly": 99,
"vehicle_images_per_month": 2500,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
{
"id": "business",
"price_monthly": 199,
"vehicle_images_per_month": 10000,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=business&interval=month&ref=agent-api"
}
],
"image_packs_url": "https://carimage.dev/pricing?ref=agent-api#packs",
"pricing_url": "https://carimage.dev/api/v1/pricing",
"packs": []
}
}With "code": "model_3d_payment_required" (title Payment required) a 3D model was ordered for a vehicle and color the account has not paid for. 3D models are in beta and cost $5.00 per vehicle and color, paid upfront in Stripe Checkout; credits and plan allowances do not buy one. Nothing was started. The problem carries beta, price_cents, currency and checkout_url: a person opens the link and pays, the payment starts the build, and the same request then returns the model for nothing more.
{
"type": "https://carimage.dev/docs/errors#402",
"title": "Payment required",
"status": 402,
"detail": "3D models are in beta and are paid upfront: one model of a vehicle in a color is $5.00, and credits or a plan's allowance do not buy one. Nothing was charged and nothing was started. Pay in the browser and the model starts building at once; after that this same request returns it for nothing. A model that cannot be built is refunded automatically. Checkout: https://carimage.dev/dashboard/checkout?model_3d=veh_errc87t1jgata&color=red&ref=agent-api",
"request_id": "req_01j9x…",
"code": "model_3d_payment_required",
"retryable": false,
"beta": true,
"price_cents": 500,
"currency": "usd",
"checkout_url": "https://carimage.dev/dashboard/checkout?model_3d=veh_errc87t1jgata&color=red&ref=agent-api"
}With "code": "plan_vehicle_limit" an account that paid before 2026-10-25 and is still on the credit meter asked for more new distinct vehicles than its plan allows this month. The problem carries "scope": "month", plan, vehicles_this_month, vehicles_per_month and requested; a vehicle the account already served this month is always allowed. An account on a written Enterprise agreement may be capped over the agreement's whole term instead: the same problem with "scope": "term", vehicles_this_term and vehicles_per_term, and the fix is adding vehicles to the agreement (email support@carimage.dev), not a plan.
{
"type": "https://carimage.dev/docs/errors#402",
"title": "Plan limit reached",
"status": 402,
"detail": "The Free plan covers 100 distinct vehicles a month and this account has used 100; this request names 3 it has not served yet. No credits were charged. A higher plan covers more vehicles: https://carimage.dev/dashboard?ref=api#plan",
"request_id": "req_01j9x…",
"code": "plan_vehicle_limit",
"scope": "month",
"plan": "free",
"vehicles_this_month": 100,
"vehicles_per_month": 100,
"requested": 3,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api",
"next_plan": {
"id": "pro",
"name": "Pro",
"price": {
"monthly": 99,
"yearly": 790
},
"adds": [
"2,500 vehicle images a month",
"Commercial license while subscribed",
"1,000 credits a month for quality upgrades"
],
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
"pricing": {
"plans": [
{
"id": "starter",
"price_monthly": 59,
"vehicle_images_per_month": 100,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=starter&interval=month&ref=agent-api"
},
{
"id": "pro",
"price_monthly": 99,
"vehicle_images_per_month": 2500,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=pro&interval=month&ref=agent-api"
},
{
"id": "business",
"price_monthly": 199,
"vehicle_images_per_month": 10000,
"checkout_url": "https://carimage.dev/dashboard/checkout?plan=business&interval=month&ref=agent-api"
}
],
"image_packs_url": "https://carimage.dev/pricing?ref=agent-api#packs",
"pricing_url": "https://carimage.dev/api/v1/pricing"
}
}Agents: never retry a 402 automatically and never open or complete a purchase on your own. Surface the problem to the human with the links it carries. A key with the billing:write scope, which car-image login saves, can also prepare a hosted Checkout link for a plan through POST /api/v1/billing/checkout; a key created in the dashboard cannot.
403Forbidden
Either the key lacks the required scope (the body says which), or a signed URL's token is malformed, expired, or was created by a key that has since been revoked. Create a key with the right scope, or create a fresh URL.
Two further cases carry a code. With "account_suspended" the account is suspended and every key and connected app answers this until it is resolved; the detail says why, and support@carimage.dev is the way out. With "origin_not_allowed" the signed URL was created by a key that lists allowed origins and the browser's Referer or Origin names another site; requests without either header (email clients, curl) pass. Add the site to the key's list in the dashboard, or create it from a key without one. See Restrict URLs to your sites.
404Not Found
The API only renders vehicles that exist in the open-source vehicle-db catalog for the requested year, read by the rules in how names are matched. A vehicle 404 carries suggestions: up to five real catalog vehicles closest to what you sent — the same vehicle in its nearest year, models of the make sharing a word, fuzzy matches, or the closest makes when the make is unknown — each with its id and image_path, and detail repeats them in prose. Retry with vehicle=<id>, discover valid values with GET /api/v1/vehicles, resolve free text with POST /api/v1/images/resolve, or add the vehicle upstream. An unknown vehicle id is a 404 without suggestions. On GET /api/v1/vehicles?make=…&model=…, Make not found and Model not found carry code: "vehicle_not_found" and parameter (make or model), the one slug to correct. A vehicle miss is not retryable unchanged: skip its other views and colors, follow the free catalog search, and use a confirmed vehicle id. Resolve each distinct vehicle before expanding a batch.
409Conflict
A retry of POST /api/v1/image-urls overtook the original request with the same Idempotency-Key. Nothing new was charged. Wait the integer seconds in Retry-After (2), then send the same key and body again to receive the original response, marked Idempotent-Replayed: true. A request to POST /api/v1/billing/checkout for credits answers this status with "code": "subscription_required_for_credits": credits are no longer sold, and the answer links the plans and Image Packs instead.
410Gone
The signed URL reached its max_uses. Create a new one; creating URLs with max_uses: 0 (unlimited within the TTL) avoids this for public pages.
413Payload Too Large
Split the batch. POST /api/v1/image-urls accepts up to 50 images per call, which fits comfortably under the limit.
422Unprocessable Content
Within the last 24 hours the same Idempotency-Key was sent to POST /api/v1/image-urls with a different body. Nothing was charged. Use a new key for a new request, or resend the original body to replay the earlier response. Keys are 1–255 characters of letters, digits, ., _, : or -, scoped to your account and the route; the SDK generates one per call.
429Too Many Requests
Wait the integer number of seconds in Retry-After, then retry with exponential backoff and jitter. Four cases share this status; the code extension member tells them apart.
- No
code: this key's window (120 on Free, 120 on Starter, 120 on Pro, 600 on Business, 1,200 on Enterprise requests per minute).RateLimit-Remainingtells you how close you are before it happens. "account_rate_limited": the account's window across every key and connected app (240 on Free, 300 on Starter, 600 on Pro, 2,000 on Business, 5,000 on Enterprise requests per minute).Retry-Afterapplies the same way,plannames the plan, and a higher plan has a higher limit."account_generation_cap": the account has spent its plan's share of today's capacity for preparing new images. The problem carriesretry_after_secondsandreset_at; the share resets at midnight UTC, cached images keep serving, and retrying beforereset_atcannot succeed. Nothing was charged."generation_rate_limited"(may apply; not enforced yet): the account started as many new renders as its plan allows in a window.limitnames it (per_minute,per_dayorconcurrent), withmaxandwindow; waitRetry-After. Cached images keep serving and nothing was charged.
500Internal Server Error
Something failed on our side. Nothing was charged for a failed image. Retry once after a short pause and report the request_id if it persists.
502Bad Gateway
The image could not be prepared. Nothing is counted: the vehicle image the request counted is given back, and on the credit meter the credit is refunded. For a keyed request, retry after a pause. For a signed URL, the failed delivery still consumed the URL — create a new one before retrying.
Reaching the daily capacity for new images is a 503 with "code": "generation_at_capacity", and a pause in new images a 503 with "code": "generation_paused", not a 502.
With "code": "image_unavailable" and retryable: false, a render this image depends on was withdrawn after a quality review and the image cannot be served until it is replaced. Nothing was charged: retrying the same image will not succeed, so skip it rather than retry. Other vehicles are unaffected.
503Service Unavailable
The response includes Retry-After when a short retry is appropriate. Nothing was charged.
With "code": "generation_at_capacity", new images have reached the service's daily capacity: Retry-After and retry_after_seconds count down to reset_at (the next midnight UTC), images that are ready keep serving, and retrying before reset_at cannot succeed. What a signed URL counted (or its creation credit) is given back; create a new one after the reset. The SDK does not retry a wait longer than maxRetryDelayMs; it throws with retryAfterSeconds set.
With "code": "generation_paused", new images are paused service-wide while capacity is restored (reason: capacity_exhausted, minutes or longer; capacity_busy, seconds; or upstream_unavailable). Nothing was attempted and nothing is charged; every vehicle view already prepared keeps serving in every color and size. Wait Retry-After (retry_after_seconds, retry_at) before retrying once, and do not loop: until it passes every new render answers the same.
304 is free. A 402 is never retried by well-behaved agents. Every other status leaves the allowances and the balance untouched.