DEV Community

Jaden Vo
Jaden Vo

Posted on Originally published at infinityme.dev

Budgeting ElevenLabs Credits for YouTube Shorts by the Character: Fix Lines, Not Whole Takes

#ad #ElevenAgentsPartner

Affiliate disclosure: I'm an affiliate partner of ElevenLabs and Murf AI. This post links only to my own site, infinityme.dev, and some pages there contain affiliate links to these tools (and others). If you buy through them I may earn a commission at no extra cost to you. Neither company sponsored or reviewed this post.

The usual way to size an ElevenLabs plan for YouTube Shorts is to count minutes: "Starter is about 30 minutes, a Short is under a minute, so a few dozen Shorts." That's fine as a first guess. But ElevenLabs doesn't bill text to speech in minutes. It bills in characters, and the characters you pay for aren't only the ones in your final take. They also include every line you regenerate because it sounded off, and every time you test the hook on another voice.

My ElevenLabs for YouTube Shorts guide has one piece of advice that matters more for the bill than anything else: "Generate the full script once, then fix only the lines that sound off." I wanted to see how much that habit actually saves, so I wrote a ~100-line stdlib Python script. It lints a folder of Shorts scripts against the guide's writing rules, counts credits per character, and compares two ways of fixing a bad take: regenerating just the bad lines, or regenerating the whole script.

Where the facts come from: every plan number and rule below comes from that guide, which took them from the official ElevenLabs pricing page on October 27, 2026. Prices are in USD, exclude taxes and change often, so check the live pricing page before you subscribe. The script, the example scripts, the thresholds I marked as "mine", and the retake models are my own assumptions, and I point them out as they come up.

The numbers the script uses

From the guide (monthly billing, standard prices, checked October 27, 2026):

Plan Price / month Credits / month Approx. TTS minutes Commercial license
Free $0 10,000 ~10 No
Starter $6 30,000 ~30 Yes
Creator $22 121,000 ~121 Yes
Pro $99 600,000 ~600 Yes

Other facts from the same page that the script relies on:

  • Text to speech costs 1 credit per character (the guide cites ElevenLabs' pricing FAQ).
  • Annual billing is the monthly price x 10, which works out to about $5/month for Starter and $18.33/month for Creator.
  • The Free plan has no commercial license, so monetized Shorts need a paid plan.
  • Aim for 100-150 words per Short, at a comfortable narration pace of around 140-160 words a minute.
  • Write for the ear: open with a hook, not "Hey guys"; use short sentences, because text to speech handles periods and commas much better than long clauses with parentheses.
  • Test the hook only: generate just the first sentence with three or four voices before committing.

Two things I had to decide myself:

  • What counts as a character. I count everything you paste: letters, spaces and punctuation. That's the cautious reading. If ElevenLabs counts fewer, you're just a little under budget.
  • The minutes column. "~30 minutes for 30,000 credits" means about 1,000 credits per minute of audio. I use that ratio only to print a rough minute figure. Plan picking works on credits.

The script

Put one Short per .txt file, one sentence or beat per line. The first line is the hook. The script prints words, characters and the per-Short credit cost for both fix strategies, flags anything that breaks the guide's writing rules, then projects a monthly total and picks the cheapest plan that fits:

"""Lint YouTube Shorts scripts and budget ElevenLabs credits per character.

Numbers: infinityme.dev/blog/elevenlabs-for-youtube-shorts/ (ElevenLabs
pricing checked Oct 27, 2026). Thresholds marked "mine" are my assumptions.
"""
import argparse, math, re, sys
from collections import namedtuple
from pathlib import Path

Plan = namedtuple("Plan", "name usd credits commercial")
PLANS = [Plan("Free", 0, 10_000, False), Plan("Starter", 6, 30_000, True),
         Plan("Creator", 22, 121_000, True), Plan("Pro", 99, 600_000, True)]
CREDITS_PER_MIN = 1_000          # derived: 30,000 credits ~ 30 min
WORDS = (100, 150)               # page: aim for 100-150 words
WPM = (140, 160)                 # page: comfortable narration pace
LONG_SENTENCE = 25               # mine

def credits(text):
    """1 credit per character for TTS. I count spaces and punctuation too."""
    return len(text.strip())

def lint(text):
    lines = [l.strip() for l in text.strip().splitlines() if l.strip()]
    words = len(text.split())
    notes = []
    if words < WORDS[0]: notes.append(f"short: {words} words")
    if words > WORDS[1]: notes.append(f"long: {words} words")
    slow = words / WPM[0] * 60
    if slow > 60: notes.append(f"may run {slow:.0f}s at {WPM[0]} wpm")
    if lines and re.match(r"(hey|hi|hello)\b", lines[0], re.I):
        notes.append("hook opens with a greeting")
    if "(" in text: notes.append("parentheses: rewrite as short sentences")
    for s in re.split(r"(?<=[.!?])\s+", " ".join(lines)):
        if len(s.split()) > LONG_SENTENCE:
            notes.append(f"long sentence ({len(s.split())} words): {s[:30]}...")
    return lines, words, notes

def script_cost(text, bad_lines=1, hook_voices=0):
    """Credits for one Short: full take + hook tests + fixes.

    line mode re-generates the `bad_lines` longest lines once (worst case);
    whole mode re-generates the full script `bad_lines` times instead.
    """
    if bad_lines < 0 or hook_voices < 0:
        raise ValueError("counts must be >= 0")
    lines, _, _ = lint(text)
    full = credits(text)
    hook = credits(lines[0]) * hook_voices if lines else 0
    worst = sorted((credits(l) for l in lines), reverse=True)[:bad_lines]
    return {"full": full, "hook": hook,
            "line": full + hook + sum(worst),
            "whole": full + hook + full * bad_lines}

def pick_plan(monthly, commercial=True):
    for p in PLANS:
        if p.credits >= monthly and (p.commercial or not commercial):
            return p
    return None

def describe(plan, monthly):
    if plan is None:
        return f"{monthly:,} credits: above Pro, check the pricing page"
    yearly = plan.usd * 10 / 12   # page: annual = monthly price x 10
    price = f"${plan.usd}/mo (${yearly:.2f}/mo yearly)" if plan.usd else "$0"
    used = monthly * 100 // plan.credits     # floor, so 99.6% shows as 99%
    return (f"{plan.name} {price}: {monthly:,} of {plan.credits:,} "
            f"credits, {used}% used")

def main(argv=None):
    ap = argparse.ArgumentParser()
    ap.add_argument("scripts", nargs="+", type=Path)
    ap.add_argument("--per-month", type=int, default=0,
                    help="Shorts per month (default: number of files)")
    ap.add_argument("--bad-lines", type=int, default=1)
    ap.add_argument("--hook-voices", type=int, default=0)
    ap.add_argument("--non-commercial", action="store_true")
    a = ap.parse_args(argv)
    if min(a.per_month, a.bad_lines, a.hook_voices) < 0:
        ap.error("counts must be >= 0")
    try:
        texts = [(p.name, p.read_text(encoding="utf-8")) for p in a.scripts]
    except OSError as e:
        print(f"error: {e}", file=sys.stderr)
        return 2
    tot = {"line": 0, "whole": 0}
    print(f"{'script':<18}{'words':>6}{'chars':>7}{'line':>7}{'whole':>7}")
    for name, text in texts:
        _, words, notes = lint(text)
        c = script_cost(text, a.bad_lines, a.hook_voices)
        tot["line"] += c["line"]; tot["whole"] += c["whole"]
        print(f"{name:<18}{words:>6}{c['full']:>7}{c['line']:>7}{c['whole']:>7}")
        for n in notes:
            print(f"  ! {n}")
    n = a.per_month or len(texts)
    print(f"\n{n} Shorts/month, {a.bad_lines} bad line(s) each, "
          f"hook tested on {a.hook_voices} voice(s)")
    for mode in ("line", "whole"):
        monthly = math.ceil(tot[mode] / len(texts) * n)
        plan = pick_plan(monthly, not a.non_commercial)
        print(f"  fix by {mode:<5} ~{monthly / CREDITS_PER_MIN:.0f} min -> "
              + describe(plan, monthly))
    return 0

if __name__ == "__main__":
    sys.exit(main())
Enter fullscreen mode Exit fullscreen mode

The retake model is the part to read carefully. --bad-lines 2 means "two lines per Short come out wrong and get regenerated once each." Since you can't know in advance which lines will fail, the script charges for the longest lines, so it errs high. In whole-script mode the same 2 means "I regenerated the whole thing twice." The guide also says a limited number of free regenerations may be available when the text and settings don't change. I ignore that on purpose, since you can't plan around it.

Run 1: lint before you spend anything

Three example scripts I wrote for this post: an octopus fact Short, an onion chemistry Short, and a deliberately bad "why is the sky blue" one written the way people write when they forget it's going to be spoken.

$ python3 shorts_credits.py scripts/octopus.txt scripts/onions.txt scripts/rambling.txt
script             words  chars   line  whole
octopus.txt          135    778    886   1556
onions.txt           124    654    749   1308
rambling.txt         200   1040   1222   2080
  ! long: 200 words
  ! may run 86s at 140 wpm
  ! hook opens with a greeting
  ! parentheses: rewrite as short sentences
  ! long sentence (37 words): Hey guys, welcome back to the ...

3 Shorts/month, 1 bad line(s) each, hook tested on 0 voice(s)
  fix by line  ~3 min -> Starter $6/mo ($5.00/mo yearly): 2,857 of 30,000 credits, 9% used
  fix by whole ~5 min -> Starter $6/mo ($5.00/mo yearly): 4,944 of 30,000 credits, 16% used
exit 0
Enter fullscreen mode Exit fullscreen mode

The two good scripts sit inside the 100-150 word window and come back with no notes. The rambling one hits every rule in the guide. It's 200 words, so at 140 wpm it runs about 86 seconds, which is past the 60-second limit. It also opens with "Hey guys", has a parenthesized list of colors, and starts with a 37-word sentence. (The 25-word sentence limit is mine. The guide just says "use short sentences".)

Running this before generating anything is the cheapest fix there is. The rambling script costs 1,040 credits for one clean take. Trimmed to 130 words, it would cost roughly what the octopus script costs, and it would actually fit in a Short.

Run 2: 25 Shorts a month, two bad lines each

Same per-Short averages, projected to 25 Shorts a month:

$ python3 shorts_credits.py scripts/octopus.txt scripts/onions.txt --per-month 25 --bad-lines 2
script             words  chars   line  whole
octopus.txt          135    778    983   2334
onions.txt           124    654    832   1962

25 Shorts/month, 2 bad line(s) each, hook tested on 0 voice(s)
  fix by line  ~23 min -> Starter $6/mo ($5.00/mo yearly): 22,688 of 30,000 credits, 75% used
  fix by whole ~54 min -> Creator $22/mo ($18.33/mo yearly): 53,700 of 121,000 credits, 44% used
exit 0
Enter fullscreen mode Exit fullscreen mode

This is the whole argument of the guide's step 5, as numbers. The script content is the same in both rows and so are the two retakes per Short. The only change is how much text gets regenerated each time:

  • Fixing lines: about 23 minutes worth of credits, so Starter at $6/month with 75% used.
  • Regenerating the whole script: about 54 minutes, which no longer fits Starter's 30,000, so you're on Creator at $22/month.

On a 130-word Short, a full-script retake costs about as much as the first take. A line retake costs about one sentence. If your editor workflow makes it easy to swap one line of audio, you stay on the cheaper plan.

Run 3: the hook test, done every time

The guide recommends testing the hook on three or four voices "before committing". The key word is committing. That's a one-time choice for a channel voice. Here's what happens if you do it on every Short anyway:

$ python3 shorts_credits.py scripts/octopus.txt scripts/onions.txt --per-month 25 --bad-lines 2 --hook-voices 4
script             words  chars   line  whole
octopus.txt          135    778   1243   2594
onions.txt           124    654   1148   2278

25 Shorts/month, 2 bad line(s) each, hook tested on 4 voice(s)
  fix by line  ~30 min -> Starter $6/mo ($5.00/mo yearly): 29,888 of 30,000 credits, 99% used
  fix by whole ~61 min -> Creator $22/mo ($18.33/mo yearly): 60,900 of 121,000 credits, 50% used
exit 0
Enter fullscreen mode Exit fullscreen mode

Line fixes still technically fit Starter, at 29,888 of 30,000 credits. That leaves no room for a 26th Short or a single extra retake. Each hook is only 65-80 characters, but at four voices on 25 Shorts it adds up to about 7,200 credits. My takeaway: test hooks when you pick the voice or change niches, not on every upload. The guide's other advice, "using the same voice on every Short helps viewers recognize your channel", points the same way.

One thing the script doesn't model: on an active paid plan, unused credits roll over for up to two months (not on Free). A light month on Starter can cover a heavier one after it. I left this out to keep the projection to a single month, so the plan it picks is cautious.

Run 4: free, while you're testing

The guide's rule of thumb is Free for "testing the idea or posting non-monetized clips". --non-commercial lets the picker consider Free:

$ python3 shorts_credits.py scripts/octopus.txt scripts/onions.txt --per-month 12 --non-commercial
script             words  chars   line  whole
octopus.txt          135    778    886   1556
onions.txt           124    654    749   1308

12 Shorts/month, 1 bad line(s) each, hook tested on 0 voice(s)
  fix by line  ~10 min -> Free $0: 9,810 of 10,000 credits, 98% used
  fix by whole ~17 min -> Starter $6/mo ($5.00/mo yearly): 17,184 of 30,000 credits, 57% used
exit 0
Enter fullscreen mode Exit fullscreen mode

Twelve test Shorts with careful line fixes squeeze into Free's 10,000 credits at 98%. Regenerate whole scripts and you're past Free. And once you monetize, Free is out no matter how few credits you use, because it has no commercial license. Without the flag, the script never picks Free.

Errors are explicit, not silent:

$ python3 shorts_credits.py scripts/nope.txt
error: [Errno 2] No such file or directory: 'scripts/nope.txt'
exit 2
Enter fullscreen mode Exit fullscreen mode

Tests

test_shorts_credits.py (17 tests, unittest, no dependencies) pins the plan table to the guide's numbers, checks the commercial gate, the x10 yearly math ($5.00 and $18.33), the Starter/Creator edge at exactly 30,000 and 30,001 credits, the "above Pro" case, one credit per character, the line-vs-whole and hook-test cost formulas, the lint on both a clean and a rambling script, the 25-Shorts result above, and the CLI's exit codes:

$ python3 -W error -m unittest test_shorts_credits
.................
----------------------------------------------------------------------
Ran 17 tests in 0.002s

OK
Enter fullscreen mode Exit fullscreen mode

What I'd take from this

  • Lint the script before the first generation. Word count, greeting hooks, parentheses and long sentences are free to fix in a text editor and cost credits to fix in audio.
  • Fix lines, not takes. For a Shorts channel this is the habit that decides whether you're on Starter or Creator.
  • Pick the voice once. Test hooks on three or four voices when you set up the channel voice, then save the voice and settings and stop testing on every upload.
  • Size by credits. Minutes are a fine first guess, but your retake habits can easily double the real number.
  • Monetized means paid. Free is for testing and non-monetized clips only.

The full guide covers the workflow step by step (script structure, the Voice Library filters, model choice, stability and similarity settings, export), plus pros and cons, a free open-source option if your budget is zero, and an FAQ: How to use ElevenLabs for YouTube Shorts voiceovers. If you'd rather not run Python, there's also a free ElevenLabs cost calculator on the site.

Top comments (1)

Collapse
 
aistackguide profile image
AI Stack Guide •

The line-vs-take model is the right shape, but two things in the account make the projection more cautious than it needs to be — and one makes it less cautious.

The cautious part: the free-regeneration allowance you leave out probably does exist for unchanged text and settings, so treating every retake as billed is a worst case, not an expected case.

The other direction: that 1 credit = 1 character pool is shared across the whole workspace. Speech to text is 330 credits a minute, music 900, sound effects 200 a generation, and dubbing runs 2,000 to 13,500 credits a minute depending on mode. Your 25 Shorts fit Starter at 75%, but one 10-minute dubbing test in the same workspace is 20,000+ credits and puts you over the bucket without a single extra Short. If the script grows, budgeting per feature (TTS, STT, dubbing) rather than per project keeps that surprise out of the number.

The metric I would add to the output is yield: characters in the final take divided by characters generated, per Short and per voice. Line fixing moves yield; the plan you can afford is mostly a function of it.