Skip to content

Why am I receiving 429 when I have plenty of credits?

A 429 can indicate the per-key request limit, shared concurrency, a UTC daily submission limit or a shared daily cost budget. Sufficient wallet credits do not bypass these operating limits. Read the safe error message and Retry-After header, retain existing task IDs, and wait or reduce load rather than immediately submitting another generation.

RECOVER AND DELIVER API JOBSAISwapLab team · Editorial methodUpdated 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Classify the observed response; Reduce redundant work; Retry under the appropriate condition.
Workflow diagram: Classify the observed response → Reduce redundant work → Retry under the appropriate condition. Read the article for evidence and limits.

More than one ceiling protects the service

The documented implementation limits authenticated requests to 30 per minute per key and active work across website and API. It also applies daily submission and cost controls. The error path currently returns a Retry-After header, but the underlying gates have different recovery conditions: a short wait may help a rate burst while leaving a daily budget exhausted or an uncertain job active. Read the safe message and preserve task identity rather than using the header as an unconditional capacity promise.

What to do next

  1. 01

    Classify the observed response

    Record the endpoint, UTC time, status and returned message. Distinguish a status-poll request from a new creation request when tracing the burst.

  2. 02

    Reduce redundant work

    Consolidate pollers, cache safe statuses in your backend and limit your own queue concurrency. Keep the existing request identifiers so retrying later does not create duplicate tasks.

  3. 03

    Retry under the appropriate condition

    Respect the indicated wait and check whether active work or the calendar budget changed. Do not simply raise max_credits, because that field is not a rate-limit override.

A concrete example

Illustrative diagnosis: a page opens five tabs, each polling the same job every second. Credits remain sufficient, but the key exceeds its request rate. One coordinated backend poller resolves the unnecessary load without adding funds.

429 recovery classification

Returned limit contextRelevant recovery conditionIneffective response
Per-key request rateWait as indicated and consolidate redundant callsAdd funds or create another generation
Shared active workReconcile existing jobs and wait for actual capacityTreat unknown jobs as absent
Daily submission or cost controlCheck the applicable UTC day and service conditionAssume a 60-second header overrides the daily gate

Before you call it ready

  • The returned limit message is retained.
  • Rate and daily-budget conditions are distinguished.
  • Existing jobs are not replaced to escape a limit.

When to stop or choose another method

If your workload needs more throughput than the current service supports, redesign the queue or obtain an explicit supported arrangement. Do not disguise parallel requests behind extra accounts.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation