Skip to content

Rate Limiting

PromptJang enforces rate limits using Cloudflare KV with sliding window counters.

Default Limits

EndpointLimitWindow
Ingest (POST /e/:id)100 requests60 seconds
API endpoints60 requests60 seconds

Rate limits are per-organization (based on API key → org mapping).

Rate Limit Headers

Every response includes rate limit headers:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the window resets

Rate Limit Exceeded

When the limit is exceeded, the API returns:

HTTP 429
{"detail": "Rate limit exceeded"}

Back off and retry after the X-RateLimit-Reset timestamp.

Increasing Limits

Rate limits vary by plan:

PlanIngest LimitAPI Limit
Free100/min60/min
Starter ($29/mo)1,000/min300/min
Pro ($99/mo)10,000/min1,000/min

Contact support for custom limits.

Released under the MIT License.