Free API for Text Generation: What $0.50 Really Buys
If you search for a free api for text generation, you will find plenty of tiers with strict caps and filters. This service has no permanent free tier, but a one-click $0.50 trial and token prices low enough that small projects cost cents.
Updated

The short answer
No, there is no always-free plan on this API. What you get instead is a trial: after sign-up you press one button on the API key page and receive $0.50 of credit. It lasts 7 days, needs no payment details, and is limited to one claim per person. If your search for a free text API comes from a prototype, a weekend script or a bot you want to test, that credit is usually enough to find out whether the model fits.
After the trial you pay per token from prepaid credit. There is no subscription and no monthly minimum, and credit does not expire. The first top-up is $20, which sounds like more than free, but the next sections show what it buys in practice.
The model is a single open-weight model, uncensored, tuned to answer without content refusals for lawful adult use. It is text only. If you need images, audio or embeddings, this is the wrong service for that part of your project.
What free text APIs usually cost you
Free tiers are real, and they are useful for learning. They tend to come with trade-offs that only show up once you build something. Check the current terms of any provider you consider, because these change often, but these are the questions worth asking before you commit code to one:
- Rate caps. A free key may allow a handful of requests per minute or a fixed number per day. A chat app with a few users hits that quickly.
- Content filters. Many hosted models refuse or soften replies on fiction, roleplay and mature themes. If your project is a story tool or a companion app for adults, refusals are the main cost, and no price fixes them.
- Data handling. Some free plans use prompts to improve their products. Read the policy. Here, prompts are not used for training.
- Sudden changes. A free plan can shrink or disappear. Your code keeps working only if the API shape stays the same, which is why OpenAI-compatible endpoints are easy to swap.
None of this makes free tiers bad. It means that free and cheap sit closer together than they look, once you count the hours lost to caps and refusals.
What $0.50 buys in real requests
Token prices are hard to feel, so here is the math for four common workloads. Input costs $0.15 per 1M tokens and output costs $0.50 per 1M. A request costs (input tokens × 0.15 + output tokens × 0.50) divided by 1,000,000.
| Workload | Input / output tokens | Cost per request | Requests per $0.50 |
|---|---|---|---|
| Short prompt rewrite | 150 / 120 | $0.0000825 | about 6,060 |
| Chat reply with some history | 800 / 250 | $0.000245 | about 2,040 |
| Story scene with context | 4,000 / 1,000 | $0.0011 | about 454 |
| Long document pass | 20,000 / 2,000 | $0.004 | 125 |
Take the chat row: 800 × 0.15 = 120 and 250 × 0.50 = 125, so 245 divided by 1,000,000 gives $0.000245. Half a dollar divided by that is about 2,040 replies. Even the long document row gives you 125 full passes over a 20,000-token input.
Now a bot. Say 50 people each send 20 messages a day, and every message looks like the chat row (800 input and 250 output tokens). That is 1,000 requests a day at $0.000245, or $0.245 per day. Over 30 days the bill is $7.35. That is a real community bot, running on less than the price of a lunch, and the number only grows if your prompts or replies get longer.
The same math scales up. A $20 top-up at the chat-reply rate covers about 81,600 replies. Larger top-ups from $50 add a bonus: 5% from $50, 10% from $100 and 15% from $200. So $100 arrives as $110 of credit.
Claim the trial and make a first call
The steps take a few minutes. Sign up with Google, or with an email and password, open the API key page, and press the trial button. The key works at once. The trial key allows 2 concurrent requests and 60 requests per minute, which is plenty for testing one script.
Check the connection with a plain curl call. Replace YOUR_KEY with the key from the page.
curl https://api.sdxlnsfw.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "user", "content": "Write a two-sentence opening for a noir short story."}
]
}'
If you already use the OpenAI Python SDK, only the base URL and key change:
from openai import OpenAI
client = OpenAI(
base_url="https://api.sdxlnsfw.cc/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Give me five names for a ship's cat."}],
)
print(resp.choices[0].message.content)
print(resp.usage)
The response carries an X-Balance-USD header, so you can watch the remaining credit shrink by fractions of a cent. The docs page lists every parameter that is passed through, including streaming, tool calling and JSON mode.
Make the trial last
Half a dollar goes a long way if you avoid waste. A few habits matter more than any price list:
- Cap the history you send. Input tokens grow with every turn of a chat, because you resend the conversation. Keep the last N messages plus a short summary instead of the full log.
- Set
max_tokenswhile testing. It is optional here, since a completion can use the rest of the 100,000-token window, but a limit of a few hundred tokens stops a runaway reply from costing more than you planned. - Use a seed. The
seedparameter is passed through, so repeated tests on the same prompt are easier to compare. - Test with small prompts first. Get the format right on a 100-token prompt, then scale up.
Failed or refused requests are not charged, so a bad request costs nothing but your time. If you hit a 429 with code rate_limited or concurrency, you are running over the trial limits. Slow down or wait for in-flight requests to finish; a streamed request keeps its slot until the stream ends.
A quick decision guide
Use this list when you cannot tell whether to look for a free plan or pay a few cents.
- You are learning the API format. Any free tier will do. Learn the request shape once; it is the same everywhere.
- You are testing whether a model writes the kind of fiction you want. Use the trial here. It exists for exactly this, and you will know in an afternoon.
- Your users will send thousands of messages. Free caps will break the app on a busy day. Prepaid credit with a per-minute limit of 300 requests on a full key is easier to plan around.
- You cannot send sensitive prompts to a third party at all. Run a model locally. No hosted service, free or paid, fits that rule.
Whichever route you choose, write your client with the base URL and key in environment variables. Then moving between a free service, this API and a local server is a two-line change.
When a truly free option is the better fit
Sometimes paying anything is the wrong call. If you are learning how chat APIs work, a free tier from a major provider or a local model will do the job. Open-weight models can run on your own machine with tools such as Ollama or llama.cpp, and then the only cost is your hardware and electricity. Quality and speed depend on your GPU, and you manage the setup yourself.
A hosted API makes more sense when you need the same code on a laptop, a server and a Discord bot, when you do not own a GPU, or when your content would be refused elsewhere. Because this API is OpenAI-compatible, you can develop against a local server and switch the base URL later without rewriting your client.
It also helps to know what the paid route is for. If your tool generates prompts, captions or scripts for an image workflow, as many projects on this site do, the text side is cheap relative to GPU time for the images. The article on filtering SDXL output shows how text and image steps fit together.
Paying after the trial
This site accepts crypto only: USDT on TRC20 or USDC on Base. Pick any whole amount from $20 to $500. The pricing page has the bonus tiers and the rate table. Since credit never expires, buying $20 and using it over months is fine; nothing resets at the end of a billing period.
One rule applies to every account: no sexual content involving minors, ever. Outside that line the model is tuned for lawful adult use, which covers fiction, roleplay, companion apps and other writing that mainstream filters often block.
More guides
Questions and answers
Is there a free text API on this site?
There is no permanent free plan. New users can claim $0.50 of trial credit with one click after sign-up. It needs no card and is valid for 7 days.
How many requests does the $0.50 trial cover?
About 2,040 chat replies of 800 input and 250 output tokens, or around 6,060 short prompt rewrites. Long prompts use more, so the count depends on your token sizes.
Do I pay for failed requests?
No. Failed or refused requests are not charged, and you can read your balance in the X-Balance-USD response header.
What are the trial key limits?
The trial key allows 2 concurrent requests and 60 requests per minute. A full key allows 8 concurrent requests and 300 requests per minute.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Key points
- There is no permanent free plan here; new users can claim $0.50 of trial credit, valid for 7 days, with no card.
- At $0.15 per 1M input tokens and $0.50 per 1M output tokens, $0.50 covers roughly 2,000 typical chat replies.
- Failed or refused requests are not charged, and top-up credit never expires.
- For fully free text generation, a local open-weight model is the honest alternative.
Start with trial credit
Email and password, key on screen right away.