Reference
Rate limits & idempotency
Request limits, the rate-limit headers, and safe retries with Idempotency-Key.
Rate limits
Limits are counted per minute. By default:
| Limit | Default |
|---|---|
| Per API key | 600 requests / minute |
| Per account (all keys together) | 2 × the per-key limit (1,200 / minute) |
Per sub-account, when a reseller acts with RelayPoint-Account | 600 requests / minute |
POST /v1/connections/{id}/request and GET /v1/connections/{id}/credentials | 30 / minute per key, 60 / minute per account (each) |
Every response carries the headers of the tightest limit that applies. When a limit is reached you get 429 rate_limited with Retry-After in seconds. If you need higher limits, contact support.
HTTP/1.1 200 OK
X-Request-Id: req_…
RateLimit-Limit: 600
RateLimit-Remaining: 587
RateLimit-Reset: 42Idempotency-Key
Network errors happen. To retry a POST without doing (or charging) it twice, send an Idempotency-Key header with a value you choose (up to 255 characters, e.g. your own order id) and reuse it for every retry of that operation.
curl https://api.relaypoints.online/v1/jobs \
-H "Authorization: Bearer $RELAYPOINT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042-video" \
-d '{ "model": "rp/video-gen", "input": { "prompt": "A lighthouse at dawn" } }'- The first final answer (2xx or 4xx other than 409/429) is stored for 24 hours. A retry with the same key, path and body gets the same response again, with the header
Idempotent-Replayed: true, and nothing runs or is charged a second time. - The same key with a different body or path returns
422 idempotency_mismatch. - While the first request is still running, a retry returns
409 idempotency_conflict: wait and retry. 5xx,409and429answers are not stored, so a retry with the same key runs the request again.- Keys are scoped to the account the request acts for (your account, or the sub-account in
RelayPoint-Account). - A streamed chat response can't be replayed: a retry of a streamed request with the same key returns
409.