Developers
A REST API for car photos
Post photo URLs and get studio renders back. Turn a walk-around video into a 360° spin, look a vehicle up by VIN, and have a signed webhook tell your system when the work is done.
- OpenAPI 3.1, no key to read it
- Scoped, revocable keys
- Signed webhooks

# one photo in, a finished image out
curl -X POST https://app.autorestage.com/api/v1/renders \
-H "Authorization: Bearer $AUTORESTAGE_KEY" \
-H "Content-Type: application/json" \
-d '{"background_id":"11475",
"images":[{"url":"https://you/front.jpg"}]}'
# 202 {"render_id":"sku_179…","status":"processing"}
Quickstart
From a key to a finished photo in four calls.
The example is Python with requests; the same calls work from anything that can send JSON over https.
- Make a key in the console under Settings → Developers. The API comes with the Lot plan and up, and a key is shown once.
GET /accountchecks the key: its scopes and the account's balance.GET /backgroundslists the studios. Pick abackground_id.POST /renderswith up to 50 public https photo URLs. It answers 202 with arender_id.- Poll
GET /renders/{id}untilstatusis no longerprocessing, or pass awebhook_urland be told.
After a quiet spell the first job waits one to two and a half minutes for the GPU to start, so poll patiently. After that, renders finish much faster.
# pip install requests
import os, time, requests
API = "https://app.autorestage.com/api/v1"
KEY = os.environ["AUTORESTAGE_KEY"] # never put it in a URL
s = requests.Session()
s.headers["Authorization"] = f"Bearer {KEY}"
def call(method, path, **kw):
while True:
r = s.request(method, API + path, timeout=60, **kw)
if r.status_code == 429: # wait as long as it says
time.sleep(int(r.headers["Retry-After"]))
continue
if r.status_code >= 400:
e = r.json()["error"]
raise RuntimeError(f"{e['code']}: {e['message']}")
return r.json()
# 1. the key, its scopes and the balance
me = call("GET", "/account")
print(me["key"]["scopes"], me["credit"])
# 2. a studio to render onto
studios = call("GET", "/backgrounds")["backgrounds"]
studio = studios[0]["background_id"]
# 3. start the render; the same Idempotency-Key
# sent again is not charged twice
photos = ["https://you.example/4411/front.jpg",
"https://you.example/4411/rear.jpg"]
job = call("POST", "/renders",
headers={"Idempotency-Key": "stock-4411"},
json={"background_id": studio,
"images": [{"url": u} for u in photos]})
# 4. wait for it, or send "webhook_url" and be told
url = f"/renders/{job['render_id']}"
view = call("GET", url)
while view["status"] == "processing":
time.sleep(20)
view = call("GET", url)
for image in view["images"]:
print(image["status"], image["output_url"])
Endpoints
Every endpoint, in one table.
Base URL https://app.autorestage.com/api/v1. JSON in, JSON out, and every endpoint is described in the OpenAPI spec. This reference was updated October 14, 2026.
| Method | Path | What it does |
|---|---|---|
| GET | /openapi.json | The machine-readable contract (OpenAPI 3.1). No key needed. |
| GET | /account | Which key this is, its scopes, and the account's balance. |
| GET | /credit | The balance and every line charged against it, up to 500 at a time. |
| GET | /backgrounds | The studios this key may render onto, with thumbnails. |
| POST | /images/validate | Free checks before you render: exterior or interior, body type, angle, tilt, and whether the car is cut off. Up to 20 images. |
| POST | /renders | Start a render: up to 50 public https image URLs and a background_id. Answers 202. |
| GET | /renders/{id} | Status and the finished images. |
| POST | /spins | Turn a walk-around video (a public https URL, up to 500 MB) into a spin of 12 to 72 frames. |
| GET | /spins/{id} | Every frame, a viewer URL for an iframe, and the video tour once it is made. |
| POST | /merchandise/process | Process a vehicle by VIN, stock number or license plate (registrationNumber): up to 200 photos and one video. |
| GET | /merchandise | One vehicle and everything made for it, found by VIN, stock number, license plate or dealerVinId. |
Webhooks
Told when it is done, with proof it was us.
Register an endpoint in the console and every render and spin that finishes or fails is posted to it, signed with your secret. Or give a webhook_url on a single request.
render.succeeded,render.failed,spin.succeeded,spin.failed- Signed in
X-Spin-Signature: HMAC-SHA256 over the timestamp and the raw body - Tried again after 5 seconds, 30 seconds and 2 minutes if your endpoint is down
// The receiver's check, as our own tests run it.
const crypto = require('crypto');
function verify(secret, header, rawBody) {
const m = /t=(\d+),v1=([0-9a-f]+)/i.exec(header || '');
if (!m) return false;
const t = Number(m[1]);
if (Math.abs(Math.floor(Date.now() / 1000) - t) > 300) return false;
const want = Buffer.from(crypto.createHmac('sha256', secret)
.update(`${t}.${rawBody}`).digest('hex'));
const got = Buffer.from(m[2].toLowerCase());
return got.length === want.length && crypto.timingSafeEqual(got, want);
}
Safe to integrate
The details that save an incident.
The key goes in a header
Authorization: Bearer. A key sent in the query string is refused, because by then it is already in somebody's logs.Keys you can scope and revoke
Made in the console under Settings → Developers and shown once. Scopes:
renders:write,renders:read,backgrounds:read.Rate limits you can see
Every authenticated reply carries
Every limitX-RateLimitheaders, and a 429 says how long to wait inRetry-After. Reads and writes are counted apart, so polling never spends the allowance for starting work.Retries that do not charge twice
Send an
Idempotency-Keywith a POST and a retry gets the first answer back instead of a second render.Only public https URLs
Image, video and webhook URLs must be public https addresses; private ones are refused.
Other accounts' work is invisible
A render that belongs to another account answers 404, the same as one that does not exist.
Limits
Rate limits and sizes, as the gateway enforces them.
Rate limits are a token bucket per key, with reads and writes counted apart. Every authenticated reply carries X-RateLimit-Limit (the bucket size), X-RateLimit-Remaining and X-RateLimit-Reset: seconds until the bucket is full again, or on a 429 the seconds until the next request is allowed, the same value as Retry-After.
| Limit | Applies to | Allowance |
|---|---|---|
| write | POST /renders, POST /spins, POST /merchandise/process, POST /images/validate | 10 back to back, then one more a minute (60 an hour), per key. |
| read | Every GET except the spec | 60 back to back, then two more a second, per key. |
| Spec | GET /openapi.json | No key and no rate limit. |
| Body | Every POST | Up to 256 KB. The API takes URLs, not files. |
| Photos | /renders, /images/validate, /merchandise/process | Up to 50, 20 (30 MB each) and 200 URLs per call. Duplicates on a vehicle request are dropped. |
| Video | /spins, /merchandise/process | One public https URL, up to 500 MB. A spin is 12 to 72 frames, 36 by default. |
| Retries | Idempotency-Key on /renders, /spins, /merchandise/process | The same value from the same key gets the first answer back, kept for up to 24 hours. |
Errors
When the API says no, it says why.
Every failure has one shape: {"error":{"code":"rate_limited","message":"Too many write requests. Try again in 42s."}}. Branch on code, which does not change; show message to a person. A vehicle request that starts only part of what it asked for answers 206, with the rest in data.rejected.
| Status | Code | What it means |
|---|---|---|
| 400 | key_in_query | A key was sent in the URL. It is refused unused; revoke it and make a new one, because it is already in a log somewhere. |
| 400 | bad_json | The body is not valid JSON. |
| 400 | no_images, too_many_images | No photo URLs, or more than the call takes. |
| 400 | bad_image_url, bad_video_url, bad_webhook_url | A URL that is not https or not a public address. index says which photo. |
| 400 | no_background | background_id is missing, or is not a string or a number. |
| 400 | bad_frames | A spin's frames is outside 12 to 72, or spinFrameCount is not 36 or 72. |
| 400 | video_unreachable | The video could not be fetched, or is over 500 MB. |
| 400 | no_identifier, no_product, no_video, unsupported_product, nothing_started | Vehicle requests: no valid VIN, stock number or license plate; nothing asked for; a spin with no video or photos; a product this API does not make; or nothing could be started. |
| 401 | no_key, invalid_key | No Authorization: Bearer header, or a key that is not valid. A wrong, revoked or unknown key gets the same answer. |
| 402 | no_credit, insufficient_credit | Not enough credit. A refused spin also carries needed and balance. |
| 403 | plan_required | The account's plan does not include the API. It starts at Lot. |
| 403 | missing_scope | The key lacks the scope this call needs; required_scope names it. |
| 404 | not_found | No such endpoint, or a render, spin or vehicle that does not exist or belongs to another account. |
| 413 | body_too_large | The body is over 256 KB. |
| 429 | rate_limited | Too many reads or writes. Wait Retry-After seconds. |
| 500 | start_failed, internal | Something failed on our side. Try again, and write to support@autorestage.com if it keeps happening. |
What it costs
The API comes with Lot and up.
API calls draw on the same balance as the console, and GET /credit lists every line charged against it. A photo that fails before it reaches our renderer, or a spin or tour that is not made, is given back automatically. Each vehicle is up to 30 photos, a 360° spin and a video tour, but every API request is new work: a car sent again is charged again, on any studio, and a spin made from a video is a vehicle of its own beside the car's photos.
- 30photos restaged on a studio set
- 1360° spin, up to 72 frames
- 1video tour
Free trial
3 vehicles · no card
$0to start
Solo
40 vehicles a month · $39 a month
$0.98a vehicle
Lot
150 vehicles a month · $119 a month
REST API and webhooks start here.
$0.79a vehicle
Dealership
500 vehicles a month · $299 a month
$0.60a vehicle
Group
1,500 vehicles a month · $699 a month
A dealer group or a marketplace.
$0.47a vehicle
Questions
Asked by developers.
Where do I get an API key?
In the console, under Settings → Developers. A key is shown once, when it is made: give it only the scopes it needs, and revoke it there if it leaks.
Which plans include the API?
Lot and up. Every key has the same rate limits, with reads and writes counted apart. See pricing.
Is there a spec I can generate a client from?
Yes: an OpenAPI 3.1 document at app.autorestage.com/api/v1/openapi.json. It needs no key, so you can read it before you sign up.
How do I know when a render is finished?
Poll GET /renders/{id}, give a webhook_url on the request, or register a webhook in the console for every job. A webhook_url on one request is signed with your account's webhook secret when you have one; without one it arrives unsigned.
Can I look a vehicle up by VIN?
Yes. Process a vehicle by VIN, stock number or license plate with POST /merchandise/process, then fetch it and everything made for it with GET /merchandise?vin=. A vehicle that belongs to another dealership answers 404.
Get a key, render a car.
Start with three free vehicles in the console. The API comes with the Lot plan and up.