Skip to main content
Every limit of the API has a stated value, and a request that passes one is told which. get_limits returns all of them for your key, with the prices, the balance, the file types, and the countries a page can be read from.

Read the limits of your key

The call costs nothing. An agent that reads it once at the start of a run knows every limit it can meet.

Size limits of text

A text that is longer than the size limit is not cut in the middle of a sentence. The outline comes in its place, and each section is read by its id.

Size limits of requests

Time limits

A call that reaches its time returns what it has. A document that was not finished comes back as partial, and a search says which part is missing.

Rate limits

A key has 2 rate limits: the number of requests in a minute, and the number of calls that can be in flight at once. get_limits returns both in rates, and every response has them in the headers RateLimit and RateLimit-Policy. A request over a rate limit returns the problem rate-limit-exceeded or concurrency-limit-exceeded, with the number of seconds to wait in retry_after_seconds. The SDKs wait and send the request again.