Skip to content
Documentation

Rate limits & caching

120 req/min per key, RateLimit-* headers, ETags and cache policy.

Rate limits

Two fixed 60-second windows apply to every keyed request. Each API key may make the requests per minute its plan allows (120 on Free and Pro, more on Business and Enterprise), and each account has one limit across every key and connected app it holds, so ten keys are not ten budgets. Every response announces the per-key budget so clients can pace themselves without guessing; an Enterprise agreement can give a key its own limit. Unauthenticated endpoints (device codes, the playground) are limited per IP.

Free image fetches from /images/car.png share a fixed hourly limit of 600 per IP address, with at most 60 in any fixed minute, across cached images, examples, partner-signed images and playground or dashboard previews. This counts requests reaching the origin, including conditional requests; browser and CDN cache hits do not consume this budget. A refusal returns 429 with code: free_image_rate_limited and Retry-After in seconds. Keyless public previews and keyless mode=cached requests are also limited to 300 different images a day per IP address (UTC day). An image is one vehicle, year, view and paint: reloading it, or loading another size or format of it, is free. Past that, the answer is 429 with code: free_image_daily_limit and Retry-After until midnight UTC; for more, see bulk access. Billed image requests use their account and key limits.

PlanPer keyPer account, all keys
Free120 / min240 / min
Starter120 / min300 / min
Pro120 / min600 / min
Business600 / min2,000 / min
Enterprise1,200 / min5,000 / min
HeaderExampleMeaning
RateLimit-Limit120Requests allowed per window for this key.
RateLimit-Remaining117Requests left in the current window.
RateLimit-Reset42Seconds until the window resets.
Retry-After42Only on 429: integer seconds to wait before retrying.
429 Too Many Requests
HTTP/2 429
content-type: application/problem+json
ratelimit-limit: 120
ratelimit-remaining: 0
ratelimit-reset: 42
retry-after: 42

{"type":"https://carimage.dev/docs/errors#429","title":"Too Many Requests","status":429,"detail":"Rate limit exceeded for this key. Retry after 42 seconds.","request_id":"req_01j9x…"}

A 429 whose problem document carries "code": "account_rate_limited" is the account-wide window rather than this key's: the same Retry-After applies, the plan member names the plan, and a higher plan has a higher limit. See Errors.

ETags: free repeats

Every image response carries a stable ETag per variant. Send it back as If-None-Match and an unchanged image returns 304 Not Modified with no body and nothing counted or charged. Weak comparison is used, so a W/ prefix on either side still matches.

bash
curl -sI -H "Authorization: Bearer $CAR_IMAGE_API_KEY" \
  -H 'If-None-Match: "9f2a…c41d"' \
  "https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=side"
# HTTP/2 304
# etag: "9f2a…c41d"

Cache policy by response type

ResponseCache-ControlWhy
Keyed image bytes (GET /api/v1/images/car)private, no-storeBilled requests reach authorization and metering. Save bytes explicitly and use ETags for free conditional requests, or use signed URLs for embeds.
Signed URL, unlimited usespublic, max-age=<up to 300>, s-maxage=<up to 3600>, must-revalidateBilled once at creation. Browser caching is capped at five minutes and shared caching at one hour, always within the URL lifetime. Reuse the same URL to maximize CDN hits.
Signed URL with max_usesprivate, no-storeEvery redemption must reach the origin so the use counter can be enforced.
Free example imagespublic, max-age=300, s-maxage=3600, stale-while-revalidate=86400Free and public, so browsers keep them for five minutes and the edge for an hour. After that the edge serves the copy it holds for up to a day while it refetches in the background, so a visitor never waits for the refresh.

The rule of thumb: a billed response (it counted an image) is private to the caller; a response counted at creation (a signed URL) or free (an example) may be shared. If you want a CDN in front of your images, create signed URLs with a long TTL and unlimited uses.

New images and concurrency

An image we prepare for the request is the slow path: typically under 20 seconds for a vehicle's first image, about 15 seconds for another view of it (how long things take). Concurrent requests for the same new image share one preparation; on a plan each image counts once a month, however often it is delivered. Allow three minutes on the client for preparation and coordination. Spread large batches out: the daily capacity for new images is finite and separate from rate limits.

Capacity for new images per account

Each account may use a share of the day's capacity for preparing images that are not ready yet: 2% on Free, 5% on Starter, 10% on Pro, 25% on Business, 50% on Enterprise. Once an account has used its share, a request that would need a new image answers 429 with "code": "account_generation_cap", retry_after_seconds and reset_at. The share resets at midnight UTC; images that are ready keep serving, so a request for a ready image is never refused this way, and retrying before reset_at cannot succeed. Nothing is charged for the refusal. A higher plan has a larger share, and Enterprise can reserve capacity.

New images per account

Further limits may also apply: how many new images an account's requests may start in a rolling minute, in a UTC day, and at once. Only new images count; an image that is ready is served from the cache however often it is asked for, by any key, signed URL or tool. These limits are being measured and are not enforced yet; the numbers below are what they would be.

PlanNew images a minuteNew images a day (UTC)In progress at once
Free3015010
Starter3030010
Pro601,00024
Business1203,00032
Enterprise24010,00064

A request over one of them answers 429 with "code": "generation_rate_limited", the limit it met (per_minute, per_day or concurrent), its max and window, and Retry-After (also retry_after_seconds and reset_at): seconds for the minute and the renders in progress, midnight UTC for the day. Nothing is charged. To fill a large catalog, spread the requests out or talk to us about Enterprise limits.