LA

    LLM API Error Header Reader

    by GlowHalo

    1

    Diagnose LLM API 429 / 402 / 403 errors: read the rate-limit headers, check whether a plan limit of 0 is the likely cause, and sweep which models your key can call.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more
    LA

    LLM API Error Header Reader

    Example session with this skill installed

    Use the LLM API Error Header Reader on this problem (a sample I wrote).

    My script calls a hosted LLM API on a free-tier key. The model example-small-latest always returns 429, even for a one-word prompt, though my dashboard says I used $0 of my monthly quota. Another model, example-mini-8b, works fine on the same key. Raw response of the failing call:

    HTTP/2 429
    content-type: application/json
    x-ratelimit-limit-req-minute: 0
    x-ratelimit-remaining-req-minute: 0
    x-ratelimit-limit-tokens-minute: 0
    retry-after: 60

    {"object":"error","message":"Rate limit exceeded","type":"rate_limited","code":"1300"}

    I already waited 10 minutes and retried: same result. The console 'Limits' page lists example-small-latest with 30 requests/minute. I use Python 3 and the requests library; the API key is in the env var EXAMPLE_API_KEY. The provider has a list-models endpoint at GET https://api.example.com/v1/models and a chat endpoint POST https://api.example.com/v1/chat/completions with OpenAI-style bodies.

    • Read your context and instructions
    • Compiled the llm api error

    Evidence

    Provider / model: unknown provider (placeholder api.example.com), model example-small-latest; endpoint POST https://api.example.com/v1/chat/completions.

    Status / body: HTTP/2 429, {"object":"error","message":"Rate limit exceeded","type":"rate_limited","code":"1300"}

    • Headers (verbatim):
      • x-ratelimit-limit-req-minute: 0 (zero)
      • x-ratelimit-remaining-req-minute: 0
      • x-ratelimit-limit-tokens-minute: 0 (zero)
      • retry-after: 60

    Pattern: fails every time, even for a one-word prompt. Only this model fails; example-mini-8b works on the same key.

    Account facts: free-tier key, dashboard shows $0 of monthly quota used; the console "Limits" page lists example-small-latest at 30 requests/minute.

    • Already tried: waited 10 minutes and retried, with the same result.

    Classification

    A. Model not included in your plan: LIKELY. The per-minute request limit and the per-minute token limit are both 0, so the key has no allowance for this model at all. example-mini-8b works on the same key, so the key itself is valid. The "Limits" page is a plan table, not proof that your key can call the model.
    2.

    B. True rate limit: RULED OUT (mostly). A true rate limit shows a non-zero limit with remaining near 0. Here the limit is 0, a one-word prompt fails, and 10 minutes of waiting changed nothing.
    3.

    D. Permission or key-scope block: POSSIBLE. The body says nothing about region, scope or terms, but a per-model scope restriction could also show limit 0. This is not confirmed.

    Unmatched or ruled out: C (billing or quota exhausted) is ruled out because the status is 429 not 402, the dashboard shows $0 used, and another model works. E (outage) is ruled out because the status is not 5xx and the failure is consistent. F (request too large) is ruled out because a one-word prompt fails.

    Note: I can't tell what code: "1300" means. Check the provider's error-code docs.

    Confirming check

    A vs B: retry-after: 60 is present but the limit headers are 0. Your 10-minute retry already counts as this check. If a limit header is 0 and the call fails again at once, it is class A, and waiting is not the fix.

    A vs D: run the sweep below on the same key. If other models pass and only this one shows limit 0, it is class A. If the failures follow the key's scope, region or project, it is class D. In that case, check the key's project and terms-acceptance settings in the console.

    Availability sweep

    Set EXAMPLE_API_KEY in your environment. The script never prints the key. It sends real requests, so it may use a small amount of quota. Confirm the request shape against the provider's docs.

    import os, time, requests
    
    BASE = "https://api.example.com/v1"
    KEY = os.environ["EXAMPLE_API_KEY"]
    H = {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"}
    
    r = requests.get(f"{BASE}/models", headers=H, timeout=30)
    r.raise_for_status()
    
    # No name filtering: keep date-suffixed and preview models.
    models = [m["id"] for m in r.json().get("data", [])]
    for extra in ("example-small-latest", "example-mini-8b"):
        if extra not in models:
            models.append(extra)
    
    rows = []
    for m in models:
        resp = requests.post(
            f"{BASE}/chat/completions", headers=H, timeout=60,
            json={"model": m, "max_tokens": 4,
                  "messages": [{"role": "user", "content": "hi"}]},
        )
        hdrs = {k: v for k, v in resp.headers.items()
                if k.lower().startswith("x-ratelimit") or k.lower() == "retry-after"}
        rows.append((m, resp.status_code, hdrs, resp.text[:120].replace("\n", " ")))
        time.sleep(2)  # pause so the sweep itself doesn't trigger a real rate limit
    
    def zero_limit(h):
        return any(k.lower().startswith("x-ratelimit-limit") and v.strip() == "0"
                   for k, v in h.items())
    
    works   = [r for r in rows if r[1] == 200]
    blocked = [r for r in rows if r[1] != 200 and (r[1] in (402, 403) or zero_limit(r[2])
               or "plan" in r[3].lower())]
    other   = [r for r in rows if r not in works and r not in blocked]
    
    for title, bucket in (("WORKS", works),
                          ("BLOCKED BY PLAN/BILLING", blocked),
                          ("OTHER ERROR (retry later)", other)):
        print(f"\n== {title} ==")
        for m, code, h, body in bucket:
            print(f"{m:35} {code}  {h}  {body if code != 200 else ''}")
    

    Verdict

    Most likely cause: example-small-latest is not included in your free-tier plan. Both per-minute limits come back as 0. Confidence:

    likely (not confirmed until the sweep shows other models passing with non-zero limits).
    2.

    What to do: use a model the sweep puts in the WORKS bucket, such as example-mini-8b. To use example-small-latest, check in the console whether it needs a paid plan or a different project or key scope. Don't try to get around the limit with extra keys or accounts.
    3.

    What it does not mean: your quota is not used up, which is why the dashboard says $0. Waiting will not help, because a limit of 0 means there is no allowance to refill.
    4.

    Read-back: send one request to the chosen model and expect HTTP 200 with a non-zero x-ratelimit-limit-req-minute. That proves the fix.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    LLM API Error Header Reader helps when a model call keeps failing with 429, 402 or 403 and your dashboard says you have quota left.

    A 429 does not always mean you called too fast. It can happen that a model that is not included in your plan comes back as a 429 with a rate limit of 0, and the console limits page still lists it. Paste the raw response and the Skill:

    1. Restates status, error body and the exact rate-limit and retry headers.
    2. Classifies the failure into six classes (model not in your plan, true rate limit, billing or quota exhausted, permission or region block, outage, request too large) with the header line behind each.
    3. Gives one confirming check with a decision rule.
    4. Writes an availability sweep script that tests each model you list with your own key (read from an environment variable, never printed).
    5. Ends with a verdict, confidence level and a read-back request.

    It does not call any API, never asks for your key, and does not help evade limits.

    Provider, model and platform names mentioned here, as well as Anthropic, OpenAI and OpenClaw, are trademarks of their respective owners. This Skill is an independent product and is not affiliated with, endorsed by, or sponsored by any of them.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 20 days ago

    Permissions

    Network Access
    Listed1 month ago
    Updated14 days ago

    What's inside

    Frequently Asked Questions

    Diagnose LLM API 429 / 402 / 403 errors: read the rate-limit headers, check whether a plan limit of 0 is the likely cause, and sweep which models your key can call.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use LLM API Error Header Reader on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.