What this API does and does not do with images
This service gives you one model, uncensored, through POST /v1/chat/completions. It reads text and writes text. It does not accept images in messages, it does not generate images, audio or video, and it has no embeddings or fine-tuning endpoints. If you send an image payload in a message, do not expect the model to see it.
That may disappoint you if you arrived from a local Ollama setup where a vision model describes a photo. Better to know now than after an hour of debugging. The rest of this page explains the difference and shows a way to get a useful result anyway, if your project needs both pictures and an unfiltered text model.
What you do get is a 100,000-token context window shared by prompt and reply, streaming, tool calling, JSON mode, and an OpenAI-compatible interface at https://api.ollamauncensored.com/v1. See the quickstart for the full list of supported parameters.
How local Ollama differs
Ollama is a tool for running models on your own machine. It has a model library that includes some multimodal models, which accept an image together with a prompt. Whether one runs well depends on your GPU memory, your system RAM and the size and quantization of the model you pick. Check the Ollama library for the current list, since entries change.
The trade-offs between the two approaches look like this:
| Question | Local Ollama | This hosted API |
|---|---|---|
| Image input | Possible with a vision-capable model | Not supported |
| Hardware | You provide it | None needed |
| Cost model | Hardware and electricity | $0.15 per 1M input, $0.50 per 1M output tokens |
| Setup | Install, pull a model, tune settings | Change the base URL and key in your client |
| Context window | Set by you, limited by memory | 100,000 tokens |
| Concurrency | Limited by your machine | 8 at once on a full key |
Neither side wins everywhere. Vision on your own box means no per-request fee and full control. Hosted text means no GPU to buy or cool, and a larger context than many home setups can fit. If you want to compare costs in detail, the page on the Ollama API explained covers the migration side.
A workable pattern: caption locally, write remotely
If your project needs to react to images but you also want an unfiltered writer, split the job in two. A small local vision model turns each image into a neutral text description. Your script then sends that description to the hosted API, which does the creative or conversational part.
This works well for things like describing a scene for a story, writing alt text drafts, or asking a character to react to a picture the user shared. It works poorly when exact visual detail matters, because the second model only sees what the caption says. Anything the captioner omitted is gone.
The script below assumes Ollama is running locally with a vision model already pulled. Replace llava with whatever vision model you have installed.
import base64
import requests
from openai import OpenAI
OLLAMA = "http://localhost:11434/api/generate"
client = OpenAI(base_url="https://api.ollamauncensored.com/v1", api_key="YOUR_KEY")
def caption(path):
with open(path, "rb") as f:
img = base64.b64encode(f.read()).decode()
r = requests.post(OLLAMA, json={
"model": "llava",
"prompt": "Describe this image factually in 3 sentences.",
"images": [img],
"stream": False,
}, timeout=120)
r.raise_for_status()
return r.json()["response"].strip()
def react(path, persona):
text = caption(path)
out = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": persona},
{"role": "user", "content": "The user shared a picture. Description: " + text + "\nReact in character."},
],
max_tokens=300,
)
return out.choices[0].message.content
print(react("photo.jpg", "You are a dry-witted ship's navigator in a space opera."))
The local captioner runs on your machine, so the image never leaves it. Only the short text description goes to the API. That is a privacy point worth keeping in mind when you design the flow.
Cost of the hosted half
Captions are short, so the hosted call is cheap. Take a 1,200-token prompt (persona, chat history, caption) and a 300-token reply. Input costs 1,200 / 1,000,000 x $0.15 = $0.00018. Output costs 300 / 1,000,000 x $0.50 = $0.00015. One reaction is $0.00033, so 1,000 of them cost $0.33.
You can try this free. New users can claim $0.50 of trial credit with one click on the API key page after sign-up, with no card, one per person and valid for 7 days. At $0.00033 per call, that is about 1,515 calls ($0.50 / $0.00033). Sign-up and the claim button are described on the API key page guide.
Other ways to handle images
The caption approach is not the only one.
- OCR first. If the image is a screenshot or scanned page, an OCR tool gives you exact text. Pass the text straight to the API with no captioning model at all.
- User-provided descriptions. For roleplay, let the user type what the picture shows. It is crude but private and free.
- Metadata. For product photos, filenames, EXIF data or catalog fields may already hold what the model needs.
- A different provider for vision. If you need strong image understanding, use a service that offers it and send only text to this one. Check that provider's current terms and pricing.
Whichever you pick, keep the rule in mind: this API only produces text, so any image feature in your product lives somewhere else in your stack.
Tips for the local captioning step
The quality of the final answer depends heavily on the caption, so spend a little time on it.
- Ask for facts, not opinions. A prompt such as "list the objects, setting, colours and any visible text" produces a caption the writer model can build on. A vague "describe this" tends to give a few generic sentences.
- Keep captions short. Three to five sentences is plenty. Longer captions raise your input token count on every later turn if you keep them in the chat history.
- Store the caption, not the image. Save the text with the message so you do not run the vision model again when the conversation continues.
- Handle failure. If the local model is slow or crashes, return a plain message to the user rather than sending an empty description to the API.
If your machine struggles with a vision model, try a smaller or more heavily quantized one. A short, accurate caption from a modest model usually beats a slow, detailed one that makes your app feel stuck.
What uncensored means here
The model is one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not an official product of Meta, Mistral, Qwen, DeepSeek or any other vendor. There is one hard limit: no sexual content involving minors. Prompts are not used for training.
When people search for an uncensored vision model, they often mean a model that will describe any picture without declining. This service does not offer that. Since it never sees the picture, it only knows what your caption says. Keep photos of real, identifiable people out of the flow unless they have agreed, and follow the law where you and your users live.
Getting started
If text-only fits your project, setup takes a few minutes. Sign up with Google or email, claim the trial credit, and point any OpenAI-compatible client at the base URL with model uncensored. Top-ups run from $20 to $500, with bonuses of 5%, 10% and 15% from $50, $100 and $200. The pricing page has the details, including the crypto options.
If you came here from a local setup and want to keep running Ollama for vision, nothing stops you from running both. Your local instance handles pictures, the API handles long-context writing, and your script joins them.
More guides
- Open WebUI on Windows with a Hosted Uncensored API
- How Much Does Ollama Cost? Local Setup vs API Fees
- Ollama API Explained: Uncensored LLM API
FAQs for Developers
- Is this the official Ollama API? No, we are an independent service. We use the same API standard but run our own uncensored model on our servers.
- Can I use this with the OpenAI SDK? Yes, it is fully OpenAI-compatible. Just change the base URL and API key.
- What happens if I get an error? Errors are free. You are only charged for successful token generations.
- Is my data used for training? No. Prompts sent through our API are not used to train our model.
