Catalog ProAPI Docs

Getting started

The Catalog Pro API lets your app make product photos and clothing photos worn by a model. Your server sends us photos, and a couple of minutes later you collect the finished photos.

Base URL

Every request goes to this address, followed by the path of the API you want.

https://us-central1-aiavatar-01.cloudfunctions.net/businessApi

Your API key

Send your key in a header called X-Api-Key on every request. You'll find the key in your dashboard, under API key.

X-Api-Key: cp_live_xxxxxxxxxxxxxxxx
Keep your key on your server

Only call the API from your own backend. Never put the key in a mobile app, a web page or public code — anyone who has it can use up your photos, and we can't be responsible for a key that has been exposed. If it leaks, rotate it in your dashboard.

How it works

  1. Set up your business in the dashboard and buy a plan of photos.
  2. Create your models in the dashboard. These are the people who will wear your clothing.
  3. Send a request from your server. You get a job_id back straight away.
  4. Check the result a couple of minutes later using that job_id, then save the photos on your side.

All the APIs

APIWhat it does
GET /modelsLists the models you created, so your users can pick one.
POST /productsMakes photos of a product on a plain white background.
POST /clothingMakes photos of a garment worn by one of your models.
GET /jobs/{job_id}Tells you if the photos are ready, and gives you their links.
GET /jobsLists your recent requests, optionally for one user.

Three things to remember

Photos take 1–3 minutes

Don't keep your user waiting on a loading screen. Save the job_id and check back once every 15 seconds — not in a loop.

Save your photos

We delete photos 30 days after they're made. Download them to your own storage as soon as they're ready.

One request per user at a time

Each of your users can have one request running. Up to 50 of your users can make photos at the same time.