Limits by Plan
| Plan | Requests/Minute |
|---|---|
| Free | 20 |
| Starter | 60 |
| Pro | 200 |
| Scale | Custom |
API rate limiting
| Plan | Requests/Minute |
|---|---|
| Free | 20 |
| Starter | 60 |
| Pro | 200 |
| Scale | Custom |
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1704470400
const response = await fetch('https://api.boostgpt.co/v1/bots', {
headers: { 'Authorization': `Bearer ${apiKey}` }
});
const remaining = response.headers.get('X-RateLimit-Remaining');
console.log(`Requests remaining: ${remaining}`);
async function makeRequestWithRetry(url, options, maxRetries = 3) {
for (let i = 0; i < maxRetries; i++) {
const response = await fetch(url, options);
if (response.status === 429) {
const wait = Math.pow(2, i) * 1000;
await new Promise(resolve => setTimeout(resolve, wait));
continue;
}
return response;
}
throw new Error('Max retries exceeded');
}
Was this page helpful?