Limits and quotas
Credits are the quota
The Direct API has no request-rate limit. It does not return429 Too Many Requests and does not send X-RateLimit-* headers. The bound on your usage is your credit balance:
- A standard try-on costs 1 credit;
productType: "wedding-dress"costs 2 credits. - When your balance is empty, the API returns
402 Insufficient credits. - A request that fails after consuming credits is refunded automatically.
- Every successful response includes
creditsRemaining, so you can track your balance without another call.
Demo keys
Keys issued for demos carry a hard cap on successful generations. Once the cap is reached, the API returns402 with code: "demo_cap_reached" and the body also carries calendlyUrl, used and cap. Responses to demo keys include demoRemaining. Regular merchant keys have no such cap.
Timeouts
The endpoint is synchronous and generation can take over a minute.
Set your client timeout to at least 150 seconds.
Retrying
- Retry only on
5xxresponses (500,503). Credits for a failed request are refunded, so a retry does not double-charge. - Do not retry
4xxresponses without changing the request:400,401,403,422will fail again, and402needs credits. - Use a short exponential backoff and a small number of attempts.
No webhooks
The Direct API does not send webhooks. Because the call is synchronous, the result (resultUrl) is in the response itself.