Skip to main content

Rate Limits

To ensure fair usage and platform stability, the Garmint API enforces rate limits on all requests.

Current Limits

Need higher limits? Contact us for enterprise plans.

Rate Limit Headers

Every API response includes headers showing your current rate limit status:

Handling Rate Limits

When you exceed the rate limit, you’ll receive a 429 Too Many Requests response:
The Retry-After header indicates how many seconds to wait:

Retry Strategy

Implement exponential backoff:

Best Practices

Instead of making many individual requests, batch operations where the API supports it.
The garment catalog doesn’t change frequently. Cache the response for at least an hour.
For generation requests, use the webhookUrl parameter instead of polling:
Check the rate limit headers and log them to catch issues before they become problems.

Rate Limit by Endpoint

Some endpoints have specific limits:

Token Limits

Separate from rate limits, generations consume tokens from your account:
  • Each generation costs 1 token
  • Analysis and uploads are free
  • Check your balance via the X-Tokens-Remaining header
When tokens run out, you’ll receive:
Status: 402 Payment Required