Business and API

AI Product Photography API for Marketplaces and Apps

By Lokesh BadoliaUpdated 4 min read
AI model wearing the same hoodiePhone photo of an orange hoodie laid flatPhone photoAI result
In this guide
  1. Decide which workflow you need
  2. Keep API credentials on your server
  3. Tie every job to a seller and product
  4. Treat generation as a background job
  5. Show sellers what is happening
  6. Store outputs before they expire
  7. Let sellers approve each image
  8. Measure usable outputs and cost
  9. Questions sellers ask

In short: An AI product photography API lets a marketplace or seller app send a seller's product photos for processing and get the generated images back. With Catalog Pro, your server submits the request, stores the job ID against the seller and product, and checks the job status. Give sellers a review step before any generated image replaces a live listing photo.

Decide which workflow you need

Product photos and clothing-on-model photos use different inputs. For clothing, choose an available model and provide garment references. For products, provide clear views of the actual object. Follow the current product and clothing schemas rather than building requests from an example blog post.

In a seller app, start with one narrow task, such as preparing a product image or showing clothing on a model. Ask for clear references and explain what will happen to them. Do not offer a vague “improve everything” button that silently replaces existing photos. The guide to AI product photography explains what a seller should check in each result.

Keep API credentials on your server

Your browser or mobile app should call your own backend. The backend holds the business key and makes the Catalog Pro request. Do not put a key in a public page, client bundle or analytics event. Start with the authentication and quick-start documentation.

Tie every job to a seller and product

Save the seller, product, original file references and returned job ID together in your own records. Authenticate every request to view a job or download an output. A job ID alone should not give anyone access to another seller's work. The API documentation lists the supported user association fields.

Treat generation as a background job

  1. Validate the source files and associate the request with your product record.
  2. Submit once and store the returned job ID.
  3. Poll for status according to the job documentation.
  4. Handle completion and failure separately.
  5. Save completed files to your own storage and queue them for review.

Do not resubmit a paid generation merely because it has not finished. Check the existing job first. Handle retryable and terminal errors using the error guide.

Show sellers what is happening

Show whether each job is processing, finished or failed. Keep the original photo available the whole time, so a slow or failed job never leaves a listing without an image. Explain a failure in plain words and let the seller try again only after you have checked the existing job.

Store outputs before they expire

The current job documentation says generated photos are deleted after 30 days and exposes an expiry value. Download them to your own storage on completion; do not use temporary output URLs as permanent store images.

Let sellers approve each image

Show the original and the generated image side by side. Let the seller reject a changed colour, logo or shape, and publish only the images they approve.

Measure usable outputs and cost

Track which results pass your product-accuracy review, not only how many requests complete. Test plain products, reflective objects and patterned garments before expanding. Check business pricing separately from consumer photo packs.

Roll the feature out to a small group of sellers first. Measure completion, review acceptance, retries and how many outputs are actually published. Set your seller-facing price from your own costs and support needs, and show it before submission. Do not assume every completed output is usable or that the feature will grow your seller base.

If you sell from your own Shopify store rather than running a seller platform, you may not need the API; see the Shopify photo page.

Questions sellers ask

Can I call the Catalog Pro API directly from a mobile app?

No. Your browser or mobile app should call your own backend, which holds the business key and makes the Catalog Pro request. Never put the key in a public page, a client bundle or an analytics event, where anyone could copy it.

How long are API-generated images kept?

The current job documentation says generated photos are deleted after 30 days and exposes an expiry value. Download each output to your own storage when the job completes, and do not use temporary output URLs as permanent store images.

What should my app do while an AI photo job is still running?

Keep checking the status of the existing job instead of submitting it again, because a resubmission can create another paid generation. Keep the original photo on the listing the whole time, so a slow or failed job never leaves the product without an image.

Should AI-generated images replace listing photos automatically?

No. Show sellers the original and the generated image side by side, let them reject a changed colour, logo or shape, and publish only the images they approve. Avoid a vague “improve everything” button that silently replaces existing photos.

Try it with one photo

Upload a phone photo and see the result in minutes.

Questions first? Chat with us on WhatsApp

Keep exploring