LLM API Error Decoder — Explain OpenAI & Anthropic Errors
Paste an OpenAI or Anthropic API error and get a plain-English cause and concrete fixes — 429, context_length_exceeded, insufficient_quota, 401, timeouts and more. 100% local.
Last updated:
CommentsPaste an OpenAI or Anthropic API error — the JSON body or just the message — and this decoder names the problem, shows the HTTP status, explains the cause, and lists concrete fixes. It covers the common ones: 429 rate limits vs insufficient_quota billing, context_length_exceeded, 401 auth, model-not-found, overloaded, and timeouts. Everything runs in your browser.
Rate limit exceeded (429)
HTTP 429You exceeded your requests-per-minute (RPM) or tokens-per-minute (TPM) quota for this model and tier.
- Add exponential backoff with jitter and retry on 429 using the Retry-After header.
- Reduce concurrency or spread requests out; batch where possible.
- Request a higher rate-limit tier, or use the Batch API for non-urgent bulk jobs.
Decoding runs in your browser — nothing is uploaded. Covers common OpenAI and Anthropic errors; for the full list see the LLM API error reference.
What is API Error Decoder?
LLM API errors are terse and easy to misread — the most dangerous example is the 429, which can mean either 'you're sending too fast' (rate_limit_exceeded, fixed by backoff) or 'your billing is empty' (insufficient_quota, which retrying never fixes). This decoder matches your error text against the patterns OpenAI and Anthropic actually return and gives you a plain-English cause plus a short list of fixes you can act on immediately. For context_length_exceeded it points you at trimming the prompt or raising the model; for 401 it checks the key and organization; for overloaded (503/529) it recommends backoff and fallbacks; for timeouts it suggests streaming and smaller outputs. It's meant for the moment a call fails in production and you need to know, fast, whether the problem is your request, your account, or the provider. Matching is entirely local, so you can paste real error payloads without sending them anywhere, and a link to the full error reference covers anything outside the common set.
How to decode an LLM API error
- 1Copy the error response (JSON body) or the error message from your logs.
- 2Paste it in — the decoder matches it against known OpenAI/Anthropic patterns.
- 3Read the cause and apply the suggested fixes.
Key Concepts
- 429 rate vs quota
- rate_limit_exceeded is traffic; insufficient_quota is billing — only one is fixed by backoff.
- Rate limits
- Turn your RPM/TPM into real throughput and concurrency.
- Full error reference
- The complete list of LLM API errors and fixes.
Tips & Best Practices
- ▸A 429 with insufficient_quota is a billing problem — stop retrying and fix payment.
- ▸Always inspect error.code and the HTTP status; 4xx is usually your request, 5xx is the provider.
Frequently Asked Questions
What does a 429 error mean in OpenAI?
A 429 means 'too many requests', but it has two very different causes. rate_limit_exceeded means you hit your RPM or TPM quota — fix it with backoff and lower concurrency. insufficient_quota means a billing problem (no credit or payment method) — retrying won't help; you must fix billing. Always check the error.code to tell them apart.
How do I fix context_length_exceeded?
Your prompt plus max_tokens exceeds the model's context window. Lower max_tokens, trim or summarize the prompt, use RAG to send only relevant chunks, or move to a larger-context model. Count tokens first so prompt + reserved output fits.
What is insufficient_quota?
It's a billing issue returned as a 429: your account has no remaining credit or no active payment method. Add/verify billing — it is not a traffic rate limit and will not clear by retrying.
Is my error data uploaded?
No. The error text is matched against known patterns entirely in your browser; nothing is sent anywhere.
Try Next
Cosine Similarity
Compute cosine similarity, dot product, and Euclidean distance between two vectors online. Perfect for debugging LLM embeddings, semantic search, and RAG pipelines. 100% local — vectors never leave your browser.
Related Tools
Embedding Cost Calculator
Estimate the cost of embedding a corpus — pick a model, enter the number of documents and average tokens each, and get the total token count and dollar cost. 100% local.
Vector Storage Calculator
Estimate how much memory or disk your embeddings need — enter vector count, dimensions, and precision (float32/float16/int8/binary) to see raw and indexed size. 100% local.
Prompt Cache Calculator
See how much prompt caching saves you. Enter your cached prefix size, per-request tokens, volume, and hit rate to compare cost with and without caching across models that support it. 100% local.
Batch API Cost Calculator
Compare real-time vs Batch API cost for a bulk job. Enter request count and per-request tokens to see how much the ~50% batch discount saves across models that support it. 100% local.
Prompt Injection Detector
Scan untrusted user input for common prompt-injection and jailbreak patterns — instruction overrides, jailbreak personas, system-prompt exfiltration — with a risk score. Heuristic, 100% local.
Text Chunker
Split long text into overlapping chunks for embedding and RAG pipelines. Preview recursive, paragraph, sentence, or fixed strategies with live token counts. Runs 100% in your browser.