The short answer
The text side is paid but tiny: $0.15 per 1M input tokens and $0.50 per 1M output tokens. New accounts get $0.50 of trial credit, valid for 7 days, no payment required. The image side is not part of this product at all.
People who type this query usually have a budget of zero and a project that needs pictures from written descriptions. There are really two jobs hidden in it. One is writing a good description, and the other is turning that description into pixels. This API handles the first job only. For the second you need an image model, and whether that is free depends on the service or local setup you choose, so read its current terms.
The reason to care about the split is that the first job is nearly free at scale, while the second usually is not. If you understand where the money goes, you can spend it on the part that matters.
Where the cost sits in an image workflow
A typical automated image workflow has three cost lines:
- Prompt writing. A language model turns an idea or a story beat into a detailed prompt. This is the line this API covers.
- Rendering. An image model produces the picture. It might be a hosted service billed per image, or your own GPU billed in electricity and time.
- Everything around it. Storage, a queue, retries, and the time you spend on review.
Teams that pay a premium for the first line often do so out of habit. A frontier chat model is a fine prompt writer, but prompt writing does not need frontier capability. It needs a model that follows a format, keeps a style and does not refuse the subject. An open-weight model served at $0.15 and $0.50 per million tokens is enough for that, and being tuned to answer without content refusals for lawful adult use means fewer failed batches when your subject matter is fiction with mature themes.
We will not quote other vendors' prices here, because they change and we cannot vouch for them. Take the numbers below and compare them with the current pricing pages of whichever provider you are weighing.
Worked numbers for prompt writing
Take a lean call. The system message holds a short style sheet, the user supplies one idea, and the answer is one prompt of about 120 words. That is roughly 400 input tokens and 200 output tokens.
| Item | Tokens | Math | Cost |
|---|---|---|---|
| Input | 400 | 400 x $0.15 / 1M | $0.00006 |
| Output | 200 | 200 x $0.50 / 1M | $0.00010 |
| One call | 600 | $0.00016 |
Scale that up. 1,000 calls cost $0.16. 100,000 calls cost $16. The $0.50 trial divided by $0.00016 gives 3,125 calls, so about 3,100 prompts before you pay anything. A $20 top-up buys 125,000 of them, and the 5% bonus that starts at $50, 10% from $100 and 15% from $200 stretches larger purchases further.
Now a heavier call. You send a 2,000 token style sheet and the last few scene descriptions, and you get a 500 token answer. Input: 2,000 x $0.15 / 1M = $0.0003. Output: 500 x $0.50 / 1M = $0.00025. Together that is $0.00055 per call, or $0.55 per 1,000 calls. The trial covers about 900 of these (0.50 / 0.00055 = 909). Context size is the main lever, so keep the style sheet tight.
Four ways to spend less
Ask for several prompts per call
The style sheet is the same every time, so sending it once for four pictures saves tokens. Compare four separate lean calls at 400 input and 200 output tokens (4 x $0.00016 = $0.00064) with one call that carries about 450 input tokens and returns 800 output tokens. The single call costs 450 x $0.15 / 1M = $0.0000675 for input plus 800 x $0.50 / 1M = $0.0004 for output, which is about $0.000468. That is roughly 27% less, and one request instead of four also eases the rate limits.
Cap the answer length
max_tokens is optional, but a prompt of 150 words does not need room for 2,000. Output is the pricier side, so a cap protects you from a rambling reply.
Cache what repeats
If the same idea shows up twice, reuse the earlier prompt. A dictionary or a small database keyed on the idea text takes minutes to add. Failed or refused requests are not charged, but successful repeats are.
Measure instead of guessing
Each response includes a usage block. Log it and compute the real figure.
from openai import OpenAI
client = OpenAI(
base_url="https://api.unrestrictedimagegenerator.com/v1",
api_key="YOUR_API_KEY",
)
IN_PRICE = 0.15 / 1_000_000
OUT_PRICE = 0.50 / 1_000_000
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "One vivid prompt: fox in fresh snow."}],
max_tokens=200,
)
u = r.usage
cost = u.prompt_tokens * IN_PRICE + u.completion_tokens * OUT_PRICE
print(u.prompt_tokens, u.completion_tokens, f"${cost:.6f}")Cheaper than paid, but is it the right fit
Honesty matters more than a sale, so here is when something else is the better choice.
- You want zero spend. Running a small open model on your own machine costs nothing per token. You need suitable hardware, and the model you choose may still decline some subjects. Some hosted services also offer free allowances; read the current terms and limits before you rely on them.
- You need images, not prompts. This API cannot help. Pick an image service first, then come back for the text stage if you want mature or unfiltered prompt writing.
- Your volume is tiny. The smallest top-up is $20. If you only need a few dozen prompts, the trial may be all you ever use.
Where this fits well is a steady, automated flow: story sites, comic or illustrated-story generators, content tools for adult fiction, anything that makes thousands of prompts. The documentation shows request formats, and the pricing page lists the top-up tiers. Payments are in crypto, USDT on TRC20 or USDC on Base, and the credit never expires, so unused balance simply waits.
Start with the trial, then decide
Sign up with Google or with an email and a password, open the API key page and press the button to claim the trial. It is one per person. The trial key allows 2 concurrent requests and 60 requests per minute, which is plenty to test a pipeline of 100 prompts. A full key, active after a top-up, allows 8 concurrent requests and 300 per minute.
A simple test plan: write 20 ideas you actually plan to render, run them through the code above, and read the prompts by eye. Then send them to your image service and see whether the pictures match your expectations. If they do, multiply your measured cost by your expected volume and you have a budget. If you want to see how the same thinking applies to a paid image model, the cost and trade-off analysis walks through it.
The base URL for all calls is https://api.unrestrictedimagegenerator.com/v1, the model is uncensored, and prompts are not used for training. Content for adults is fine; sexual content involving minors is not allowed, and nothing here changes that.
