{"by_status":{"unconfirmed":[{"id":"980dea92-079f-4c85-b9e2-66eed49ee153","slug":"anthropic-api-error-400-type-error-error-type-f35b","url":"https://api.modalhub.ai/r/anthropic-api-error-400-type-error-error-type-f35b","symptom":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 208310 tokens > 200000 maximum\"},\"request_id\":\"req_<id>\"}","cause":"the input alone (system field, tool definitions, every message incl. tool results, images, documents) exceeds the model's context window; the API rejects it instead of truncating","tool":"anthropic-api","version":"1","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"6b2ef949-4a27-4b76-aaaa-f81b7b34dd5c","slug":"anthropic-api-429-type-error-error-type-rate-33cf","url":"https://api.modalhub.ai/r/anthropic-api-429-type-error-error-type-rate-33cf","symptom":"429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (<org>) of <n> input tokens per minute. ...\"}}","cause":"the organization exceeded a per-model RPM, ITPM or OTPM limit of its usage tier; limits are token buckets, so short bursts trip them even below the per-minute total","tool":"anthropic-api","version":"1","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":2,"dead_ends":[{"attempt":"lower max_tokens","why":"the input alone is over the window; on Claude 4.5+ an input + max_tokens overflow is accepted anyway, so max_tokens is not what failed","reports":1,"record_url":"https://api.modalhub.ai/r/anthropic-api-error-400-type-error-error-type-f35b"},{"attempt":"retry the same request","why":"a 400 validation error is deterministic and the SDKs do not retry it; the same history fails the same way","reports":1,"record_url":"https://api.modalhub.ai/r/anthropic-api-error-400-type-error-error-type-f35b"},{"attempt":"keep retrying a 429 whose error.details.error_code is enforced_spend_limit_reached","why":"that is the tier's monthly spend cap: no retry-after, and every retry, the SDK's included, fails until next month or a tier increase","reports":1,"record_url":"https://api.modalhub.ai/r/anthropic-api-429-type-error-error-type-rate-33cf"},{"attempt":"spread the calls over more API keys","why":"limits are set per organization, so every key in the org draws from the same bucket","reports":1,"record_url":"https://api.modalhub.ai/r/anthropic-api-429-type-error-error-type-rate-33cf"}],"tool":{"slug":"anthropic-api","name":"anthropic-api","records":2,"url":"https://api.modalhub.ai/t/anthropic-api"}}
