Never-Fail AI Render Router

A small Python router that spends your expiring AI plan credits first, walks down a ladder of image and video vendors when one is out of credits or down, keeps your prompt, references and QC the same on every rung, and tells you in the morning what ran dry.
last updated · what has changed

the problem
The overnight render ran and nothing came out. One vendor hit its spend cap, another had an empty balance, and four more with credit sat idle because nothing asked them.
On my own pipelines I've had all the versions of this: a job that stopped at 2:53 AM on "exhausted balance" when the same frame rendered elsewhere in 29 seconds the next morning, a backup rung that dropped the reference images and invented the label, a run that hung two hours on an approval prompt, and subscription credits expiring unused while a pay-per-image API paid the bill.
The fix that held was a set of rules with a small piece of code behind them: a dated ladder of vendors, plan credits first, one prompt to every rung, narrow the chain but never leave it, degraded files that say so, and a report every morning. This kit is that, generalized so it runs on your setup.
what's inside
Never-Fail AI Render Router guide: why overnight renders come back empty, the rules, credit-first ordering, building your ladder, one prompt for every backend, references and degraded rungs, the exit codes and rung contract, install and fire drills, video tiers, fail-closed engines, the job queue, shared folders, staying inside each vendor's rules, the morning report, checklists and a sample night. Vendor facts checked December 1, 2026 (PDF + Word)
The render_router package: credit-first routing, the render chain with exit codes 0, 2, 5 and 6, degraded tagging and a publish check, fail-closed job classes, a cross-machine job queue and per-machine path resolution. Python 3.8+, standard library only, keys only from environment variables (Python)
Sample ladder file and request templates: seven image rungs and three video rungs with dated prices and limits, a generic REST rung, and request templates for the Gemini API and the xAI API (JSON + Python)
Fire-drill ladder, mock rung and tests: rehearse out-of-credits, rate limits, bad keys and refusals for free; 21 tests (Python)
Vendor Ladder Workbook: plan credits, reset dates, images left, credits that expire unspent and their value, cost per image on every rung, video cost by tier, and a dated vendor facts tab (Excel)
Render Routing Flowchart: walk the chain, still a real stop, and the morning report, one page each (PDF)
The Notion template: a duplicate link to a workspace with your rungs, the run log and the reset calendar (Notion link)
The terms of use: the first file in the download (PDF)
who it's for
People running AI image or video generation on a schedule or in batches:
creators and small studios rendering overnight
in-house content teams with a weekly product shot or a daily post
agencies running the same pipeline for several brands
You should be able to run a command in a terminal and edit a JSON file. You don't need to write Python to use the router. Works on macOS, Linux or Windows with Python 3.8 or newer.
preview




how it works
Run the tests and a fire drill. The drill ladder puts a mock rung on every step, so you can break vendors on purpose and watch the chain fall through for free.
Write your ladder. Copy the sample ladder file, list your rungs with the prices and limits you checked today, and put each key in an environment variable.
Point your scheduled jobs at one command. It returns one status line and one exit code, and a report that names what ran dry. Read the reports each morning.
where the method comes from
The router is rebuilt from the routing rules and scripts I run on my own image, video and voice pipelines, across several vendors and more than one machine. Every machine name, path, account id and client is gone.
Where my originals reached for shortcuts, the kit teaches the supported method: unattended runs use only API keys and never anything that can prompt, the REST rung identifies your app honestly, rate limits are honored, start frames live on storage you own, and nothing tops up an account. Vendor prices and limits were checked on each vendor's own page on December 1, 2026, and are dated in the kit.
formats and delivery
1 PDF guide and a matching Word file (.docx), plus a PDF flowchart
An Excel workbook (.xlsx)
A folder with the Python package, sample ladder files, rungs, request templates, examples, an engine check script and tests
A Notion access page (PDF) with your duplicate link
One zip, delivered by download link as soon as payment clears
get the kit
$49, one time. One license for you or your business.
All sales are final. Questions first? Email support@gallucci.net before you buy.
questions
Which vendors does it work with?
Any vendor you can call from a script, plus any you use by hand as attended rungs. The sample ladder lists Nano Banana Pro on the Gemini API and fal, GPT Image, Grok Imagine and Soul 2.0, with request templates for the Gemini API and the xAI API. A new vendor is a row in the ladder file and a short rung script.
Do I need to know Python?
You need to run commands and edit a JSON file. Adding a vendor that isn't templated means writing or adapting a short script that follows the rung contract in the guide.
Does it log in to my accounts or read my balances?
No. You read plan balances from each vendor's account page, or your own script does, and pass them in. Keys come only from environment variables. The router never tops up an account, changes billing or accepts terms.
Are the prices in it current?
They're the vendors' published prices and limits as of December 1, 2026, dated wherever they appear. They change often, so the router warns when your ladder file's checked date gets old.
Does it make the images itself?
No. It decides which vendor renders, calls it, checks the result and moves on when a vendor fails. The images come from the vendors you choose, under their terms.
What about voice?
The fail-closed rules and the job queue were built for voice: a public show keeps its licensed voice, internal drafts never start billing a paid engine, and a machine without the engine hands the job to the one that has it.
Can I get a refund?
No. All sales are final, because a digital file can't be returned once it's delivered. If a file arrives corrupted or won't open, email support@gallucci.net within 30 days and I'll send a working copy. If you're not sure this fits your brand, email support@gallucci.net before you buy and ask.
Do I get updates?
No. You get the edition you buy, and nothing on this page promises updates. If a new edition comes out, it's sold as its own product.
Can I use it for clients?
Yes. One purchase is one license for you or your organization. An agency or freelancer can use it on any number of client accounts; the client gets the finished work, not the product files. A client that wants its own team using the files needs its own copy.
Does it guarantee results?
No. Every number in it is a planning figure with a date and a source, there to show the method. What you get out of it depends on your product, your market and how you run it.
what has changed
every change to this product, newest first. the download you buy today is the current version.
December 1, 2026: First released.
terms
Buying or using this product means you accept the gallucciNET terms of use: gallucci.net/terms. A copy (READ_ME_FIRST_terms_of_use.pdf) is the first file in the download.
about giovanni
giovanni gallucci runs gallucciNET. He has spent his career on social, content and launches for food and beverage brands, and runs AI image, video and voice pipelines across several vendors and machines.
He hosts The Daily Trend Report, a morning podcast on food and beverage, content, social and AI (show notes at gallucci.net/podcasts), and wrote A Social Media Marketing Framework for Food and Beverage CPG Brands (2nd Edition) and Viral and Broke: A Field Guide to Social Media for Food and Beverage Brands. More at gallucci.net.
adage, emmy, telly & webby award-winning digital marketing consultant for purpose-driven food & beverage brands.