Errors and limits
Errors have one shape:
{ "error": { "code": "bad_request", "message": "question is required." } }| HTTP | code |
Means |
|---|---|---|
| 400 | bad_request |
The body or a parameter is wrong. The message says which. |
| 401 | unauthorized |
No key, a wrong key, or a revoked key. |
| 403 | forbidden |
The key lacks the scope, or the expedition is not yours. |
| 404 | not_found |
No such route, or no such run or chat on your account. |
| 405 | method_not_allowed |
Wrong HTTP method. The Allow header says which. |
| 429 | rate_limited |
Over the per-key rate limit. Wait for Retry-After (60 seconds). |
| 429 | usage_cap |
Out of plan credits. |
| 502 | failed / unavailable |
Frank could not finish. Try again. |
Limits
Section titled “Limits”- 120 requests a minute per key, polling included.
question: up to 20,000 characters.context: up to 10 items and 40,000 characters in all.GET /v1/runs/{id}?wait=: up to 50 seconds.- Up to 25 live keys per account.
Need more? Get in touch.
