Qwen3.8 27B Uncensored API: Endpoint, Requests and Pricing

Yes, Qwen3.8-27B Uncensored has an OpenAI-compatible API. On OpenLLM Buddy it runs on a dedicated GPU pod that gives you a base URL ending in /v1 and an API key, with chat completions, streaming, tool calls and image input. You pay for pod time, from about $19 for 11 hours (November 2026), with no per-token billing.
This page shows the requests you will send, then works through when pod-time billing beats a per-token API and when it does not. For the model itself, see the Qwen3.8 27B Uncensored guide.
What the API is
| Endpoint | POST /v1/chat/completions on your own pod |
| Base URL | Ends in /v1; shown in your console |
| Authentication | An API key sent as a bearer token; shown in your console |
| Model id | Shown in your console; copy it exactly |
| Features | Chat, streaming, tool calls, image input, reasoning effort |
| Context window | 256K tokens (262,144) |
| Who shares the pod | Nobody: one pod, one customer |
| Billing | Time packs of 11 hours, 24 hours, 1 week or 1 month |
| Measured speed | 79 tokens per second on one RTX 5090, single stream |
Because the format is the OpenAI one, any client that lets you change the base URL works: the OpenAI SDKs, agent frameworks, coding tools and workflow builders. OpenAI-compatible APIs explains why that makes switching models a two-line change.
In every sample below, replace https://YOUR-POD-ENDPOINT/v1 and YOUR_API_KEY with the values from your console, and copy the model id from your console in place of YOUR_MODEL_ID.
Request samples
A chat completion with curl
curl https://YOUR-POD-ENDPOINT/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_ID",
"messages": [
{"role": "system", "content": "You are a penetration tester writing for a client who owns the system under test."},
{"role": "user", "content": "Explain how a path traversal bug in a file download endpoint is found and fixed."}
],
"temperature": 1.0,
"top_p": 0.95
}'
The answer comes back in choices[0].message.content, the same shape every OpenAI client expects.
Streaming with the OpenAI Python SDK
Streaming sends tokens as they are generated, so your user watches the text arrive instead of waiting for the whole answer. Set stream to true and read the chunks as they come.
from openai import OpenAI
client = OpenAI(
base_url="https://YOUR-POD-ENDPOINT/v1",
api_key="YOUR_API_KEY",
)
stream = client.chat.completions.create(
model="YOUR_MODEL_ID", # copy the model id from your console
messages=[{"role": "user", "content": "Write a short story about a detective who is also the culprit."}],
temperature=1.0,
top_p=0.95,
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
A tool call with the tools field
Tool calls are how an agent acts. You describe your functions in the tools field, the model replies with the function it wants and the arguments, your code runs it, and you send the result back for the final answer.
import json
from openai import OpenAI
client = OpenAI(base_url="https://YOUR-POD-ENDPOINT/v1", api_key="YOUR_API_KEY")
MODEL = "YOUR_MODEL_ID" # copy the model id from your console
tools = [{
"type": "function",
"function": {
"name": "get_open_ports",
"description": "Return the open TCP ports recorded for a host in the asset inventory.",
"parameters": {
"type": "object",
"properties": {
"host": {"type": "string", "description": "Hostname or IP address"}
},
"required": ["host"],
},
},
}]
def get_open_ports(host: str) -> dict:
return {"host": host, "open_ports": [22, 443, 8080]} # your real lookup goes here
messages = [{"role": "user", "content": "Which services on build01.internal should we review first?"}]
first = client.chat.completions.create(model=MODEL, messages=messages, tools=tools)
reply = first.choices[0].message
if reply.tool_calls:
messages.append(reply)
for call in reply.tool_calls:
args = json.loads(call.function.arguments)
result = get_open_ports(**args)
messages.append({
"role": "tool",
"tool_call_id": call.id,
"content": json.dumps(result),
})
final = client.chat.completions.create(model=MODEL, messages=messages, tools=tools)
print(final.choices[0].message.content)
else:
print(reply.content)
Always handle the else branch. A model may answer directly when it decides no tool is needed. For a full agent built on this loop, see how to use OpenCode with Qwen3.8 27B, or the integration guides for OpenCode and n8n.
An image input message
The model reads images and answers in text. Send the image as a content part next to your question. A base64 data URL keeps the image inside the request, so the pod does not have to fetch anything.
import base64
from openai import OpenAI
client = OpenAI(base_url="https://YOUR-POD-ENDPOINT/v1", api_key="YOUR_API_KEY")
with open("dashboard.png", "rb") as f:
image_b64 = base64.b64encode(f.read()).decode()
response = client.chat.completions.create(
model="YOUR_MODEL_ID", # copy the model id from your console
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "What is wrong with the layout in this screenshot? List the fixes."},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_b64}"}},
],
}],
temperature=0.6,
)
print(response.choices[0].message.content)
Images go in, text comes out. The model does not generate images and does not take audio.
Reasoning effort and sampling
Thinking is on by default. The maker documents three levels for reasoning_effort: low, medium and xhigh. Add the field to the request body when you want quicker answers on simple tasks:
{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "Rename this variable across the snippet: ..."}],
"reasoning_effort": "low"
}
Thinking tokens are generated tokens, so they take time at the same 79 tokens per second. This build is tuned to spend fewer of them than the base model. AI effort levels explained covers when a higher level is worth the wait.
The maker's recommended sampling settings:
| Use | temperature | top_p | top_k |
|---|---|---|---|
| General use, thinking on | 1.0 | 0.95 | 20 |
| Precise coding | 0.6 | 0.95 | 20 |
| Thinking off | 0.7 | 0.80 | 20 |
temperature and top_p are standard OpenAI fields. top_k is not part of that format, so many clients have no setting for it.
Pod-time billing versus per-token billing
A hosted per-token API charges for every token you send and every token you get back. A pod charges for the hours the GPU is yours. Which one costs less depends on one thing: how much of the pod's time you fill.
The worked example
Take the 11-hour pack at about $19 (November 2026; packs follow GPU rental rates, so check live pricing). Our measured speed is 79 tokens per second on one RTX 5090, single stream.
79 tokens/second × 3,600 seconds × 11 hours = 3,128,400 tokens
So a pod that generates without a pause for the whole pack produces about 3.1 million output tokens. Nobody runs at 100%, so here is the same sum at lower use:
| Share of the 11 hours spent generating | Output tokens | Pod cost per million output tokens |
|---|---|---|
| 100% | about 3.1 million | about $6 |
| 50% | about 1.6 million | about $12 |
| 25% | about 780,000 | about $24 |
| 10% | about 310,000 | about $61 |
| 1% | about 31,000 | about $607 |
That table is arithmetic from the two figures above, not a measurement of your workload. The pattern is what matters: the pod's cost per token is whatever you make it. Fill the hours and it is low. Leave the pod idle and it climbs fast.
The break-even formula
Use your own per-token prices here. For the same 11-hour window:
api_cost = (input_tokens_in_millions × your_input_price_per_million)
+ (output_tokens_in_millions × your_output_price_per_million)
pod_cost = 19 # one 11-hour pack, November 2026
The pod is cheaper when api_cost > pod_cost.
If you only count output tokens, it reduces to one line:
break_even_output_tokens_in_millions = 19 / your_output_price_per_million
Then check the result against the pod's ceiling of about 3.1 million output tokens per pack. If your break-even figure is above that, the pod cannot win on output tokens alone, however hard you run it. That happens when your per-token API charges less than about $6 per million output tokens.
Why input tokens change the answer
Output is only half of a per-token bill. Agents and long-document work are heavy on input: a coding agent re-sends the conversation, the file contents and the tool results on every step, and a per-token API charges for those tokens each time.
On a pod, input costs time instead of money. A 200,000-token prompt is not billed, but the pod has to read it before it answers. Prompt reading speed on our pods is not yet measured, so there is no figure to give you for it. A conversation that keeps the same beginning lets the server reuse work it has already done, which how AI caching works explains.
So put your real input volume into the formula. For input-heavy agent work, the break-even point arrives much sooner than the output-only line suggests.
Longer packs
Packs also come in 24 hours, 1 week and 1 month. The same method applies: divide the pack price by the tokens you expect to generate in that time. The pod stops when the pack's time ends, so the pack price is the most you can spend.
When a per-token API is the better choice
A dedicated pod is the wrong tool for some workloads.
- Low volume. A few hundred short requests a day fill a tiny share of a pod's hours. At 1% use, the table above shows what that does to your cost per token.
- Bursty traffic. If requests arrive in spikes with long quiet gaps, you pay for the gaps. Per-token billing charges nothing while you are idle.
- Always-on with little use. An endpoint that must answer at any hour but is rarely called needs a month pack to stay up. A per-token API is simply there.
- Many users at once. Our 79 tokens per second is a single-stream figure. Throughput with parallel requests is not yet measured, and parallel requests share one GPU and one context window.
- You need a larger model. Qwen3.8-27B is a 27B model. If the task needs more, compare the larger pods in the best uncensored open AI models you can deploy.
The pod fits the opposite profile: steady or batch work that keeps the GPU busy, agents that send a lot of context, prompts you do not want leaving your own machine, and content a filtered API would reject. If the fear of a per-token bill is shaping how you build, token anxiety is real describes that shift.
Privacy and filtering differences
| Dedicated pod on OpenLLM Buddy | Typical hosted per-token API | |
|---|---|---|
| Hardware | One GPU pod that nobody else shares | Shared with other customers |
| Where prompts and outputs live | On your pod | On the provider's systems, under its data policy |
| Content filter in front of the model | None | Often present; depends on the provider |
| Refusals built into the model | Removed in this build | Present in standard models |
| Billing | Pod time | Per token |
"Uncensored" covers two separate things here. The first is the model: its built-in refusals were removed from the weights. On a published 100-prompt test, the base model refused 99 prompts and the final version of this build refused 11. It refuses far less often, not never. The second is the path to the model: on your pod there is no provider filter between your request and the weights, so nothing rejects a prompt before the model sees it.
That combination suits security research on systems you are authorised to test, fiction with dark themes, direct answers to medical and legal questions, red-teaming your own filters, and adult creative work. It does not change what is lawful. You remain responsible for how you use the output. AI chatbot guardrails versus your own GPU goes deeper on the difference.
Limits worth knowing before you build
- Speed falls as the context fills. 79 tokens per second is a single stream on an RTX 5090. A request carrying a very long prompt generates more slowly than a short one.
- The endpoint lasts as long as the pack. When the time ends, the pod stops and requests fail until you start a new one.
- It is the 4-bit build. That is what fits the full 256K window on one 32 GB card. Qwen3.8 27B VRAM and GPU requirements shows the memory budget.
- Gemma is faster. If you need throughput more than coding quality, Gemma4-26B-A4B Uncensored runs at 175 tokens per second on the same GPU at the same price. See Qwen3.8 27B vs Gemma 4 26B, and the Gemma 4 26B API versus self-hosted cost guide for the same billing question on that model.
FAQ
Is there an API for Qwen3.8 27B Uncensored?
Yes. Each OpenLLM Buddy pod running the model exposes an OpenAI-compatible API with chat completions, streaming, tool calls and image input. Your console shows the base URL, the API key and the model id.
How much does the Qwen3.8 27B API cost?
You pay for pod time, not per token: from about $19 for 11 hours in November 2026, with 24-hour, weekly and monthly packs as well. Prices follow GPU rental rates, so check the live figure before you buy.
Is the Qwen3.8 27B API compatible with the OpenAI SDK?
Yes. Point the OpenAI SDK at your pod's base URL, use your pod's API key and set the model id from your console. Existing code written for chat completions works without other changes.
Does the Qwen3.8 27B API support tool calling?
Yes. Tool calls are on, using the standard tools field of the OpenAI chat completions format. That is what coding agents and workflow tools need to read files, call functions and act on results.
Is a dedicated pod cheaper than a per-token API?
It depends on how much of the pod's time you use. A pod generating continuously for 11 hours produces about 3.1 million output tokens for about $19, and the cost per token rises as the pod sits idle. For low or bursty volume, a per-token API usually costs less.
Are prompts filtered or kept by a third party?
No provider content filter sits in front of the model, and prompts and outputs stay on your pod, which nobody else shares. The model itself refuses far less often than the base model, though it can still decline some requests.


