TryItOn
Concepts

Virtual Try-On API Pricing & Credits

How virtual try-on API pricing works: 1 credit per output image for clothing, hairstyle and tattoo try-on, per-second live billing, holds and refunds.

The TryItOn virtual try-on API is paid with credits. You buy credits and spend them on any model: clothing and accessories, hairstyle, tattoo and live try-on. You pay for the images and live seconds you actually get, not for requests.

How virtual try-on API pricing works

ModelEndpointCost
Clothing & accessoriesPOST /tryon/fashion1 credit per output image
HairstylePOST /tryon/hairstyle1 credit per output image
TattooPOST /tryon/tattoo1 credit per output image
Live (real-time webcam)POST /live/sessions1 credit per secondsPerCredit seconds of streaming (2 seconds by default)

num_samples (1 to 4) sets how many images a photo try-on produces, so one request costs 1 to 4 credits. Checking a job (GET /status/{id}), reading your balance (GET /credits), reading the live config and preparing a live garment don't cost credits.

To buy credit packs or a subscription, go to tryiton.now/app/billing.

One balance for everything

Your account has one credit balance. The TryItOn web app, browser extension, mobile app, storefront widget and the API all spend from it. If you also use the storefront widget on the same account, its try-ons use the same credits (and the same rate limits) as your API calls.

You pay only for images you get

  • Partial success: a job asked for num_samples: 4 may come back with fewer images in output. You're charged only for the images produced.
  • Failed jobs are free: a job that ends with status: "failed", including one that timed out after 5 minutes, costs nothing.
  • Rejected requests are free: a request that returns an error (400, 403, 429, …) creates no job and no charge.

Credit holds

When you submit a photo try-on, the API checks that you have at least num_samples spendable credits and holds that many while the job runs. When the job ends, the hold turns into a charge for the images produced and the rest is released.

Holds matter for two reasons:

  • Held credits can't be spent on another job. A request that needs more than you have left fails with 429 OutOfCredits.
  • Holds count toward the concurrency limit: new work is refused while 5 or more credits are held. See concurrency.

Read your balance

GET /credits returns four numbers:

FieldMeaning
subscriptionCredits from your subscription plan's allowance.
purchasedCredits from packs you bought. They don't expire. Refunds land here.
reservedCredits held by in-flight jobs and live sessions right now.
on_demandsubscription + purchased + reserved.

on_demand includes held credits, so it is not what you can spend. Compute spendable credits yourself:

spendable = subscription + purchased − reserved

For example, this response means you can start jobs worth 149 credits, not 151:

{
  "ok": true,
  "credits": {
    "on_demand": 151,
    "subscription": 50,
    "purchased": 100,
    "reserved": 1
  }
}

A cheap pre-check before a batch: read /credits, compute spendable, and only submit as many images as it covers. The API still enforces the balance on every request, so treat the pre-check as a courtesy, not a guarantee.

Live try-on billing

Live sessions are billed by time:

  • Starting a session needs at least minCredits spendable credits (enough for 10 seconds; 5 credits at the default price). It holds 1 credit.
  • Billing starts when the first try-on frame plays, not when the session is created. After that, each credit buys secondsPerCredit seconds.
  • When the session ends, the current partial period is charged as a full credit.
  • If the stream never produced video, the held credit is returned.

Read secondsPerCredit, minCredits and maxSeconds for your account from GET /live/config (getLiveConfig() in the SDKs) instead of hard-coding them. The Live Virtual Try-On API reference has the full billing rules.

On this page