Skip to Content
TryItOn
DocsAPI ReferenceSDKsResources

Troubleshooting & FAQ

Fixes for common TryItOn API problems: 403 and 429 errors, stuck or failed jobs, CORS, expired results, poor quality and live sessions that won't start.

Find your symptom, then follow the link for the full rules. Every error response has an error.name: branch on that, not on the message. The full list is on Errors.

Requests that fail

403 Forbidden

The API key check failed. Check, in order:

  • The header is exactly Authorization: Bearer YOUR_API_KEY. A missing Bearer prefix is refused.
  • The key still exists. A deleted key is refused right away. A site key for the embed widget is not an API key.
  • On try-ons and live starts, a 403 with "Your account has been disabled" means the account is off. Contact us.

See Authentication. Don't retry a 403 unchanged.

429 Too Many Requests: which one?

Read error.name:

error.nameCauseWhat to do
RateLimitExceededOver 300 requests per minute per IP, 30 photo try-ons per minute per account, or a live endpoint limit.Back off with jitter and retry within the 60 second window.
ConcurrencyLimitExceededRunning photo jobs already hold 10 or more credits.Wait for a running job to finish, then resubmit.
OutOfCreditsNot enough spendable credits. Credits held by running jobs don't count.Buy credits. Retrying won't help.
LiveTryonBusy3 live streams already running on the account.End one first.

These are default limits. They can be raised per account. See Rate Limits and Pricing & Credits.

413 PayloadTooLarge

The JSON body is over 12 MB on /tryon/* and POST /live/garments, or over 10 KB anywhere else. Send large images as a public URL instead of base64. See Image Guidelines.

400 InvalidCategory

The category and subcategory pair isn't valid, or you sent a subcategory with category: "auto". Use a pair from the fashion try-on table, or leave subcategory out.

CORS error in the browser

The photo try-on, status, credits and server-side live endpoints don't allow calls from other sites' browsers. Call them from your server, which also keeps your API key secret. The live browser endpoints are the exception: they accept any origin and use the session secret. For a no-backend option, use the embed widget.

Jobs and results

Job stuck in processing

A job still running 3 minutes after you submitted it is marked failed with "Timed out.". It costs nothing, so resubmit it. If the SDK wait helper gave up first, keep polling the same job id. See Jobs, Polling & Retries.

Job failed: the image couldn't be loaded

The submit only checks that the image is there. It's fetched when the job runs. Common causes:

  • The URL isn't public: it needs a login or cookie, or it's a signed link that expired.
  • The host blocks hotlinking or bot traffic. Host the image yourself or send base64.
  • The image is over 25 MB, the host took longer than 15 seconds, or the URL redirects more than 5 times.
  • The URL points at localhost or a private network.

Test the URL in a private browser window. See Image Guidelines.

The result URL returns 404

Result images are deleted about 72 hours after the submit, and GET /status/{id} returns 404 after 3 days. Download results you want to keep. See Data Retention.

The result looks wrong or low quality

Most quality problems come from the input photos. Follow the Image Guidelines. Send an explicit category and subcategory when you know them: with auto, a failed guess falls back to clothing. Ask for up to 4 images with num_samples and keep the best one.

I got two jobs for one request

A network error on submit can hide a job that was created. See retries and duplicate jobs.

Live try-on

A live session won't start

  • 429 OutOfCredits: a session needs minCredits to start. Read it from GET /live/config.
  • 429 LiveTryonBusy: the account already runs 3 streams.
  • 409 LiveSessionActive: a session is running for this end_user_id. Stop it or retry.
  • 503 LiveTryonUnavailable: live try-on is off for your account or at capacity. Retry later or offer a photo try-on.

See live sessions.

The camera or video doesn't show

The browser needs camera permission and HTTPS. Call openCamera() from tryiton-live to ask for permission before your server starts a billed session. On iPhone, see iOS Safari. If your page sets a Content Security Policy, allow the hosts listed in the quickstart. If you sent allowed_origin, it must match the page's origin.

A live session stopped

Read the session's endReason (full list in end reasons):

  • out_of_credits: the next tick couldn't be paid. Top up.
  • time_limit: the session reached max_seconds.
  • hidden: the page was hidden (another tab, app or a locked phone). tryiton-live ends it by default.
  • stale: the device stopped sending heartbeats.
  • superseded: a new session started for the same end_user_id.

A stream that fails to connect within 20 seconds gets its held credit back, up to 5 times per account per UTC day. See Live Try-On Billing.

Status and help

Is the API up?

GET https://tryiton.now/api/v1/health returns 200 with { "ok": true }. It needs no API key, so you can point an uptime monitor at it. There's no public status page.

Getting help

Use the contact form. Include the job or session id, the time, the endpoint and the error.name. Never send your API key.

On this page