Who can use them
Accounts that have bought credits or subscribed to a plan. Free signup credits do not work for batches.Pricing
Failed, cancelled and expired items are never charged. A batch of 3 completed items costs 2 credits. An item with several products counts once per product.
What an item looks like
Each item is the Create Try-On body, plus an optionalcustomId of your own. Two differences:
- JSON only. Images go by
url, or for the person by theidof a prior Upload Image. No file uploads in a batch. - Garments only. Items whose product is not clothing fail with
BATCH_PRODUCT_NOT_SUPPORTED, at no charge. Send those through Create Try-On.
Getting the results
- Webhooks. Every item sends its own
generation.completedorgeneration.failed. Subscribe tobatch.completedto hear when the whole batch is done. - Polling. Get Batch works at any time, not only at the end: it returns the progress counts and every item so far, page by page, with
resultImageUrlon the ones already done.
Cancelling and expiry
Cancel Batch stops every item that has not started; they fail withBATCH_CANCELLED. Items already running finish and are charged.
An item that has not run 4 hours after the batch was created fails with BATCH_EXPIRED, and the batch ends as EXPIRED.

