Dev.to AI 🤖 Ai 👁 0 📖 6 min read

ElevenLabs Credit Rollover, Simulated: Plan for Bursty Upload Months in 80 Lines of Stdlib Python

#ad #ElevenAgentsPartner Disclosure: I'm an ElevenLabs affiliate partner. This post has no affiliate links; it links only to my own site, where some pages do contain affiliate links. ElevenLabs didn't sponsor or review

#ad #ElevenAgentsPartner

Disclosure: I'm an ElevenLabs affiliate partner. This post has no affiliate links; it links only to my own site, where some pages do contain affiliate links. ElevenLabs didn't sponsor or review this post.

Most credit calculators assume every month looks the same. Mine don't. I'll do a quiet month of Shorts, then a month where I narrate a long series, then go quiet again. Picking a plan off the average gets it wrong both ways: the average says Starter, and the busy month blows straight through it.

ElevenLabs has a rule that changes the answer here: unused credits on paid plans roll over. The rule is simple to state and annoying to do in your head once you add expiry, so I wrote a small simulator.

The rules I'm encoding

From the pricing page and FAQ (checked November 29, 2026; details in my pricing breakdown):

  • Starter is $6/month with 30,000 credits, Creator $22 with 121,000, Pro $99 with 600,000.
  • Unused credits roll over for up to two months while you keep an active paid subscription, so your balance tops out at 3x the monthly quota.
  • Free plan credits don't roll over.
  • Downgrading or cancelling forfeits unused paid credits at the end of the billing cycle. Upgrading carries them forward.
  • Text to speech is about 1 credit per character in the web app.

One thing I could not find stated: which credits get spent first when you hold several months' worth. The script spends the oldest first, which is the friendly case. If your account behaves differently, the "expired" column will be optimistic, so treat it as a best case.

Input: one row per month

Estimate what you'll spend, retakes included. I use script characters times 1.3, because I always regenerate a few lines.

month,credits
2027-01,20000
2027-02,15000
2027-03,48000
2027-04,150000
2027-05,30000
2027-06,30000

April is the series month. Averaged out that's about 49,000 credits a month, which makes Starter look hopeless and Creator look comfortable. Let's see what actually happens.

The simulator

Each month's grant is a bucket with an age. Buckets older than two months fall off, spending drains the oldest bucket first, and a downgrade empties everything.

#!/usr/bin/env python3
"""Simulate ElevenLabs credit rollover for a bursty month-by-month plan.
usage: python3 rollover.py usage.csv [--plan creator | --schedule starter,creator,...]
usage.csv: month,credits   (one row per month, credits you expect to spend)
"""
import csv, sys, argparse

# elevenlabs.io/pricing, checked 2026-11-29 (monthly billing, USD, excl. tax)
PLANS = {
    "starter": (6, 30_000),
    "creator": (22, 121_000),
    "pro": (99, 600_000),
}
KEEP = 3  # credits live in the month granted + 2 more (balance tops out at 3x quota)

def simulate(months, quotas):
    buckets = []  # [age, credits], oldest first
    rows = []
    prev = None
    for (name, need), quota in zip(months, quotas):
        if prev is not None and quota < prev:
            buckets = []  # downgrade: unused paid credits are forfeited
        prev = quota
        buckets = [[age + 1, c] for age, c in buckets]
        expired = sum(c for age, c in buckets if age >= KEEP)
        buckets = [b for b in buckets if b[0] < KEEP]
        buckets.append([0, quota])
        start = sum(c for _, c in buckets)
        left = need
        for b in buckets:  # assumption: oldest credits are spent first
            take = min(b[1], left)
            b[1] -= take
            left -= take
        buckets = [b for b in buckets if b[1] > 0]
        rows.append((name, need, start, expired, left, sum(c for _, c in buckets)))
    return rows

def report(rows):
    print(f"{'month':<8}{'need':>10}{'avail':>11}{'expired':>10}{'short':>9}{'end':>11}")
    for m, need, start, exp, left, end in rows:
        print(f"{m:<8}{need:>10,}{start:>11,}{exp:>10,}{left:>9,}{end:>11,}")

def load(path):
    with open(path, newline="") as f:
        return [(r["month"], int(r["credits"])) for r in csv.DictReader(f)]

def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("csv")
    ap.add_argument("--plan", choices=PLANS)
    ap.add_argument("--schedule", help="comma list, one plan per month")
    a = ap.parse_args()
    months = load(a.csv)
    if a.schedule:
        sched = a.schedule.split(",")
        if len(sched) != len(months) or not set(sched) <= set(PLANS):
            sys.exit("--schedule needs one known plan per month")
        rows = simulate(months, [PLANS[p][1] for p in sched])
        report(rows)
        print(f"cost ${sum(PLANS[p][0] for p in sched)}")
        return 1 if any(r[4] for r in rows) else 0
    plans = [a.plan] if a.plan else list(PLANS)
    best = None
    for p in plans:
        price, quota = PLANS[p]
        rows = simulate(months, [quota] * len(months))
        short = sum(r[4] for r in rows)
        wasted = sum(r[3] for r in rows)
        print(f"\n{p} (${price}/mo, {quota:,} credits)")
        report(rows)
        print(f"total short {short:,} | expired unused {wasted:,} | cost ${price * len(rows)}")
        if short == 0 and best is None:
            best = p
    if not a.plan:
        print(f"\ncheapest plan with no shortfall: {best or 'none of these'}")
    return 0 if best or a.plan else 1

if __name__ == "__main__":
    sys.exit(main())

No dependencies. Python 3.8+ is fine.

Run 1: every plan, same plan all six months

$ python3 rollover.py usage.csv
creator ($22/mo, 121,000 credits)
month         need      avail   expired    short        end
2027-01     20,000    121,000         0        0    101,000
2027-02     15,000    222,000         0        0    207,000
2027-03     48,000    328,000         0        0    280,000
2027-04    150,000    363,000    38,000        0    213,000
2027-05     30,000    334,000         0        0    304,000
2027-06     30,000    363,000    62,000        0    333,000
total short 0 | expired unused 100,000 | cost $132

...
cheapest plan with no shortfall: creator

Starter (not shown) runs 113,000 credits short in April, which you'd expect. Creator covers everything, but look at the expired column: 100,000 credits I paid for and never used, because the balance keeps hitting the 3x ceiling in quiet months. Pro would be worse, with more than 1.5 million credits expiring over the period.

So "Creator every month" works, but it buys a lot of air.

Run 2: upgrade before the burst

Since upgrading carries your balance forward, the obvious move is to stay small until the busy stretch, then step up. --schedule takes one plan per month:

$ python3 rollover.py usage.csv --schedule starter,starter,creator,creator,creator,creator
month         need      avail   expired    short        end
2027-01     20,000     30,000         0        0     10,000
2027-02     15,000     40,000         0        0     25,000
2027-03     48,000    146,000         0        0     98,000
2027-04    150,000    219,000         0        0     69,000
2027-05     30,000    190,000         0        0    160,000
2027-06     30,000    281,000         0        0    251,000
cost $100

$100 instead of $132, nothing short, nothing expired. The trick is upgrading in March, a month before the series, so March's unused credits are already banked when April hits.

Run 3: the downgrade trap

Here's the version I almost did: Starter, upgrade only for April, then drop straight back.

$ python3 rollover.py usage.csv --schedule starter,starter,starter,creator,creator,starter
month         need      avail   expired    short        end
2027-01     20,000     30,000         0        0     10,000
2027-02     15,000     40,000         0        0     25,000
2027-03     48,000     55,000         0        0      7,000
2027-04    150,000    128,000         0   22,000          0
2027-05     30,000    121,000         0        0     91,000
2027-06     30,000     30,000         0        0          0
cost $68

Two problems. Upgrading the same month as the burst leaves April 22,000 credits short (Creator lets you buy extra credits, but that's money on top). And the drop back to Starter in June throws away the 91,000 credits sitting in the account. The script exits 1 here, so you can wire it into whatever planning sheet or CI job you like.

Tests

Three small checks so I trust the bucket logic: a grant expires when entering the third month after it, a downgrade wipes the balance, and a shortfall is reported correctly.

import unittest
from rollover import simulate

class T(unittest.TestCase):
    def test_expiry_after_two_months(self):
        rows = simulate([("m1", 0), ("m2", 0), ("m3", 0), ("m4", 0)], [100] * 4)
        self.assertEqual([r[2] for r in rows], [100, 200, 300, 300])
        self.assertEqual(rows[3][3], 100)  # m1 credits expire entering m4

    def test_downgrade_forfeits(self):
        rows = simulate([("a", 0), ("b", 0)], [200, 100])
        self.assertEqual(rows[1][2], 100)

    def test_shortfall(self):
        rows = simulate([("a", 150)], [100])
        self.assertEqual(rows[0][4], 50)

unittest.main()
$ python3 test_rollover.py
...
----------------------------------------------------------------------
Ran 3 tests in 0.000s

OK

What the model leaves out

  • Billing dates. It works in whole months. A mid-cycle upgrade in real life lands on your billing date, not the 1st.
  • First-month offers. Starter is $1 and Creator $11 for the first month on monthly billing right now. If you're new, that makes the "upgrade early" move even cheaper.
  • Annual billing. Annual is 10x the monthly price (12 months for the price of 10). It only makes sense once you know which tier you'll sit on, and a bursty schedule like this one is the case where you don't know yet.
  • Other products. Dubbing, music and sound effects draw from the same pool at very different rates. Add them to the monthly number, or they'll eat the rollover you were counting on.

The takeaways I actually use

  1. Plan from your busiest month, not your average.
  2. Upgrade one month before a burst, so the rollover is already sitting there.
  3. Don't downgrade while you're holding a big balance. Spend it down first.
  4. If the expired column is big every month, you're on a plan that's too large.

The plan-by-plan details (credits per tool, retake budgets, what each tier unlocks) are in the full guide: ElevenLabs Pricing Explained (2026).

Do your uploads come in bursts too, or do you keep a steady weekly rhythm? Curious how others size plans for uneven months.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.