Generating video with paid AI providers can get expensive quickly, and a busy system has several jobs calling providers at the same moment. YouTubeVision AI therefore does not add up costs after the fact. It reserves the estimated cost against every applicable budget before each paid call, and it refuses the call if any limit would be exceeded.
Where limits come from
A job can be covered by several limits at once, and every one of them is enforced:
- Budget policies on the Costs and budgets page, scoped globally, to a provider, a niche, a channel, a campaign or a production policy, each with a daily and a monthly limit.
- The daily and monthly budget fields on a niche or a channel.
- A campaign's lifetime budget.
- The production policy's budgets and its maximum cost per video.
The most restrictive limit wins. The seeded budgets are a platform budget of 2,000 per day and 25,000 per month, plus provider budgets for Veo video generation (1,250 per day, 16,500 per month) and Claude text generation (400 per day, 5,000 per month), all in INR. Change them to match your own plan.
The reservation flow
For each paid call, the stage asks the budget ledger for a reservation:
- The ledger takes a SQL Server application lock, so reservations from every worker process are serialised.
- It sums the active and committed reservations for each limit that applies to the job.
- If any limit would be exceeded, the reservation is denied and the job is deferred.
- Otherwise a reservation row is written and the call goes ahead.
- After a successful call the reservation is committed with the actual cost; after a failure or cancellation it is released.
Unused reservations expire on their own, and maintenance cleans them up. A video-generation reservation is held for the polling deadline plus one hour, because clips can take a while.
Because the check and the insert happen under the same lock, 40 workers racing for a budget of 10 can never reserve more than 10 between them.
How estimates are made
A reservation needs a number before the provider has answered, so each kind of call has an estimate:
- Text: input characters divided by 3.5 times the input price, plus the maximum output tokens times the output price. Claude web search adds the allowed searches and their result tokens.
- Video: the per-second price times the planned clip duration.
- Voice: the provider's per-character estimate.
The per-video ceiling
MaxCostPerVideo limits everything reserved or committed for a single job. It is a safety-monotone setting: when several levels set it, the lowest value wins, so a niche cannot raise a ceiling that the global defaults or a policy set lower. The scene-planning stage estimates the full cost before any video is generated and stops early if the plan would not fit.
Budgets are never bypassed to hit a target
This is the most important rule: a denied reservation defers the job, it never overspends. The scheduler also turns remaining budgets into video counts before planning, so it does not queue work that cannot be paid for. Units that are blocked by a budget are reported with the reason while other units continue.
A few details worth knowing:
- Budgets are kept per UTC day. The budget date of a reservation is the UTC date of the call, not the production date.
- Budgets have a currency. A mismatch between a budget and the provider's cost currency is a denial, not a silent conversion.
- A budget policy can raise an alert at a threshold (80 % by default), and an exhausted budget raises a critical alert.
Call quotas are separate from money
Each provider can also have a daily quota of calls (counted across processes per UTC day) and a requests-per-minute limit. These are checked before the reservation, so a runaway loop hits a quota long before it hits your card.
Recommended setup before enabling paid providers
- Set the global budget policy to an amount you are comfortable losing in a bad day.
- Add provider budgets for each paid provider you enable.
- Set a realistic
MaxCostPerVideoin the global defaults. - Keep the production policy paused while you check the cost estimate of a manual job.
You can watch spend per provider, niche, channel and language on the Costs and budgets page. For the bigger picture, see Getting started, or read the pricing page.