ReferencePremium
AI writer spend, limits and retention in CoullWorks Blog for Magento 2
How the monthly spend cap, the price table, the token limit, the bulk queue limits and the retention setting really work, what each one stops, and which settings are per store.
Updated 17 November 2026Back to the package pageBuy
The AI writer spends your money at your provider. The module cannot see your provider's bill. It keeps its own estimate and uses it to refuse work. This page says exactly what is estimated, when it is checked, and what each limit does. All of these settings are under Stores, Configuration, CoullWorks, Blog, AI Writer and are listed on Configure.
The estimate#
Every provider call records its tokens, and every picture counts as one. The module prices them from the Price Table, a JSON text setting:
- for each model id,
inandoutare the price per million input and output tokens, andimageis the price per picture. defaultprices any model not listed.- The shipped table matches the vendors' pages on the date noted in the module and will go out of date. Prices change, so you edit the table. The currency is whatever you use when you write the prices.
What you see as Est. cost in history is that estimate. It is not an invoice. It does not include provider fees outside token and picture prices, taxes or exchange rates.
The monthly spend cap#
- Setting: Monthly Spend Cap. Shipped default 20. Empty means no cap. It can be set per store view.
- What counts: the estimated cost of runs in the current calendar month for that store.
- When it is checked: before a provider call. It is checked when you start research or a refresh, again before the research, writing and refresh calls run, before each picture is drawn, and before each brief in the bulk queue.
- How: the check adds a worst-case estimate for the call to what the month has already used. A call that might pass the cap is refused before it is made.
- What you see: "This would go over the monthly AI spend cap: X of Y is used (estimated), so Z remains this month. Raise the cap in the configuration or wait for next month."
- In the queue: the cron stops for that run and the brief stays queued.
Because the check is a worst case, you may be refused while the month's real spend is still under the cap.
Largest Answer per Step (tokens)#
- Setting: Largest Answer per Step (tokens). Shipped default 16000. A value of zero or empty uses 16000.
- What it does: the most the model may write in one step. It is also the figure the cap check uses as the most a step can cost, as if all of it were used.
Lowering it can make long articles end early. Raising it raises the worst-case figure the cap check uses.
Bulk queue settings#
| Setting | Default | What it does |
|---|---|---|
| Provider for Bulk Writing | Anthropic | The provider the queue uses, with its default model. |
| Bulk Queue Concurrency | 1 | How many briefs one cron run starts. |
| Bulk Queue Attempts | 3 | How many tries a brief gets before it is failed. |
See the queue for how they combine with cron.
Provider errors#
When the provider answers with a rate limit (429) or a server error (5xx), the module waits, as the provider's retry-after asks, and tries again a small number of times. If it still fails, the step fails with a plain message and a Try again button. Other errors, such as a rejected key, are not retried.
Retention#
- Setting: Keep Generated Text (days). Shipped default 365.
- What it does: once a day, at 03:30 by cron, generated text older than this is cleared.
- What is kept: the run, its sources and claims, its tokens and cost, and any post you saved.
- What is lost: the stored outline, article and suggested changes. After that Save as draft and Apply stop with a message that the text is no longer stored, and you write it again.
Posts you saved are your content and are never cleared.
Voice notes and disclosure#
- Store Voice Notes are added to every writing prompt after the writing rules. They can be set per store view.
- Show an AI Disclosure on AI-assisted Posts and Disclosure Line set the default disclosure for the store, and a post can override it. See Review.
- Whether you must disclose AI use, and how, depends on your market and use. This is not legal advice.
Which settings are per store#
| Per store view | Global |
|---|---|
| API keys, Monthly Spend Cap, Store Voice Notes, disclosure switch and line | Model lists and defaults, Price Table, Largest Answer, queue settings, Retention, Provider for Bulk Writing |







