Images
GET /api/v1/images/car — parameters, views, sizes, any paint color, vehicle ids, headers, JSON mode.
/api/v1/images/carQuery parameters
| Parameter | Type | Description |
|---|---|---|
makerequired | string | Manufacturer as it appears in the catalog. Case, spaces and punctuation are normalized ("Mercedes-Benz" and "mercedes benz" are the same make), and nicknames, other separators, company words and typos are read ("chevy", "landrover", "kia-motors", "porshe"): how names are matched. Omit when you send vehicle. |
modelrequired | string | Model name, normalized the same way ("model-3", "Model 3") and read from the most literal rule to the least: a unique prefix, a family in any market's word ("gla"), another word order, a reviewed same-body name ("camry-hybrid"), engine and trim words ("x3-xdrive30d"), a badge ("c300") or a typo ("elentra"), with X-Vehicle-Match saying which: how names are matched. Body styles and performance derivatives never substitute. Omit when you send vehicle. |
yearrequired | integer | Model year between 1957 and next year (2024.0 reads as 2024). Must exist for the make/model in the catalog. Omit when you send vehicle. |
vehicle | string | A stable vehicle id such as veh_78qtwrgh37bkr in place of make, model and year. Every GET /api/v1/vehicles response and every VIN decode carries them. Sending an id together with make, model or year is a 400; an id that names no vehicle is a 404. |
viewrequired | front | front-3-4 | side | rear-3-4 | rear | rear-3-4-right | side-right | front-3-4-right | top | One of nine views (eight around the car and top, from above), with aliases such as left, front-right, hero and back read in any case, and read as angle, camera, perspective or orientation: see Camera views. |
color | preset | CSS name | hex | One of 15 preset names, any CSS color name or any paint as bare hex ( color=1a2b3c), each its own vehicle image; also spelled colour and read as paint, paint_color, hex or colors: see Colors.Default: silver |
size | thumb | small | medium | large | Named preset for the width (thumb=256, small=512, medium=768, large=1024). Ignored when w or h is given. |
w | integer, up to the image's own size | Width in pixels, also spelled width: alone, the image scales to this width and keeps its shape; with h the output is exactly w×h and fit places the car. Above the stored image's own size it is clamped, not refused: see Sizes. |
h | integer, up to the image's own size | Height in pixels, also spelled height. Alone, the image scales to this height and keeps its shape. Clamped like w. |
aspect_ratio | 1:1 | 4:3 | 3:2 | 16:9 | natural | A preset for the box, also spelled aspect. natural is the car's own trimmed shape. w or h complete it; both together win. Never with size: see Sizes. |
resolution | small | medium | hd | 2k | A preset for the box's longer side: small 640, medium 1280, hd 1920, 2k 2560 px, delivered up to the stored image's own size. w or h win. Never with size. |
fit | contain | cover | inside | How the car is placed when both w and h are given: contain pads, cover crops, inside may return a smaller image — see Fit.Default: contain |
background | transparent | CSS name | hex | Solid color the image is flattened onto: any CSS color name (white, black, whitesmoke, grey…), or hex as rrggbb, #rrggbb, rgb or #rgb; write the bare hex in URLs (background=f4f4f4) so nothing needs escaping — responses echo #f4f4f4. A solid background flattens PNG and WebP too. JPG defaults to #ffffff, and background=transparent with format=jpg is a 400. Also read as bg or background_color.Default: transparent (jpg: white) |
framing | consistent | tight | balanced | A composition preset: tight is trim=1, balanced is trim=1&padding=6, consistent keeps one apparent scale across a vehicle's views. Never together with trim or padding — see Framing.Default: consistent |
trim | 0 | 1 | Crop to the car's own bounds before sizing, so the car fills the box instead of floating in its frame: see Trim to the car.Default: 0 |
padding | integer 0–50 | Margin in percent of the longer side: around the car with trim=1, around the stored frame without it.Default: 0 |
shadow | 0 | 1 | A soft ground shadow under the car, drawn from its own cut-out: see Ground shadow. The same vehicle image, no extra count.Default: 0 |
format | png | webp | jpg | auto | Output encoding. PNG and WebP keep the transparent background; JPG gets a flat one. auto delivers WebP when the request's Accept header lists image/webp and PNG otherwise, with Vary: Accept.Default: png |
market | country code | The market of sale, as a two-letter country code ( US, GB, AU): see Market of sale. Never part of what the image is: the same vehicle image under any market.Default: the account's default, or none |
campaign | text, ≤ 100 | Your own label for the campaign or send the image is for, recorded with the request and echoed in X-Campaign: see Campaign tracking. Never part of the image.Default: none |
pieces | 1–10,000,000 | How many pieces (emails, mail pieces, impressions) the image will go into, a good-faith estimate, echoed in X-Pieces. Never part of the image or its count.Default: none |
Spellings and unknown parameters
Parameters are read the way people write them: names in any case (Width, COLOR), view aliases such as left and front-right, grey and every CSS color name, whole numbers written 2024.0, and these other names:
make:brandvehicle:vehicle_idview:angle,camera,perspective,orientationcolor:colour,paint,paint_color,hex,colorsw:widthh:heightbackground:bg,background_coloraspect_ratio:aspect,aspectratio
Each spelling is the same image as the canonical one, cached once.
Only tracking tags and cache busters are ignored: every utm_* and every _* name, and gclid, gclsrc, gbraid, wbraid, gad_source, gad_campaignid, dclid, fbclid, msclkid, yclid, ttclid, twclid, li_fat_id, igshid, mc_cid, mc_eid, mkt_tok, srsltid, ref, ref_src, v, ver, t, ts, timestamp, cb, cachebuster, cache_buster, cachebust, nocache, bust, rand, random, nonce, dpl. They change the URL, never the image, and X-Ignored-Parameters names them. Any other parameter the endpoint does not read is a 400 that names it in parameter and lists every name the endpoint reads in allowed, and nothing is charged: an image served without it would be another image than the one asked for.
A size above the stored image's own is clamped and X-Clamped-Parameters gives the values served. A known parameter sent twice, or under two names (w and width, view and angle), is a 400, because one value would be lost. JSON bodies (signed URLs, 3D, the MCP tools) take the documented names and their spellings (width, colour, vehicle_id) but not the other words, and refuse an unknown field: a body is written by its sender alone, to a schema.
Examples
curl --fail-with-body \
-H "Authorization: Bearer $CAR_IMAGE_API_KEY" \
"https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red" \
--output porsche-911.pngFor a layout that is not square, ask for the box you have and trim to the car; for a page, let the browser pick the encoding; for a paint the presets do not have, write the hex bare; and when you already hold a vehicle id, send that instead of the three name parameters:
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400&trim=1&padding=6
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=512&background=f4f4f4&format=auto
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=1a2b3c
https://carimage.dev/api/v1/images/car?vehicle=veh_78qtwrgh37bkr&view=front-3-4&color=1a2b3cViews (angles)
Nine fixed camera positions. Eight stand around the vehicle, described by where the camera stands: 0° is straight ahead of the nose, 90° level with the car's left side, 180° behind it and 270° level with its right side. Those eight are symmetric: front-3-4, side and rear-3-4 show the left side with the nose pointing left, and each has a -right twin that shows the right side with the nose pointing right. The ninth, top, looks straight down from above with the nose pointing up. The framing is identical for every vehicle in the catalog, which is what makes listings and comparison grids line up.
Aliases are read in any case and with any separators (Front Left, front_left); left and right name the side of the car the camera sees, where the nose also points, so view=left is side and view=front-right is front-3-4-right. Every alias redirects to, and is cached as, the view it names.
| view= | Label | Camera | Description | Aliases |
|---|---|---|---|---|
front | Front | 0° | Straight-on front view | — |
front-3-4 | Front three-quarter (facing left) | 35° | Front and left side at ~35°, nose to the left; the classic hero angle | front34, hero, front-3-4-left, front-left, left-front |
side | Side (facing left) | 90° | Perfect side profile, nose pointing left | side-left, profile, left, left-side |
rear-3-4 | Rear three-quarter (facing left) | 145° | Rear and left side at ~35°, nose to the left | rear34, rear-3-4-left, rear-left, left-rear, back-left |
rear | Rear | 180° | Straight-on rear view | back |
rear-3-4-right | Rear three-quarter (facing right) | 215° | Rear and right side at ~35°, nose to the right; rear-3-4 mirrored | rear34-right, rear-right, right-rear, back-right |
side-right | Side (facing right) | 270° | Perfect side profile, nose pointing right | side-r, right, right-side |
front-3-4-right | Front three-quarter (facing right) | 325° | Front and right side at ~35°, nose to the right; the hero angle mirrored | front34-right, front-right, right-front |
top | Top (from above) | overhead | Straight down from above, nose pointing up; a bird's-eye plan view for maps and layouts | top-down, overhead, birds-eye, bird-eye, aerial, above, plan |
Sizes
Each image is stored once at its own size. Images from before November 2026 are 1024×1024 squares with the car in the middle. New images fill a canvas shaped for the view, up to 2560 px: 2560×1440 for the profiles and three-quarters, 2176×1632 for front and rear, 1440×2560 for top, the car edge to edge. X-Image-Width and X-Image-Height report what was served.
Ask for a named preset with size=, or exact pixels with w= and h=: one dimension scales the image and keeps its shape, both deliver exactly w×h, and fit decides how the car is placed in that box. aspect_ratio= and resolution= name the box instead of spelling it: aspect_ratio=16:9&resolution=hd is w=1920&h=1080, aspect_ratio=4:3&w=800 is w=800&h=600, aspect_ratio=16:9 alone is the largest such box the image allows, resolution=hd alone is a longer side of 1920 at the image's own shape, and aspect_ratio=natural is the car's own trimmed shape. w and h together win over both presets, and either preset beside size is a free 400. Nothing is ever upscaled: a trimmed car is at most as large as it is in the source.
A size above the stored image's own is clamped rather than refused, and X-Clamped-Parameters gives the values served: a contain or cover box whose longer side passes the image's shrinks whole and keeps its shape (w=1920&h=1080 of a 1024 px image is delivered as 1024×576), and one dimension stops at that side of the image.
| size= | Pixels | Typical use |
|---|---|---|
thumb | 256 × 256 | Lists, autocomplete rows, chat avatars |
small | 512 × 512 | Cards and grids |
medium | 768 × 768 | Detail panes, comparison tables |
large | 1024 × 1024 | Hero images, print-quality exports |
# presets are square: 256, 512, 768, 1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&size=thumb
# one dimension scales the square: 600×600
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600
# a box is delivered exactly: 600×400, whole car, transparent sides (fit=contain)
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400
# 600×400, the car filling the box, cropped at the centre
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400&fit=cover
# 600×400, cropped to the car first with a 6 % margin, no wasted canvas
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400&trim=1&padding=6
# 512×512 on light gray, as WebP
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=512&background=f4f4f4&format=webpFit: filling a w×h box
With both w and h the square source has to be placed in a box of another shape, and fit= chooses how (default contain); with one dimension every fit yields the same image. For w=600&h=400:
| fit= | w=600&h=400 gives | Description |
|---|---|---|
containdefault | 600×400: the car 400 px tall in the middle, 100 px of transparent canvas (or background color) on each side | Exactly w×h; the whole car visible, the rest transparent or the background color (default). |
cover | 600×400: the car scaled to 600 px and cropped 100 px at the top and bottom | Exactly w×h; scaled to fill the box and cropped at the centre. |
inside | 400×400: the largest square that fits (what w+h returned before 2.6) | The car fits within w×h; the output may be smaller than the box. |
w=600&h=400 gave 400×400); that output is now fit=inside, so pass it to keep the old behaviour.Trim to the car
A stored image's frame rarely has the shape of your box, and a square one leaves empty canvas above and below the car, so a box shows either padding or a crop. trim=1 crops to the car's own bounds (its alpha channel) before sizing, so the car itself fills the box — the setting to reach for in listing cards, table rows and hero sections — and padding= keeps a margin around it, 0–50 percent of the car's longer side. Without trim, padding= pads the stored frame by that percent of its longer side, the way to add room around a new render, which is drawn edge to edge.
- With a box and
containorcoverthe canvas is still exactlyw×h: it is the car, not its frame, that gets fitted. - With one dimension or
fit=insidethe output follows the car's aspect ratio (w=600&trim=1is roughly 600×270 for a side view), andX-Image-WidthandX-Image-Heightreport the exact size.
Framing
framing= names a composition instead of spelling one out. tight and balanced are presets, not other transforms: the API rewrites them into the trim and padding they stand for before anything else reads the request, so framing=tight is the same image, canonical URL, cache entry, ETag and vehicle image as trim=1&padding=0, and responses echo trim and padding. consistent keeps one apparent scale across a vehicle's views. A square render already holds it, so there it changes nothing. A new render fills its own canvas, so the view is placed at the height all the vehicle's stored views share, centred on the box you ask for (16:9 of your w or h without one; 9:16 for top), every view on one baseline.
| Parameter | Type | Description |
|---|---|---|
consistent | no trim | The generator's own camera framing (default, no trim): the same apparent camera scale across all nine views of a vehicle, for galleries, 360 spinners and 3D previews.Default: default |
tight | trim=1 | The whole car fills the box with no margin: trim=1&padding=0. |
balanced | trim=1&padding=6 | A catalog composition with even margins around the car: trim=1&padding=6. |
- Vehicle catalog grid:
balanced, so every card has the same even margin whatever the car's shape. - Dealership listing hero:
balancedwith abackgroundthat matches the page. - Search-result thumbnails:
tightat a small size, so the car uses every pixel of the slot. - Multi-angle gallery or 360 spinner:
consistent(or noframingon a square render). The views of one vehicle keep one apparent scale; trimming each view to its own bounds would zoom the side profile and the front by different amounts. - 3D preview poster:
consistent, so the still matches the camera the model opens with. - Two vehicles side by side:
tightmakes each car as large as its box allows;consistentkeeps each vehicle's own camera scale. Neither shows how big the cars are relative to each other in the real world: each vehicle is framed on its own.
Sending framing with trim or padding (even framing=consistent&trim=0) is a free 400 that names both, and an unknown value is a free 400 that lists the three. Values are read in any case. Make logos do not take it.
# catalog grid card
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400&framing=balanced&format=webp
# listing hero on the page's own grey
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=1024&h=576&background=f4f4f4&framing=balanced&format=webp
# search-result thumbnail
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=160&h=100&framing=tight&format=webp
# gallery: every view at one camera scale (framing=consistent is the default)
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=side&color=red&w=800&h=600&framing=consistentBuilding a 3D model or a 360 from the views
Photogrammetry, a 3D generator or a spinner needs every view of one vehicle at one scale. Request all 9 views the same way:
- No
trim,paddingortight/balanced.trim=1crops each view to its own bounds and scales that crop to your size, so a long side profile and a short front view come out at different scales and their proportions no longer agree. Leaveframingout or sendframing=consistent. - One
w×hbox for every view, the top view included, such asw=1024&h=1024orw=2048&h=1152. With a singlewthe box is not the same for every view: a new render oftopgets a 9:16 box where the others get 16:9. - The same vehicle, color and format in every request, and no
shadowif your tool reads the silhouette from the alpha channel.
What you get: every view around the car (all but top) shows it at one height in pixels, centred on one baseline, and top (nose up) takes its length from the side profiles at that scale. Each view's camera position is in the views table and in GET /api/v1/images/options as yaw_degrees and elevation_degrees: 5° above the car for the ring, straight down for top. The views are studio illustrations, not calibrated photographs: there is no published lens or focal length, so take the perspective as close to a long product lens and solve the scale from the shared height rather than from a camera model. Nine views of one vehicle in one color are nine vehicle images, and requesting them again at another size counts nothing more that month on a plan.
# every view of one vehicle at one scale, for a 3D build or a 360
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=side&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=rear-3-4&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=rear&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=rear-3-4-right&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=side-right&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4-right&color=red&w=1024&h=1024
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=top&color=red&w=1024&h=1024Ground shadow
A cut-out car can look pasted onto a page. shadow=1 grounds it with the shadow the studio's broad overhead light would cast: dark under the wheelbase, where the floor is most hidden, then softening and fading past the wheels to the ends. It follows each vehicle's own low body, so a long nose or overhang gets a long shadow and a mirror or handlebar does not. It is drawn at delivery from the render's own transparent cut-out, so it is the same car, not a new render, and the same vehicle image: it adds nothing to the month's count.
- On a transparent PNG or WebP the shadow is semi-transparent, so it darkens whatever the image sits on; with a
backgroundor as JPG it is flattened, dark under the vehicle and a soft grey past it. - It is never drawn above the car and stays inside the frame: a vehicle that fills its frame is drawn up to 7% smaller with a shadow than without, at the same image size. With
trim=1the crop keeps it, so a trimmed car is a little taller with a shadow than without. - Off by default: an image without
shadowis byte for byte what it was, with the same ETag. Make logos do not take it.
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&w=600&h=400&background=ffffff&trim=1&padding=6&shadow=1Market of sale
Some model years look different in different markets: a pickup sold in Australia can be another generation than the one sold in the United States under the same name and year. market= says which market your vehicles are for, as an ISO 3166-1 alpha-2 country code (US, GB, DE, AU, JP), in any case.
- Today every market gets the default appearance, and the answer says which was served. An image response carries
X-Vehicle-Appearance: default, ordefault; market=AUwhen the request was read under a market. JSON answers (availability, the coverage check, resolve, signed URLs) carry"appearance": { "market": "AU", "scope": "default" }. The scope isdefaultwhile the default appearance is served, andmarketonce an appearance specific to that market is. - It is optional, and an account can keep a default: an admin sets it under Settings → Default market, it applies to every request that sends no
market, andGET /api/v1/accountreports it asdefault_market. Amarketon the request always wins. - It is never part of what an image is. The same vehicle, color and view with and without a market is the same image and the same vehicle image of the month, with the same canonical URL and ETag.
- It is only ever what you send. Nothing is read from the caller's address or language, and
countryandregionare not other names for it. A code no country holds (UKisGB) is a free 400 that namesmarket. - The header is on answers that are yours alone. The keyless image URL, the public previews and signed delivery URLs are served from a shared cache and carry none; a signed URL's creation answer says its
appearanceinstead.
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&market=AU
X-Vehicle-Appearance: default; market=AUCampaign tracking
Tag a request with the campaign or send it is for, and how many pieces (emails, mail pieces, impressions) it will go into: campaign= and pieces=. Both are for your own logging and documentation, campaign reporting, or Enterprise usage reporting. Each answer echoes what was recorded in X-Campaign (percent-encoded) and X-Pieces, and GET /api/v1/account/campaigns reads them back: pieces by campaign, and by vehicle with the campaigns that used it.
- They are never part of the image. The same image with and without them is the same vehicle image of the month, with the same canonical URL, ETag and cache entry.
campaignis up to 100 characters on one line, trimmed;piecesis a whole number from 1 to 10,000,000. Anything else is a free 400 that names the parameter.utm_campaignis notcampaign: it stays a tracking tag that is ignored.- For a send, mint its own signed URLs with the same two fields: Signed URLs → Campaign tracking.
https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red&campaign=Spring%20mailer&pieces=25000
X-Campaign: Spring%20mailer
X-Pieces: 25000Colors
color= takes one of 15 preset names (grey is gray), any other CSS color name, or any paint as hex; the default is silver. Every color is a recolor of one neutral render of the vehicle, not a new render, so a custom paint is one vehicle image like a preset (each color of a view counts once a month) and is cached the same way.
How hex is written
- In a URL, bare:
color=1a2b3cis the canonical spelling, because an unescaped#starts the fragment (color=%231a2b3cworks too); in JSON (signed URL items, 3D requests, MCP tools),"#1a2b3c"or"1a2b3c". Three-digit shorthand expands (1abis11aabb) and case does not matter. - Responses echo hex as
"color": "#1a2b3c"and presets by name. A hex that equals a preset's swatch exactly is that preset:color=b3151bisred, one cached image either way. - A CSS color name (
navy,Light Grey) is read as its CSS hex, in any case and with any separators —color=navyis the imagecolor=000080and is echoed that way — while the presets keep their own paint swatches, soredis#b3151b, not CSS#ff0000.
The resolve endpoint and the MCP tools' lookup, which pick a vehicle and a paint from a sentence, map free-text phrases ("midnight", "gunmetal") onto the nearest preset and keep a hex as is; the color parameter itself reads a CSS name exactly.
white#f4f4f2black#141414gray#7a7d82- default
silver#c3c6cb blue#1f4fa3red#b3151bgreen#1f6b3abrown#5c3d2ebeige#d9c9a8tan#c9a66borange#e0641byellow#f2c318gold#b8963eburgundy#6b1a2bpurple#5b2a861a2b3cany hex
Backgrounds
Images are transparent; background= flattens one onto a solid color (a CSS name, or a bare hex such as background=f4f4f4, echoed as #f4f4f4), PNG and WebP included. JPG has no alpha channel: it defaults to #ffffff, and background=transparent with format=jpg is a 400.
Formats
format= accepts png, webp, jpg, auto: PNG (the default) and WebP keep the transparent background, JPG is composited onto it, and WebP is typically 3–5× smaller than PNG at the same size. format=auto lets each client choose (WebP when its Accept header lists image/webp, PNG otherwise, with Vary: Accept), so a signed URL created with it negotiates on every load: the right choice for an <img> tag.
AI provenance metadata
Car images are made by a generative image model (and recolored from those renders), so every PNG, WebP and JPG the API delivers carries the IPTC Digital Source Type in an embedded XMP packet: Iptc4xmpExt:DigitalSourceType = http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia. It is the value to keep for feeds that require AI-generated images to say so, such as Google Merchant Center's image_link; do not strip it when you re-upload the file. The packet holds nothing else (no credit or license of ours) and the pixels are unchanged. Images served before this label keep their old ETag valid: a conditional request with it still returns a free 304.
Response
200 OK with the image bytes and a Content-Type of image/png, image/webp or image/jpeg. Metadata travels in headers:
| Header | Example | Meaning |
|---|---|---|
X-Credits-Charged | 0 | Credits debited for this response: 0 on the plans, where images are counted, not charged (1 on the credit meter of accounts that paid before 2026-10-25). |
X-Vehicle-Images-Used | 412 | Vehicle images (a vehicle in one color from one angle) the account has received this month (UTC), this one included; on Free, in all (its allowance is one per account). |
X-Vehicle-Images-Included | 2500 | The plan's vehicle images a month (on Free, per account, the one-time courtesy included once granted); unlimited when the allowance is negotiated without a cap. |
X-Credits-Remaining | 4870 | Credit meter only (accounts that paid before 2026-10-25): the balance after the debit, in place of the four usage headers. |
X-Image-Source | cache | generated | cache (the image was ready) or generated (prepared for this request). It counts the same either way. |
X-Vehicle-Id | veh_395yw8tn73ff8 | The stable id of the vehicle served, on bytes responses too; send it back as vehicle= next time. |
X-Vehicle-Match | exact | alias | trim | fuzzy | year | How make and model were read: exact for catalog slugs, otherwise the rule that interpreted them, from the most to the least literal (prefix to fuzzy), or year when a nearby model year answered for one we do not carry yet: how names are matched. Also on 304 and URL responses. |
X-Image-Verified | 2026-11-24 | The UTC day these exact image bytes were compared with the manufacturer's own material for that model year and matched: verified, by the same rule as verified in availability and pack manifests). Absent when they have not been checked, which does not mean the image is wrong; a redrawn image starts without it. Also on 304 responses, on URL responses (for the image the URL delivers now), on signed /i/ URLs and on keyed /images/car.png. |
X-Ignored-Parameters | utm_source, cb | Only when the query held parameters the endpoint does not read: their names (never their values), up to 20. They were ignored, not refused; see Spellings. |
X-Clamped-Parameters | w=1024, h=576 | Only when a size above the stored image's own was asked for: the sizes that were reduced, with the values served. A box keeps its shape. |
X-Vehicle-Appearance | default; market=AU | Which appearance was served: default for every market today, with the market the request was read under (its own, or the account's default) when there is one. See Market of sale. |
X-Image-Width | 600 | Width of the delivered canvas: exactly w for a contain or cover box, otherwise what the render produced. |
X-Image-Height | 400 | Height of the delivered canvas. A trimmed car without an exact box follows its own aspect ratio. |
ETag | "9f2a…c41d-600x400-trim6-png" | Stable per source image and transform. Plain resizes keep the tag they always had; a box, a background, a trim, padding, a shared placement or a shadow adds a segment. Send If-None-Match to receive a free 304. |
Vary | Accept | Only with format=auto: the encoding follows the Accept header, so caches keep WebP and PNG apart. |
Cache-Control | private, no-store | Billed responses bypass HTTP caches: store bytes explicitly and use ETags, or create a cacheable signed URL for embeds. Keeping images on your own servers or CDN is allowed while a paid plan is active; delete stored copies within 30 days after it ends (Image Pack images may stay for good); see the license. |
Server-Timing | auth;dur=9.8, plan;dur=12.1, storage;dur=31.4, debit;dur=11.9, total;dur=96.2 | Where the request spent its time, in milliseconds: each step it waited on (auth, ratelimit, plan, lookup, storage, debit, tint, encode, render…) and the total; generation_wait means this request waited for another render, even if X-Image-Source is cache. Browser network panels show it as a timing breakdown. For diagnosis only: the step names may change. |
X-Request-Id | req_01j9x… | Include it in bug reports and feedback. |
JSON mode: get a signed URL instead of bytes
Send Accept: application/json (or response=url) and the endpoint returns a signed delivery URL instead of the image. This is handy for agents and for servers that pass images to a browser without proxying bytes. It counts the same vehicle image as the bytes would.
curl -H "Authorization: Bearer $CAR_IMAGE_API_KEY" \
-H "Accept: application/json" \
"https://carimage.dev/api/v1/images/car?make=porsche&model=911&year=2024&view=front-3-4&color=red"{
"data": {
"url": "https://carimage.dev/api/v1/delivery/eyJhbGciOi…",
"expires_at": "2026-09-02T18:00:00.000Z",
"max_uses": 0,
"vehicle": {
"vehicle_id": "veh_78qtwrgh37bkr",
"make": "porsche",
"model": "911",
"year": 2024,
"view": "front-3-4",
"color": "red",
"format": "png"
},
"width": 1024,
"height": 1024,
"format": "png"
},
"billing": {
"credits_charged": 0,
"vehicle_images": {
"used": 412,
"included": 2500
}
},
"request_id": "req_01j9x…"
}The echoed vehicle opens with vehicle_id, the stable id of the catalog vehicle that was rendered (however you spelled it), then the delivery options you set: width, height, fit (only with a box), background, trim, padding and shadow. A hex paint is echoed as "color": "#1a2b3c". width and height are null when only the render can tell — a trimmed car without an exact box.
Conditional requests
Store the ETag with the bytes and send it as If-None-Match on the next request: a matching variant returns 304 Not Modified with no body and no charge.
curl -I -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=front-3-4&color=red"
# HTTP/2 304New images and refunds
When a vehicle and view has never been requested, the API prepares it synchronously and stores it permanently in a private origin. A vehicle's first image typically takes under 20 seconds in the default front three-quarter view and about 25 in any other view, which is drawn from the front view in the same request. The front view is then redrawn at enhanced quality in the background, usually within a day (first views). Concurrent requests share one render. A view no account has asked for yet takes a little time: we prepare the vehicle in that angle so it can be shown in any color. It counts as one vehicle image like any other. If it fails the request returns 502 and nothing is counted. When new renders have reached the service's daily capacity the request returns 503 with Retry-After until the next midnight UTC (code generation_at_capacity); nothing is charged and cached images keep serving.
Public previews and ready images (free)
Every image a /cars page shows is a public preview: free, keyless and kept by the CDN, at a stable URL search engines may index:
https://carimage.dev/images/previews/{make}/{model}/{year}/{color}/{view}-{width}.webp (width 320 or 600)Previews are the renders the pages show, in the paint they show them in, and nothing else: a URL for any other vehicle, paint or size is a 404 (not_a_preview). Any other image, including another paint or size of a rendered car, is delivered through a signed URL (one vehicle image, CDN-cached, no key in the page) or an API key. 600 px is the largest preview: the 960 and 1024 px preview URLs of earlier pages are a permanent 308 to the same render at 600 px, and a signed-in account sees every stored render of a page at the same 600 px. The full size is a request with your API key, which the playground runs for you as one vehicle image.
GET /images/car.png?…&mode=cached takes the image parameters, vehicle= included, and never renders. Without a key it tells you, for free, whether an image is ready: a public preview answers with a 308 to its preview URL, any other rendered image with a 401 (code: "signed_url_required", cached: true), and an image not rendered yet with a fast 404 (code: "not_cached"). client.isImageReady() in the SDK asks it for you. With a key, mode=cached is a billed delivery (one vehicle image) that never renders; a missing image is a free 404.
Free image requests reaching the origin share a limit of 600 per hour and 60 per minute per IP. On 429 (free_image_rate_limited), wait Retry-After seconds. Keyless previews and keyless mode=cached also stop at 300 different images a day per IP (429 free_image_daily_limit, until midnight UTC); reloading an image, at any size, does not count again. Browser and CDN cache hits do not count. See rate limits.
- Decode the VIN (free) or look the vehicle up, and keep its vehicle id.
- Create a signed URL with POST /api/v1/image-urls (one vehicle image) and put it in the
<img>: a ready image loads at once, a missing one renders on its first load. - To decide before counting it, ask
mode=cached,client.isImageReady()or, for a whole list, POST /api/v1/images/availability first.
Coverage is partial and changes as images are rendered, so treat a 404 as "not yet".
curl -sI "https://carimage.dev/images/car.png?vehicle=veh_3qfyk22gfhsx3&view=front-3-4&mode=cached"
# 308 to a public preview, 401 signed_url_required (ready), or 404 not_cachedErrors
400— a parameter is missing or invalid; thedetailsays which (a parameter sent twice or under two spellings,vehicletogether with make, model or year, acolorthat is neither a preset, a CSS color name nor a hex,aspect_ratioorresolutionbesidesize,background=transparentwithformat=jpg). An unknown parameter is an error. Tracking tags and cache busters are ignored and listed inX-Ignored-Parameters.401— missing, revoked or malformed key.402— the plan's vehicle images for the month are used up (plan_image_limit). Nothing was charged. Do not retry; tell the human (see errors). On Pro and Business the same status withplan_download_limitmeans the plan's month of images as files is used up: the image still loads through a hosted URL.404— the vehicle is not in the catalog for that year, or no vehicle has that id. Do not retry the same input. For catalog imports, use the years and vehicle ids returned by vehicle search instead of combining every model with every year. Review the response'ssuggestionsor check the catalog's spelling and years before continuing.429— rate limited; waitRetry-Afterseconds.502— the render failed; refunded.503—generation_at_capacity: new renders resume atreset_at(Retry-After); nothing charged.
Every failure is application/problem+json. See Errors.