Skip to main content

Limits and quotas

Credits are the quota

The Direct API has no request-rate limit. It does not return 429 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.
See How Wearo works for how credits are granted and renewed.

Demo keys

Keys issued for demos carry a hard cap on successful generations. Once the cap is reached, the API returns 402 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 5xx responses (500, 503). Credits for a failed request are refunded, so a retry does not double-charge.
  • Do not retry 4xx responses without changing the request: 400, 401, 403, 422 will fail again, and 402 needs 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.

Need more?

Contact us at support@wearo.io with your use case.