The limits
| Limit | Value |
|---|---|
| Calls per minute, per key | 10; every call with a valid key counts, even a refused one. |
| Answers at the same time | 2 per key, 2 across the whole unit for calls from programs. |
| Tokens per day, per key | 200,000 unless agreed otherwise, question and answer together; renewed at midnight. |
| Length of the answer | max_tokens at most 4096. |
| Request | At most 1 MB and 200 messages; the last message is the user’s. |
Past a limit the service answers 429 with the Retry-After header, the seconds to wait. Your program should wait for them and try again.
What is not there
- The agent’s tools are not run: no calculations, connections or actions.
- No web search.
- No files, images or audio: text only. The documents the agent knows are those of its collections shared with “API agenti”.
- No memory between calls, and the calls do not appear among the chat’s conversations.
- Other OpenAI fields, such as
tools,functionsorresponse_format, are ignored.
The same question may get a slightly different answer from the one the agent gives in the chat.
Errors
The service’s errors have a JSON body with a sentence in the unit’s language in error.message, to show to whoever uses the program, and a code in error.code. Two responses do not have that body: the 404 for a wrong address, in plain text, and the 413 for a request over 1 MB, with an empty body. So your program should look at the HTTP status first, and read the JSON only if there is some.
| Code | Meaning | What to do |
|---|---|---|
| 400 | The request is not valid. | Fix what the message says. |
| 401 | Key missing, wrong, revoked or expired. | Check the key; if it was revoked, ask for a new one. |
| 404 | The body names another model, or the address is not one of the two calls. | Drop model, or check that the base address ends in /v1. |
| 413 | Request over 1 MB. | Send less text. |
| 429 | Past a limit. | Wait for the seconds in Retry-After; if the day’s quota is used up, try again tomorrow. |
| 502, 504 | The chat did not answer, or did not finish in time. | Try again shortly. |
| 503 | The service is not ready, or the agent is not shared with “API agenti”. | Pass the message on to the administrator. |
What is recorded
The unit records every call for 90 days: date, key, outcome and number of tokens, never the text of the questions and answers. A refused key that keeps retrying appears once a minute, with the count of attempts. The administrator sees the use of each key on the API keys page (the key).