# Nova AI - Rate Limits

Nova AI uses rate limits to ensure fair usage and maintain service quality.

## Default Limits

- **Per-Minute**: 60 requests
- **Per-Day**: 1,000 requests

*Note: You can configure custom limits when creating an API key, up to 1,000 requests/minute and 10,000 requests/day.*

---

## Response Headers

Check these headers to monitor your usage:

| Header | Description |
|:---|:---|
| `X-RateLimit-Limit-Minute` | Max requests per minute |
| `X-RateLimit-Remaining-Minute` | Requests remaining this minute |
| `X-RateLimit-Reset-Minute` | Unix timestamp of next reset |
| `X-RateLimit-Limit-Day` | Max requests per day |
| `X-RateLimit-Remaining-Day` | Requests remaining this day |

---

## Handling Rate Limits (429 Errors)

If you exceed a limit, the API returns HTTP `429 Too Many Requests`. The `Retry-After` header indicates how many seconds to wait.

### JavaScript Example (Exponential Backoff)

```javascript
async function makeRequest(url, options, retries = 3) {
  for (let i = 0; i < retries; i++) {
    const response = await fetch(url, options);
    
    if (response.status === 429) {
      const retryAfter = response.headers.get('Retry-After');
      const wait = retryAfter ? parseInt(retryAfter) * 1000 : Math.pow(2, i) * 1000;
      await new Promise(r => setTimeout(r, wait));
      continue;
    }
    
    return response;
  }
}
```

For full documentation, visit: https://nova-ai.nabzclan.vip/user/developer/docs/rate-limits