Measuring content spend per published piece, not per million

APIFreeDeepSeekKey · Updated 2026-11-22 · 9 min read

Coin jar next to a stack of draft pages
Small per-token prices add up across retries, reviews and long prompts.

Price pages for language model APIs quote a cost per million tokens, and those numbers look tiny. That is exactly why so many people are surprised by their bills. A familiar story goes like this: someone loads a few dollars onto a cheap API, starts experimenting with long prompts and drafts, and two days later the balance is empty. Nothing was wrong with the price. The usage was simply much larger than it felt, because every retry, every long system prompt and every regenerated draft counts.

This article is for bloggers, content teams and agencies who want a number they can budget with: the cost of one finished, published article. You will learn which hidden multipliers turn a cheap token price into a meaningful bill, how to measure them with a small test batch, why cache hits matter for repeated prompts, and why editing time usually dwarfs the API cost anyway.

We do not quote DeepSeek prices or anyone else's; they change, and DeepSeek has both raised and cut prices over time. Use their current pricing page with the method below. This site is not affiliated with DeepSeek; it runs a separate free endpoint with an open-weight model, free-ai, that you can use to measure token counts without spending anything.

Frequently asked questions

What is cost per finished article?

It is the total spend needed to get one article to a publishable state, divided by the number of articles you actually published. It includes failed drafts, retries, review passes and, if you are honest, the editor's time, not just the tokens of the final version.

Why is token price a bad proxy for content cost?

Because the number of tokens per finished piece varies enormously between workflows. A pipeline that regenerates sections three times and sends a long style guide with every request can use ten times the tokens of a lean one at the same price per token.

What are input and output tokens?

Input tokens are everything you send: system prompt, instructions, notes and any previous messages. Output tokens are what the model writes back. Providers usually price them differently, and output is often the more expensive side, so long drafts cost more than long prompts of the same length.

How does a cache hit lower the cost?

Some providers, DeepSeek among them, describe a context cache: when the start of a request matches a recent request exactly, that part can be billed at a lower rate. Keeping the system prompt and style guide identical and at the start of each request makes such hits more likely.

Which costs more, the API or the editor?

For almost every content team the editor does. A drafted article that takes an hour of human editing costs far more in time than the tokens that produced it. Saving editing minutes with better inputs usually pays off more than switching to a cheaper model.

How does a reasoning mode change the cost?

Reasoning modes generate a hidden or visible chain of thought before the answer, and those tokens are normally billed as output. A reasoning draft can therefore cost several times a plain draft of the same final length, which is rarely worth it for routine copy.

Can I estimate cost before running a batch?

Yes. Run ten representative pieces through the full pipeline, log the token usage the API returns for every request, and divide by the number of pieces that passed review. Multiply by the provider's current prices and by your planned volume.

Is a free endpoint really free for content work?

The free endpoint here costs no money, but it has per-IP limits, no SLA and a smaller model, so drafts may need more editing. Count that editing time as part of the cost when you compare it with a paid model.

Why cheap tokens still add up to real bills

A content pipeline multiplies tokens in ways that are easy to overlook. Your system prompt with house style might be 800 tokens. Notes per section add 300. If an article has eight sections, each requested separately, that is roughly 9,000 input tokens before the model has written a word. Add a review pass that resends each section, a rewrite of the intro and two failed attempts, and the total can easily triple.

People who track one complete job, rather than looking at the price page, often find their real cost per task changed far more or far less than the headline price suggested. That is why the useful unit is the finished piece, not the token.

The micro-payment trap

Small top-ups feel harmless, so they invite unplanned experimentation. Setting a monthly budget per project and tracking usage against it changes behaviour more than a lower price does. If your provider supports spending alerts, turn them on before the first batch.

Conversation history is billed again

If your tool sends the whole chat history with every message, each new request pays for all previous messages again. For drafting, stateless requests with only the notes for the current section are both cheaper and more predictable.

The multipliers behind a finished piece

Think of the cost of one article as the base draft multiplied by several factors. Each factor can be measured, and most can be reduced without hurting quality.

Waste is the quiet one

Ideas get dropped, briefs change and pages are cancelled after drafting. Generated-but-unpublished drafts still cost tokens. Dividing by published articles instead of generated ones exposes this, and it often changes which steps in the pipeline look worth keeping.

Retries depend on the checks

Strict automatic checks raise the retry rate but lower editing time. Loose checks do the opposite. There is a sweet spot for every team, and you only find it by logging both numbers for a few weeks.

  • Retry rate: how many drafts fail a check and are regenerated
  • Prompt overhead: style guides and examples resent with every request
  • Review passes: second requests that critique or fix a draft
  • Reasoning tokens: thinking output billed but not published
  • Waste: drafts that are generated but never published at all
Nested measuring cups with spilled flour
Retries, prompt overhead and review passes multiply the base cost of a draft.

Measuring real token use with a test batch

Every OpenAI-compatible API returns a usage object with prompt and completion token counts. Log it for every request, tag each request with an article ID, and you can sum the true tokens per article. The free endpoint here returns the same fields, so you can measure a pipeline's token profile at no cost and then multiply by a paid provider's prices.

The script below drafts a few sections, records usage per request in a CSV file, and prints totals per article. Replace the sections with ten real briefs to get a useful sample.

Long style guides cost on every call

A 2,000-token house style document sent with every section request quietly becomes the largest item in many bills. Trim it to the rules the model actually breaks, move examples to a short appendix, and measure whether drafts get worse. Usually they do not.

import csv
from openai import OpenAI

client = OpenAI(base_url="https://api.apifreedeepseekkey.com/v1", api_key="free")
STYLE = "Plain, friendly British English. Short paragraphs. No statistics that are not in the notes."

briefs = {
    "kettle-guide": [("Choosing a kettle", "capacity, limescale, noise"),
                     ("Cleaning a kettle", "vinegar, citric acid, rinse twice")],
}

totals = {}
with open("usage_log.csv", "w", newline="") as f:
    log = csv.writer(f)
    log.writerow(["article", "heading", "prompt_tokens", "completion_tokens"])
    for article, sections in briefs.items():
        for heading, notes in sections:
            r = client.chat.completions.create(
                model="free-ai", max_tokens=600, temperature=0.5,
                messages=[{"role": "system", "content": STYLE},
                          {"role": "user", "content": f"Write the section '{heading}'. Notes: {notes}"}])
            u = r.usage
            log.writerow([article, heading, u.prompt_tokens, u.completion_tokens])
            t = totals.setdefault(article, [0, 0])
            t[0] += u.prompt_tokens
            t[1] += u.completion_tokens

for article, (pin, pout) in totals.items():
    print(f"{article}: {pin} input tokens, {pout} output tokens")

Turning token counts into money

Once you have input and output tokens per published article, the arithmetic is simple: input tokens times the input price, plus output tokens times the output price, divided by a million if prices are quoted per million. Open the provider's current pricing page for the figures. Do not reuse numbers from a blog post or a forum thread; they may be months out of date.

Run the calculation for two or three candidate models. A cheaper model that needs twice the retries and twice the editing may cost more per finished article than a pricier model that gets it right the first time.

Account for time-of-day pricing

Some providers, DeepSeek included at various times, have offered different rates for off-peak hours. If yours does, the same batch can cost noticeably less when scheduled at night. The article on scheduling batch drafting jobs covers how to do that safely.

Watch the input-to-output ratio

Content jobs with long source material and short outputs, such as summaries and meta descriptions, are dominated by input cost. Long drafts from short notes are dominated by output cost. Knowing which kind you run tells you which price line matters most.

Hand-drawn stacked bar chart next to a calculator
Logging usage per request turns guesses into a measured cost per article.

Cache hits and why your prompt order matters

Context caching rewards repetition. If every request starts with the same system prompt and the same style guide, character for character, a provider that caches prefixes can bill that part at a reduced rate. One developer comparing costs before and after a price change realised their effective cost depended heavily on a cache hit rate they had never measured.

To make hits likely, put stable content first and variable content last. A style guide followed by the section notes caches well. Notes followed by the style guide do not, because the prefix changes with every request.

Small edits break the cache

Adding today's date, a random request ID or a changing example near the top of the prompt makes every prefix unique. Move such details to the end, or drop them, if your provider's caching is a meaningful part of your cost.

Check the usage fields

Providers that support caching usually report cached tokens in the usage data or the billing dashboard. Read their documentation for the exact field names rather than assuming, and log them alongside the normal counts.

Editing time is the largest line item

An editor who spends forty minutes fixing a draft costs more than any plausible token bill for that draft. That is why the most effective cost savings in content work come from better inputs: clearer briefs, real facts in the notes, and a style guide with concrete examples. A good brief often cuts editing time in half, while a cheaper model might save a few cents.

Track editing minutes per article for a month, even roughly. If one content type consistently takes longer, the problem is usually the brief or the template, not the model.

Where a stronger model saves money

For long specialist articles, a larger model like those DeepSeek offers commercially often produces drafts that need less restructuring. If that saves twenty minutes of editing per piece, it is cheaper overall, even at a higher token price.

Identical keys hanging on a row of hooks
An identical prompt prefix is what makes cache hits possible.

Budget guardrails for unattended batches

Overnight batches are where costs run away. A bug that retries forever, a loop that regenerates on every check failure, or a template that accidentally includes a huge file can burn a balance before anyone wakes up. Cap retries per section, cap total tokens per run, and stop the run if the cost per article in the log exceeds a threshold.

On the free endpoint the per-IP limits act as a natural brake: 10,000 requests or 10,000,000 tokens per day, resetting at 00:00 UTC, with 429 responses when you go faster than one request per second. On a paid API there is no such brake unless you build one.

Stop on anomalies, not just errors

A request that suddenly uses five times the usual tokens is not an error, so it will not raise an exception. Compare each request's usage with a running average and pause the batch when it jumps.

A realistic way to compare free and paid drafting

Run the same ten briefs through the free endpoint and through a paid model. Record tokens, retries and editing minutes for both. The free run costs nothing in money but may cost more editing time; the paid run costs a little but may save time. The comparison you get is specific to your content, which is more useful than any general claim.

If you are deciding between paying per token and paying a flat subscription to a writing tool, the article on subscriptions versus pay-per-token APIs works through that choice, and house tests versus public benchmarks explains how to build the ten-brief sample properly.

Compare on the same briefs

Use exactly the same ten briefs, notes and style guide for both runs. Changing inputs between runs makes any difference in editing time impossible to attribute to the model, and it is the most common reason such comparisons mislead the people who run them.

Hands editing a printed article under a wall clock
Editing time usually costs more than the tokens that produced the draft.
Try the free API

Send a short brief to the keyless endpoint on the home page and see what kind of first draft comes back, no account needed.

Read also