Skip to content
Get an API key

Limits

View as Markdown
Limit Value Over it
Requests a minute, per account 60 429 rate_limit_exceeded
Requests at once, per account 4 429 rate_limit_exceeded
Answer tokens a UTC day, per account 2,000,000 (the prompt is not counted) 429 rate_limit_exceeded, with Retry-After until 00:00 UTC
Request body 1 MiB 400 invalid_request
Messages per request 256 400 invalid_request
stop strings 4 400 invalid_request
Answer length (max_tokens) 1 to 8,192 tokens 400 invalid_request
Default answer length 1,024 tokens; 3,072 for a model that thinks first
Context on a PC set up by Noduma 4,096 tokens per request, prompt and answer together The engine ends the answer (finish_reason: "length") or refuses the prompt

The limits per account apply to every key of the account together, and each API key has the same limits of its own. Requests to My PCs count only toward requests at once.

A low balance shortens an answer to what it covers, down to 16 tokens; see Credits.