Skip to content
Get API key

Rate limits

Every standard API key receives the same published payload and throughput limits. Nothing is silently truncated: any request exceeding a payload limit is refused before GPU execution with 422 Unprocessable Entity (or 413 Content Too Large) and is never billed.

ParameterLimitError code when exceeded
state length65,536 tokens422 state_too_long
questions per request128 questions422 too_many_questions
Options per choice question1,024 options422 too_many_options
Levels per score question2 to 10 levels422 invalid_schema
HTTP request body size4,000,000 bytes (4 MB)413 request_too_large
Calibration examples per call200 to 5,000 examples422 too_few_examples / too_many_examples
Labeled examples per question signature≥ 50 examplesSkipped in report (or 422 too_few_examples_per_question if none qualify)
Engine execution timeout10.0 seconds503 engine_timeout

Throughput is enforced per API key using two shared Redis token buckets: a requests-per-second (RPS) bucket with a 2× burst capacity, and an input-tokens-per-minute (TPM) bucket.

Key kindRequests per secondRequest burstInput tokens per minute
Standard key (sk_mouse_...)200 RPS400 requests20,000,000 TPM
Console Playground key (1h TTL)5 RPS5 requests20,000,000 TPM

Need higher sustained RPS or TPM for a batch workload or gateway integration? Contact sales@mouse.dev with your key prefix (sk_mouse_xxxx…) to provision reserved RPS/TPM capacity on a committed-throughput purchase order at the same $0.10 / 1M input and $0.02 / 1M cached token rate—no enterprise markup.

Every authenticated response includes rate-limit state headers:

HeaderDescriptionExample
x-ratelimit-limit-requestsSustained requests-per-second limit for this key.200
x-ratelimit-remaining-requestsRemaining requests available in the burst bucket right now.399
x-ratelimit-reset-requestsWindow reset interval in seconds (1).1
x-ratelimit-limit-tokensInput tokens-per-minute capacity for this key.20000000
x-ratelimit-remaining-tokensRemaining input tokens available in the 60-second bucket.19999926
x-ratelimit-reset-tokensWindow reset interval in seconds (60).60
Retry-AfterIncluded on 429 (rate_limited, token_rate_limited) and 503 (engine_timeout) responses. Integer seconds until enough bucket capacity refills.1