Uncensored LLM API for Image Prompt Writing
Uncensored LLM API image prompt writing means using a text model to turn a rough idea into a detailed prompt, which you then paste into the image tool of your choice. This API produces text only, and this article shows the workflow end to end.

On this page
- Where a text model fits in an image workflow
- Connect the client
- A system prompt that produces usable prompts
- Get structured output with JSON mode
- Batch a whole shot list
- Iterate with feedback instead of rewriting
- Use the 100k context as a style bible
- What a text-only model cannot do
- What prompt writing costs
- More guides
Key points
- The API writes prompts as text; it never renders pictures, and it cannot see the result of your image tool.
- A fixed system prompt plus JSON mode gives you prompts you can feed straight into a script.
- A 100,000-token context window lets you keep a whole style guide and past prompts in every request.
- At about 600 input and 300 output tokens per prompt, 1,000 prompts cost roughly $0.24.
Where a text model fits in an image workflow
An image generator takes a prompt and returns pixels. A language model takes a prompt and returns words. The two jobs meet in the middle: many people get better pictures once the prompt is longer, more specific and consistent, and writing that prompt by hand for the fiftieth time is tedious. A text model is good at exactly that kind of expansion.
The API on this site is an OpenAI-compatible text endpoint with one model, uncensored. It is tuned to answer without content refusals for lawful adult use, so a request such as "describe a grim, rain-soaked battlefield in a painterly style" comes back as a description instead of a lecture. It does not generate images, audio or video, and it has no way to look at an image. The loop is always the same: you send an idea, you get a prompt as text, you carry it to the image tool yourself or with your own script.
That division matters for honesty. The model can describe a lens, a mood, a palette and a composition. It cannot tell you whether the picture that your tool produced matches the description. If you want a feedback loop, you describe the problem in words ("the hands came out wrong, the background is too busy") and ask for a revised prompt. See the image generation page for how this text layer relates to image tools.
Connect the client
Any OpenAI SDK works once you change two values: the base URL and the key. Create a key on the API key page; new users can claim $0.50 of trial credit with one click, valid for 7 days,. Then:
from openai import OpenAI
client = OpenAI(
base_url="https://api.unfilteredimagegenerator.cc/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You write image prompts."},
{"role": "user", "content": "A lighthouse in a storm, oil painting."},
],
temperature=0.9,
)
print(resp.choices[0].message.content)
The same call works from curl, Node or any client that lets you set an OpenAI-compatible endpoint. The quickstart in the docs lists the two supported methods, POST /v1/chat/completions and GET /v1/models, and the response headers worth logging, such as X-Request-Id and X-Balance-USD.
A system prompt that produces usable prompts
Most of the quality comes from the system prompt, not from clever user messages. Treat it as a spec for the output. Three things belong in it: the structure you want, the vocabulary your image tool responds to, and the things the model must not do (such as inventing a different subject than you gave it).
SYSTEM = """You are a prompt writer for a text-to-image tool.
Given a short idea, write ONE prompt of 60 to 90 words.
Order: subject, action or pose, setting, lighting, camera or medium, colour palette, mood.
Use concrete nouns. No filler words such as "beautiful" or "stunning".
Keep the subject exactly as the user states it; do not swap it for something else.
Never include text, captions, signatures or watermarks in the scene.
Write in plain English, comma-separated phrases, no line breaks.
Reply with the prompt only."""
A few habits that pay off. Ask for one prompt per call when you are comparing styles, since a single answer is easier to score. Keep temperature around 0.8 to 1.0 for brainstorming and drop it to 0.3 when you want a reproducible rewrite of the same input. If you need the same output twice, set seed; it is passed through. Use stop if your template ends with a marker you do not want repeated.
For fiction and roleplay art, name the content boundary in the system prompt in your own words. The model follows instructions about tone and rating, and it keeps one hard limit regardless: no sexual content involving minors.
Get structured output with JSON mode
If a script consumes the prompts, free text is a liability. JSON mode makes the reply parseable. Set response_format to {"type":"json_object"} and say in the system prompt which keys you expect.
# client configured with base URL https://api.unfilteredimagegenerator.cc/v1
import json
SYSTEM_JSON = """Return a JSON object with keys:
"positive": the image prompt (60-90 words),
"negative": things to exclude, as a short comma-separated string,
"aspect": one of "1:1", "3:2", "2:3", "16:9"."""
resp = client.chat.completions.create(
model="uncensored",
response_format={"type": "json_object"},
messages=[
{"role": "system", "content": SYSTEM_JSON},
{"role": "user", "content": "Abandoned greenhouse at dawn, mist, overgrown ferns"},
],
)
data = json.loads(resp.choices[0].message.content)
print(data["positive"])
print(data["negative"], data["aspect"])
Wrap json.loads in a try block and retry once on failure; a long completion that hits max_tokens can be cut mid-object. Leave max_tokens unset unless you want a hard ceiling, because the completion may use the rest of the 100,000-token window.
Batch a whole shot list
Prompt writing becomes worth automating when you have a list: forty scenes for a comic, a set of character portraits, a run of product mockups. A full key allows 8 concurrent requests and 300 requests per minute, so a small thread pool is enough. Stay at 6 or 7 workers to leave a slot free for a manual call.
# client configured with base URL https://api.unfilteredimagegenerator.cc/v1
from concurrent.futures import ThreadPoolExecutor
ideas = [
"Market street at night, neon reflections on wet stone",
"Old sailor mending a net, close portrait",
"Observatory dome opening under a violet sky",
]
def write(idea):
r = client.chat.completions.create(
model="uncensored",
temperature=0.9,
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": idea},
],
)
return idea, r.choices[0].message.content.strip()
with ThreadPoolExecutor(max_workers=6) as pool:
for idea, prompt in pool.map(write, ideas):
print(idea, "->", prompt, "\n")
If you see HTTP 429, read the error code. rate_limited means too many requests per minute; concurrency means too many at once. A 429 with a Retry-After: 5 header is temporary overload, and waiting five seconds is the right response. The trial key is tighter, at 2 concurrent requests and 60 per minute, so lower max_workers to 2 while you test.
Iterate with feedback instead of rewriting
The strongest use of a chat model here is revision. Keep the conversation going and describe what went wrong in plain words: "the subject is too small in the frame", "the colours are muddy, push toward cold blues and one warm accent", "remove the crowd, keep only the two figures". The model rewrites the prompt with that correction folded in, and because the earlier turns are still in context it keeps the parts you liked. Compare that with starting from scratch each time, where you tend to lose the details that were working.
# client configured with base URL https://api.unfilteredimagegenerator.cc/v1
history = [{"role": "system", "content": SYSTEM}]
def revise(note):
history.append({"role": "user", "content": note})
r = client.chat.completions.create(model="uncensored", messages=history, temperature=0.7)
text = r.choices[0].message.content.strip()
history.append({"role": "assistant", "content": text})
return text
print(revise("A fox in a ruined cathedral, dusk light"))
print(revise("Make the fox smaller in frame and add dust in the light beams"))
Streaming is optional for this job, since prompts are short, but if you build an interface around it, set stream: true and the usage block arrives at the end of the stream.
Use the 100k context as a style bible
The context window is 100,000 tokens, prompt plus completion. For prompt writing, that is room for more than a single instruction. Paste in a style guide, a character sheet with fixed physical details, a list of palettes the project allows, and the last twenty prompts that worked well. Then every new request is written in the same voice with the same recurring details, which is the hardest thing to keep consistent by hand across a long project.
A practical layout for the messages array:
- System message: the output spec shown above.
- A user message holding the project bible, clearly labelled, such as "Characters", "World", "Banned elements".
- Two or three example pairs of idea and finished prompt, as user and assistant turns.
- The new idea as the last user message.
Examples teach the format better than adjectives do. If the first output drifts, add one corrected example rather than a longer rule. Remember the cost side: a 5,000-token bible sent with every call is billed as input each time. At the input price that is small, but across a long batch it is the largest part of the bill, so keep the bible tight.
What a text-only model cannot do
Be clear about the edges before you build on this. The model cannot see your images, so it cannot critique one or caption it. It cannot call your image tool unless you wire that up yourself through tool calling (tools, tool_choice and role: "tool" results are supported, so a function that submits a prompt to your own generator is possible). And it has no knowledge of which exact keywords a particular image model rewards. Image tools differ a lot, so test a handful of outputs and adjust the system prompt to the tool you use.
Your image tool has its own rules, and they apply to whatever text you paste into it. A prompt that this API happily writes may be refused downstream; that is the other service's policy, not something you can change from here. The same goes for terms of use on the finished pictures. Our pricing page covers only the text layer: you pay for tokens, and failed or refused requests are not charged.
One more practical point is the length of what you ask for. Image tools tend to ignore the tail of very long prompts, so a 400-word masterpiece is rarely better than 80 tight words. Cap the length in the system prompt and measure the effect on a dozen samples before you scale up. Finally, prompts are not used for training, which matters if your project ideas are private work in progress.
What prompt writing costs
Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens, paid from prepaid credit. A prompt-writing call with a system prompt and a one-line idea is typically about 600 input tokens and 300 output tokens. The input costs 600 × $0.15 / 1,000,000 = $0.00009, the output costs 300 × $0.50 / 1,000,000 = $0.00015, so one prompt is $0.00024. A thousand prompts come to $0.24.
Even with a 5,000-token style bible added to every call, a call is 5,600 input and 300 output tokens: $0.00084 + $0.00015 = $0.00099, about $0.99 per thousand prompts. The minimum top-up is $20, paid in USDT on TRC20 or USDC on Base, with a bonus of +5% from $50, +10% from $100 and +15% from $200. Credit never expires, so a single top-up covers a long project.
More guides
Questions and answers
Can this API generate the images themselves?
No. It is a text-only API and does not produce images, audio or video. It writes the prompt, and you give that prompt to an image tool.
Does the model refuse unusual or dark subjects?
It is tuned to answer without content refusals for lawful adult use, so dark themes in fiction are usually fine. The one hard limit is no sexual content involving minors.
How long can my reference material be?
The context window is 100,000 tokens, prompt and completion together. That fits a long style guide and many example prompts in a single request.
Is the output different every time?
By default, yes. Lower the temperature for steadier rewrites, and pass a seed if you need to reproduce a result.
Do you train on my prompts?
No. Prompts are not used for training.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.