EN ▾
Try with trial credit

AI Text Generator API Cost: Price Per Article

The ai text generator api cost of one 1,000-word article is about seven hundredths of a cent at $0.15 per 1M input tokens and $0.50 per 1M output tokens. This page shows the math and then scales it to monthly budgets.

Last updated

Coins flowing through a glass pipeline into a meter while pages emerge, showing per-token cost of generated text

Summary

  • Set max_tokens to prevent runaway responses that waste prepaid credits.
  • Your model ID is "uncensored", not a vendor name like GPT-4 or Claude.
  • Stream data correctly by parsing the final chunk for accurate token usage stats.
  • Pay only with crypto (USDT or USDC) on specific chains; no credit cards exist.

The formula

An API charges for tokens, not words. A token is a chunk of text, often a short word or part of a longer one. For English prose a good working ratio is about 1.3 tokens per word, which puts 1,000 words near 1,300 tokens. The exact count depends on the text, so treat the ratio as an estimate and read the real figure from the usage field in each response.

Every request is billed in two parts:

  • Input tokens (your prompt, system message and any history): $0.15 per 1M tokens.
  • Output tokens (the generated text): $0.50 per 1M tokens.

So the ai text generator api cost of a request is: input tokens x 0.15 / 1,000,000 + output tokens x 0.50 / 1,000,000. Failed or refused requests are not charged, and there is no monthly fee.

Output tokens cost more than input tokens, so the practical rule is simple: a long answer to a short prompt costs more than a short answer to a long prompt, when the token counts are equal.

Worked example: one 1,000-word article

Say your prompt, with instructions and an outline, is 300 tokens, and the model writes 1,000 words, about 1,300 tokens.

  • Input: 300 x $0.15 / 1M = $0.000045
  • Output: 1,300 x $0.50 / 1M = $0.00065
  • Total: $0.000695, or about $0.0007

Scale that up: 1,000 articles cost about $0.695, which is less than 70 cents. The minimum top-up of $20 would pay for 20 / 0.000695, around 28,800 articles of this size. Almost all of the money goes to output, 93% in this example, so the best way to cut cost is to ask for exactly the length you need.

Cost by content type

The table uses the same rates and rounds to the nearest hundredth of a cent where useful. Token counts are estimates for typical prompts.

ContentInput tokensOutput tokensCost per piece
Product description (120 words)150160$0.0001025
Short social post (50 words)10065$0.0000475
Blog article (1,500 words)4001,950$0.001035
Short story chapter (3,000 words)6003,900$0.00204

Check the first row: 150 x 0.15 / 1M = $0.0000225, plus 160 x 0.50 / 1M = $0.00008, which sums to $0.0001025. The chapter row: 600 x 0.15 / 1M = $0.00009, plus 3,900 x 0.50 / 1M = $0.00195, for $0.00204. Even a 3,000-word chapter costs about a fifth of a cent.

Three monthly budgets

Solo blogger: 30 articles a month

30 articles at $0.001035 each is $0.03105, about 3 cents. Even if you generate three drafts per article and keep one, it is under 10 cents.

Online shop: 5,000 product descriptions

5,000 x $0.0001025 = $0.5125, about 51 cents a month. A catalog refresh of that size is cheaper than a coffee.

Content team: 20,000 mid-size pieces

Take 600-word pieces: 500 input tokens and about 780 output tokens. Input: 500 x $0.15 / 1M = $0.000075. Output: 780 x $0.50 / 1M = $0.00039. That is $0.000465 per piece, and 20,000 pieces cost $9.30. One $20 top-up lasts more than two months at that pace.

Top-ups accept any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. A $50 top-up therefore gives $52.50 of credit. Credit never expires, so an unused balance simply waits. Details are on the pricing page.

What makes the bill bigger than the estimate

  • Drafts you throw away. If you generate four versions and keep one, multiply the cost by four. Still small, but budget for it.
  • Long system prompts. A 2,000-token style guide sent with every request adds 2,000 x $0.15 / 1M = $0.0003 each. Over 10,000 requests that is $3.00, more than the output of short pieces.
  • Chat history. In a conversation, every turn resends earlier turns as input. Trim or summarize it.
  • Runaway output. Without a limit the model may write more than you wanted. Set max_tokens or state a word count.
  • Rewrites of whole documents. A rewrite pays for input and output of the full text. Edit in sections if you can.

A simple habit keeps surprises away: log the token counts of every request next to the job name. After a week you can see which job costs the most per piece, and whether the cost comes from long prompts, long answers or too many retries. Fixing the largest of the three is usually a one-line change.

Measure it with a few lines of code

Estimates are fine for planning. For accounting, log the real numbers. This helper computes the cost of any response from its usage field:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.unrestrictedaitextgenerator.com/v1",
    api_key=os.environ["API_KEY"],
)

INPUT_PER_M = 0.15
OUTPUT_PER_M = 0.50

def cost(usage):
    return (usage.prompt_tokens * INPUT_PER_M
            + usage.completion_tokens * OUTPUT_PER_M) / 1_000_000

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a 1,000-word article about composting."}],
)
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)
print(f"${cost(resp.usage):.6f}")

You can also read the remaining credit from the X-Balance-USD response header, or call GET /v1/balance, to see your spend over a day. The API docs list both. Run 20 real jobs, average the numbers, and use that average in your budget in place of the estimates above. To start, the API key page lets you claim $0.50 of trial credit, which covers roughly 700 articles of the size in the first example.

Language and format change the token count

The 1.3 tokens per word ratio fits ordinary English. Other material shifts it:

  • Other languages. Text in languages with long words, non-Latin scripts or heavy accents often needs more tokens per word. A page that is 1,000 words in English can be noticeably more tokens in another language, so measure a sample first.
  • Code and data. Symbols, indentation and identifiers split into many small tokens. Budget more tokens per line than prose suggests.
  • Numbers and rare names. Long numbers and unusual words are cut into several pieces each.
  • Formatting. Markdown, tables and JSON add punctuation tokens. JSON mode output carries quotes and braces that count as output.

The fix is cheap. Send a few real samples through the API once, read usage.prompt_tokens and usage.completion_tokens, and compute your own ratio. After that your forecasts are based on your content rather than a rule of thumb.

A monthly estimator you can copy

This small script turns your plan into a forecast. Fill in the numbers for each job type, and it adds them up at the published rates.

INPUT_PER_M = 0.15
OUTPUT_PER_M = 0.50

jobs = [
    # name, pieces per month, input tokens each, output tokens each
    ("blog articles", 30, 400, 1950),
    ("product descriptions", 5000, 150, 160),
    ("social posts", 900, 100, 65),
]

total = 0.0
for name, count, tin, tout in jobs:
    cost = count * (tin * INPUT_PER_M + tout * OUTPUT_PER_M) / 1_000_000
    total += cost
    print(f"{name:22} ${cost:8.4f}")

print(f"{'total':22} ${total:8.4f}")

With the numbers above, blog articles cost $0.03105, product descriptions cost $0.5125 and social posts cost about $0.04. The monthly total is under $0.60. Change the counts and you can see how much room you have before the first top-up of $20 runs out.

Add a margin of 30 to 50 percent for retries, discarded drafts and prompts that grow over time. Then check real spending against the forecast after the first week, using the X-Balance-USD header on any response or a call to GET /v1/balance. The docs describe both.

Frequently asked questions

How many tokens are in 1,000 words?

Roughly 1,300 for English prose. The exact number varies with the text, so read the usage field in the response for real figures.

Is there a monthly fee?

No. You prepay credit and are charged per token. Credit never expires and failed or refused requests are not charged.

Are input and output tokens priced the same?

No. Input is $0.15 per 1M tokens and output is $0.50 per 1M, so long outputs drive most of the cost.

How much is the cheapest way to start?

The $0.50 trial credit is free for new users, one per person and valid 7 days. After that, the minimum top-up is $20.

Get your API key

Register, copy the key, update the base URL. That is the entire setup.