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
A red hatchback in a dark studio with light strips and a reflective floor, as returned by a render.
POST /api/v1/renders
# 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"}
An AI-generated demo car, rendered by the console. Read the OpenAPI spec.

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.

  1. Make a key in the console under Settings → Developers. The API comes with the Lot plan and up, and a key is shown once.
  2. GET /account checks the key: its scopes and the account's balance.
  3. GET /backgrounds lists the studios. Pick a background_id.
  4. POST /renders with up to 50 public https photo URLs. It answers 202 with a render_id.
  5. Poll GET /renders/{id} until status is no longer processing, or pass a webhook_url and 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.

quickstart.py
# 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.

MethodPathWhat it does
GET/openapi.jsonThe machine-readable contract (OpenAPI 3.1). No key needed.
GET/accountWhich key this is, its scopes, and the account's balance.
GET/creditThe balance and every line charged against it, up to 500 at a time.
GET/backgroundsThe studios this key may render onto, with thumbnails.
POST/images/validateFree checks before you render: exterior or interior, body type, angle, tilt, and whether the car is cut off. Up to 20 images.
POST/rendersStart a render: up to 50 public https image URLs and a background_id. Answers 202.
GET/renders/{id}Status and the finished images.
POST/spinsTurn 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/processProcess a vehicle by VIN, stock number or license plate (registrationNumber): up to 200 photos and one video.
GET/merchandiseOne 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
verify.js
// 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.

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.

LimitApplies toAllowance
writePOST /renders, POST /spins, POST /merchandise/process, POST /images/validate10 back to back, then one more a minute (60 an hour), per key.
readEvery GET except the spec60 back to back, then two more a second, per key.
SpecGET /openapi.jsonNo key and no rate limit.
BodyEvery POSTUp to 256 KB. The API takes URLs, not files.
Photos/renders, /images/validate, /merchandise/processUp to 50, 20 (30 MB each) and 200 URLs per call. Duplicates on a vehicle request are dropped.
Video/spins, /merchandise/processOne public https URL, up to 500 MB. A spin is 12 to 72 frames, 36 by default.
RetriesIdempotency-Key on /renders, /spins, /merchandise/processThe 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.

StatusCodeWhat it means
400key_in_queryA 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.
400bad_jsonThe body is not valid JSON.
400no_images, too_many_imagesNo photo URLs, or more than the call takes.
400bad_image_url, bad_video_url, bad_webhook_urlA URL that is not https or not a public address. index says which photo.
400no_backgroundbackground_id is missing, or is not a string or a number.
400bad_framesA spin's frames is outside 12 to 72, or spinFrameCount is not 36 or 72.
400video_unreachableThe video could not be fetched, or is over 500 MB.
400no_identifier, no_product, no_video, unsupported_product, nothing_startedVehicle 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.
401no_key, invalid_keyNo Authorization: Bearer header, or a key that is not valid. A wrong, revoked or unknown key gets the same answer.
402no_credit, insufficient_creditNot enough credit. A refused spin also carries needed and balance.
403plan_requiredThe account's plan does not include the API. It starts at Lot.
403missing_scopeThe key lacks the scope this call needs; required_scope names it.
404not_foundNo such endpoint, or a render, spin or vehicle that does not exist or belongs to another account.
413body_too_largeThe body is over 256 KB.
429rate_limitedToo many reads or writes. Wait Retry-After seconds.
500start_failed, internalSomething 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

US dollars a month, excluding tax. Yearly is two months free.Every plan and pack

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.