Flux 2 Uncensored Text Encoder vs a Text LLM API
A flux 2 uncensored text encoder is one component inside an image generation pipeline. It turns your prompt into numbers for an image model, and it cannot chat, write or answer. This site offers something else: a hosted language model you call to produce text.

Key points
- A text encoder converts a prompt into embeddings that guide an image model. It does not generate prose.
- A text LLM API takes a conversation and returns new text, which is a different job.
- This service is text only, so it can write and rewrite prompts but cannot draw the image.
- Call it with model uncensored through any OpenAI-compatible client.
What a text encoder actually does
Diffusion and flow-based image models do not read words. Before generation starts, a separate network called a text encoder reads your prompt and produces a set of vectors, often called embeddings. The image model uses those vectors as guidance while it builds the picture step by step.
The encoder is trained to represent meaning, not to continue a conversation. You give it a sentence, it gives you numbers. Nothing in that loop writes a reply, follows an instruction, or holds a dialogue. When people talk about an "uncensored text encoder" for an image model, they usually mean one that encodes prompts without a built-in filter that drops or alters certain concepts before the image model sees them.
That is a component swap inside a local image workflow. It is a different problem from the one this site solves.
Where the confusion comes from
Newer image models often pair with large language models as their encoders, so the line between "text model" and "encoder" looks blurry. A language model can serve as an encoder when you read its internal hidden states instead of its generated words. In that mode it still outputs vectors for an image model, not sentences for a reader.
The reverse is not true. A hosted chat endpoint returns generated text only. It does not expose hidden states, and you cannot plug its output into an image pipeline as an encoder replacement. Different input, different output, different use.
Quick test for what you need
- You want a file to place in a workflow folder next to an image checkpoint: you need an encoder, and this site does not provide one.
- You want text in an application, such as stories, dialogue, summaries or extracted data: you need an LLM API.
- You want better prompts for an image model: a text LLM can write them, then you paste the result into your image tool.
What this API gives you instead
The service exposes POST /v1/chat/completions and GET /v1/models, with one open-weight model tuned to answer without content refusals for lawful adult use. You request it as uncensored. It is text only: no image, audio or video generation, no embeddings and no fine-tuning. It is not the official API of any model vendor.
The hard limit is simple and fixed: no sexual content involving minors. Everything else is about not getting a refusal where a mainstream assistant would refuse a lawful request, which matters most for fiction, roleplay, character apps and edgy dialogue.
Context is 100,000 tokens, prompt and completion combined. That is enough to keep a long character sheet, a world bible and a long chat history in one request.
A practical use: writing prompts for an image model
Many people who look for an image encoder just want their image prompts to stop getting sanitised or rewritten. A text LLM can help on the writing side. You describe the scene loosely, and the model returns a detailed prompt you paste into your image tool. Use a low temperature for consistent output and ask for a fixed shape so the result is easy to copy.
from openai import OpenAI
client = OpenAI(base_url="https://api.fluxuncensored.top/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="uncensored",
temperature=0.7,
messages=[
{"role": "system", "content": "You write image prompts. Return one paragraph of comma-separated visual details: subject, setting, lighting, lens, mood. No preamble."},
{"role": "user", "content": "A lighthouse keeper's study during a storm, painterly style."},
],
)
print(resp.choices[0].message.content)
Remember what this does and does not do. The model writes the words. The picture still comes from your own image model, which has its own rules and its own encoder.
When you do need an encoder, not an API
Be honest with yourself about the goal. If your image tool refuses or alters certain prompts because of how its encoder or safety layer behaves, a text API upstream will not change that. The prompt still passes through the same encoder afterwards. The fix belongs in the image workflow, usually by choosing a different encoder or checkpoint, and that choice is made on the model hubs where those files are published.
A language model API is the right tool in three situations. You want to generate or rewrite many prompts in bulk. You want a writing assistant that does not decline lawful adult fiction. Or you build an app where users chat with characters, and an image step is optional or handled elsewhere.
In each case the two systems stay separate. The API produces a string. What you do with that string is up to you.
Mixing the two in one project
A common layout is a small script with three steps. First, ask the model for a prompt as JSON with fields for the main subject, style and negative terms. Second, validate the JSON in your own code. Third, hand the validated fields to the image tool you already run. Because the API follows the OpenAI shape, you can test step one with any HTTP client before you wire up the rest.
Structured output for pipelines
If you chain tools, JSON mode keeps the text part predictable. Set response_format to a JSON object and ask for the keys you want in the prompt.
curl https://api.fluxuncensored.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"response_format": {"type": "json_object"},
"messages": [
{"role": "user", "content": "Return JSON with keys positive and negative for an image prompt about a rainy neon street."}
]
}'
Tool calling works too, with tools, tool_choice and results sent back as role: "tool" messages. That lets a script ask the model for a prompt and then call your own function that submits it to an image queue. See the quickstart for parameter details.
Cost and limits for this kind of workload
Prompt-writing calls are small. Suppose a request sends 400 input tokens and gets 250 output tokens back. Input costs 400 x $0.15 / 1M = $0.00006. Output costs 250 x $0.50 / 1M = $0.000125. The total is $0.000185 per prompt, so 1,000 prompts cost $0.185.
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. If you go over, the API returns HTTP 429 with the code rate_limited or concurrency, and temporary overload comes with a Retry-After: 5 header. Wait and retry.
New accounts can claim $0.50 of trial credit with one click on the key page. Paid top-ups are crypto only (USDT on TRC20 or USDC on Base), from $20 to $500. Details are on the pricing page.
More guides
Questions and answers
Is there an encoder file for image models on this site?
No. This site provides a hosted text LLM API, not encoder files for image pipelines.
Can I use this API as the text encoder for an image model?
No. The API returns generated text only and does not expose the hidden states or embeddings an image model needs.
Can the model help me write image prompts?
Yes. It can draft and rewrite prompts as plain text, which you then paste into your image tool. It does not generate the image.
Does the API offer embeddings?
No. The service covers chat completions only, with no embeddings, image generation or fine-tuning.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.