Skip to main content

When this happens

Two distinct triggers share this error code:
  • Raw byte cap. The request body exceeds the API’s configured MAX_REQUEST_SIZE (10 MB by default).
  • Per-analyzer token cap. The hero POST /api/v1/analyze/ rejects prompts that exceed the per-analyzer token limits (e.g. 100,000 tokens for the safety / prompt-injection / vector analyzers, 1,000,000 for YARA / SDP / URL).
The response detail tells you which.

Example response

For an analyzer-level cap:

How to fix

  • For prompt analysis: trim the prompt or split it into chunks yourself before sending to Agnes. The classifier already chunks at 400 tokens internally for prompt-injection; the cap is on the input you submit.
  • For uploads / threat-intel ingestion: split the payload across multiple requests.

Per-analyzer token caps

The combined analyzer enforces the most restrictive limit across the analyzers in your policy.

SDK behaviour

SDKs do not retry 413s.