On the Workers Free plan, a Workers AI ticket summariser fails with 429 errors every afternoon and recovers next day; what limit is it hitting, and how do you fix it?
answer
- a daily allowance, not a per-minute one
- the unit is neurons
- resets at midnight UTC
- output tokens cost more than input
- two different 429 codes
basics
~20 sIt is spending the daily free allocation of 10,000 neurons: Workers AI then returns 429 with internal code 3036 until the reset at 00:00 UTC. Move to Workers Paid, which bills usage beyond 10,000 at $0.011 per 1,000 neurons, or cut neurons per call.
solid answer
~40 sWorkers AI meters compute in **neurons**, priced per model per input and output token. Both Workers plans include 10,000 neurons per day; on Free, the next call after that fails with HTTP 429 and internal code `3036` (Account limited) until the allocation resets at 00:00 UTC, which is why it recovers the next day. The fix is either the Workers Paid plan, where usage beyond the 10,000 is billed at $0.011 per 1,000 neurons, or fewer neurons per ticket: a cheaper model, a lower `max_tokens` (output tokens cost far more than input on most models), shorter prompts, and not summarising unchanged tickets again. Rule out the other 429, code `3040` (Out of capacity), which is transient and worth retrying, and the per-task request rate limits, which bite per minute rather than per day.
go deeper
Know that Workers AI is billed in neurons, that 10,000 a day are free, and that the allocation resets at 00:00 UTC.
Explain how per-model input and output prices turn one call into a neuron count, and why output tokens dominate on most text models.
Diagnose from the internal code: 3036 is the daily allocation, 3040 is capacity, and a daily recovery pattern rules out the per-minute rate limits.
Set a neurons-per-ticket budget, pick the model and max_tokens that meet it, and alert separately on budget and capacity errors.
## The pattern points to a daily allowance Failures that start at some point in the day and clear the next day are the signature of a **daily allowance**, not of a per-minute rate limit or a capacity shortage. In Workers AI, that allowance is the **free allocation of 10,000 neurons per day**, which both the Workers Free and Workers Paid plans include. All limits reset daily at **00:00 UTC**, so a team in a western time zone sees the summariser recover in its own afternoon or evening, not at local midnight. ## What a neuron is A **neuron** is Workers AI's unit for the GPU compute a request takes. Each model has its own price in neurons per million input tokens and per million output tokens (or per audio minute, per image tile and so on). The pricing page shows the same rates in dollars, but billing is in neurons. For `@cf/meta/llama-3.3-70b-instruct-fp8-fast`: | Token type | Neurons per million tokens | |---|---| | Input | 26,668 | | Output | 204,805 | A ticket summary with 1,500 input tokens and 200 output tokens costs about 40 + 41 = **81 neurons**, so the free 10,000 covers roughly 120 tickets a day. The same call on `@cf/meta/llama-3.1-8b-instruct-fp8` (13,778 in, 26,128 out) costs about 26 neurons, roughly 380 tickets. ## Telling the 429s apart | Internal code | HTTP | Meaning | What to do | |---|---|---|---| | `3036` Account limited | 429 | daily free allocation of 10,000 neurons used up | upgrade to Workers Paid or spend fewer neurons | | `3040` Out of capacity | 429 | capacity temporarily exceeded | retry with backoff; `rejectIfBusy` makes it fail fast | | `5035` | 403 | the model requires Workers Paid | change model or plan | There are also default **request rate limits per task type**: 300 requests per minute for text generation, and 20 per minute per account for each model that requires Workers Paid. They bite during bursts and clear within a minute, so they do not match a failure that lasts until the next day. Workers AI errors carry an internal code beside the HTTP status, so log both; the Workers AI dashboard shows neuron usage over the day. ## Fixing it **Option 1: change plan.** Workers Paid keeps the same 10,000 free neurons per day and bills the rest at **$0.011 per 1,000 neurons**. At 81 neurons a ticket, a summary costs under a tenth of a cent beyond the allocation. For a production feature this is usually the answer. **Option 2: spend fewer neurons per ticket.** - Cap `max_tokens`. On the 70B model an output token costs about 7.7 times an input token, so a 200-token summary limit matters more than trimming the prompt. - Try a smaller model on a sample of real tickets; for summarisation, an 8B model may be good enough at a third of the cost. - Keep the system prompt short and send the ticket text once, not the whole thread history each time. - Store each summary and skip tickets whose text has not changed since the last run. **Option 3: move non-urgent work.** A backlog summarised in bulk can go through the asynchronous Batch API, which queues requests rather than failing them when capacity is short. It still spends neurons, so it does not get around the Free plan's allocation. ## Watching it in production - Read `usage` (`prompt_tokens`, `completion_tokens`) on each result and log neurons per ticket. - Alert on `3036` as a budget event and on `3040` as a capacity event; they need different responses. - Remember that calls made during local development reach the real service and count toward the same limits. - Some catalogue models now require Workers Paid outright: on the Free plan they answer with HTTP 403 and code `5035` from the first call, which is a different fix from an exhausted allocation. ## Why the Free plan is the wrong home for a production feature The Free plan is designed for trying models. A feature that agents rely on all day will cross 10,000 neurons on any real volume, and on Free the response to crossing it is an outage until 00:00 UTC rather than a bill. Moving to Workers Paid turns the same event into a predictable cost, and the neuron arithmetic above makes that cost easy to forecast per ticket.
- The same summariser on Workers Paid starts returning 429 with code 3040 at peak hour; is that the neuron allocation again?No. `3040` means capacity was temporarily exceeded, which is transient and unrelated to the daily allocation. Retry with backoff. If an interactive caller would rather fail fast than wait in a capacity queue, pass `rejectIfBusy: true` in the third argument of `env.AI.run()`; for background work, the Batch API queues requests instead of rejecting them.
- Why does capping max_tokens usually save more neurons than shortening the prompt?Most text models price output tokens far above input tokens. On `@cf/meta/llama-3.3-70b-instruct-fp8-fast` it is 204,805 neurons per million output tokens against 26,668 per million input, about 7.7 times as much. Removing 100 output tokens saves as much as removing about 770 input tokens.
Neurons work like a prepaid daily data allowance on a phone plan: every call draws on it at a rate set by how heavy the request is, unused allowance does not roll over, and on the free tier you are cut off until the daily reset rather than billed.
- Every 429 from Workers AI means the free allocation is used up.
- The free neuron allocation resets at local midnight in the account's time zone.
- Unused free neurons roll over to the next day.
- Workers Paid removes the 10,000 free neurons and bills from the first call.
- Input and output tokens cost the same number of neurons.
Assumes Workers AI pricing and limits as of 2026-10-10: 10,000 free neurons a day on both Workers plans, $0.011 per 1,000 neurons beyond on Workers Paid, and some frontier models moved to Paid-only in July 2026.