Home/Guide
OpenAI Compatible API Server: Features and Limits
A hosted server that follows the OpenAI chat format lets you reuse the SDKs and tools you already have. Here is exactly what this one supports, what it leaves out, and how to test it in a minute.
Updated

- Two endpoints: POST /v1/chat/completions and GET /v1/models, with the model ID uncensored.
- Streaming, tool calling and JSON mode are supported; embeddings and image generation are not.
- Context window is 100,000 tokens; a full key allows 8 concurrent requests and 300 per minute.
- Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit.
Specs at a glance
An openai compatible api server is a service that accepts the same HTTP requests as OpenAI's chat API, so existing client libraries work after you change the base URL and the key. This one lives at https://api.llamaapis.com/v1. It serves one open-weight text model, operated by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of any model vendor and not a router across several of them.
| Item | Value |
|---|---|
| Base URL | https://api.llamaapis.com/v1 |
| Endpoints | POST /v1/chat/completions, GET /v1/models |
| Model ID | uncensored |
| Authentication | Authorization: Bearer <key> |
| Context window | 100,000 tokens, prompt plus completion |
| Max request body | 8 MB |
| Price | $0.15 per 1M input tokens, $0.50 per 1M output tokens |
Anything not in this table, such as latency or uptime figures, is not something this page can promise.
The point of the table is to let you decide fast. If your application only needs text generation through chat messages, the list above covers it. If you rely on anything outside it, read the next sections before you commit, since a missing endpoint is cheaper to discover now than after a migration.
Supported features
Streaming
Set stream: true and the server sends server-sent events as tokens are produced. Usage is reported at the end of the stream.
Tool calling
The request fields tools and tool_choice are accepted. When the model calls a function, the tool_calls arrive in the response, or as deltas when streaming. You send results back as messages with role: "tool".
JSON mode
Set response_format to {"type": "json_object"} and the reply is a JSON object. Tell the model in the prompt which keys you want.
Sampling parameters
temperature, top_p, stop, seed and the frequency and presence penalties are passed through to the model. max_tokens is optional. If you omit it, the completion can use whatever is left of the 100,000-token window.
What is not there
This is a text API. It does not generate images, audio or video, it has no embeddings endpoint, and it does not offer fine-tuning. There is one model, so the /v1/models list is short. If your stack depends on embeddings, use a separate embedding provider for that step.
Test compatibility in one minute
The fastest way to judge compatibility is to run your own client against it. Create a key on the API key page, then try curl first:
curl https://api.llamaapis.com/v1/chat/completions \
-H "Authorization: Bearer $LLAMAAPIS_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Reply with the single word: ready"}],
"max_tokens": 5
}'
Then the Python SDK, with streaming turned on:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llamaapis.com/v1",
api_key=os.environ["LLAMAAPIS_KEY"],
)
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Count from 1 to 5."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
And Node, for JSON mode:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llamaapis.com/v1",
apiKey: process.env.LLAMAAPIS_KEY,
});
const r = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Return JSON with keys city and country for Paris." }],
response_format: { type: "json_object" },
});
console.log(JSON.parse(r.choices[0].message.content));
If these three run, most tools built on the same SDKs will run too. The docs page has the same first request in a compact form.
Limits and the headers that report them
Limits depend on the type of key.
| Key | Concurrent requests | Requests per minute |
|---|---|---|
| Full key | 8 | 300 |
| Trial key | 2 | 60 |
Every response includes X-Request-Id, which is what you quote if you contact support, plus X-Balance-USD with your remaining credit and the headers X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency with your ceilings. Read them in code to build a balance alert or a client-side throttle.
When you exceed a limit, the response is HTTP 429. The error code rate_limited means too many requests per minute, and concurrency means too many at once. During temporary overload you also get a 429, with a Retry-After: 5 header. Respect it. A streamed request holds its concurrency slot until the stream closes. The details of each case are covered in the facts page for this API.
Migrating an existing app
Moving an app that already uses the OpenAI SDK is a short checklist. Change the base URL to https://api.llamaapis.com/v1. Replace the key. Replace the model name with uncensored. Search your code for features that fall outside the text chat surface: image generation, speech, embeddings, the Assistants-style APIs, file uploads, fine-tuning calls. Those calls will not work here, and you need to route them elsewhere.
Next, check any logic that depends on a specific model's quirks, such as hard-coded token limits for another model, or prompt text tuned to another model's habits. The context window here is 100,000 tokens, so limits written for a smaller window can be relaxed. Test streaming end to end with your real front end, because proxies and edge functions sometimes buffer server-sent events and make a stream look like one big response.
Run a small side-by-side test before you switch traffic. Send twenty real prompts to both backends, read the answers, and note where behavior differs. This is also where the lack of content refusals shows up: prompts that your previous provider declined for lawful adult reasons will now get an answer, and your application may need its own rules about what to show to which audience.
Cost and billing model
There is no subscription. You add credit and each request deducts its token cost. Failed or refused requests are not charged, and credit never expires.
A worked example: a chat turn with 2,000 input tokens and 600 output tokens costs 2,000 x $0.15 / 1,000,000 = $0.0003 for input and 600 x $0.50 / 1,000,000 = $0.0003 for output, so $0.0006 in total. A thousand such turns cost $0.60.
Top-ups are any whole amount from $20 to $500. You get +5% from $50, +10% from $100 and +15% from $200, so a $200 top-up yields $230 of credit. Payment is by crypto (USDT on TRC20, USDC on Base). See the pricing page for the current table. New users can also claim $0.50 of trial credit with one click on the key page, valid for 7 days, with no payment needed.
When a hosted server is the wrong choice
A hosted API is not always the better answer. If you need to choose your own weights, run offline, keep prompts on your own hardware, or fine-tune, a self-hosted server is the right tool, and many open-source servers expose the same OpenAI-style interface. If you need images or embeddings from the same vendor, you will need other services alongside this one.
It fits best when you want an OpenAI-style interface for text generation, no GPU to manage, per-token billing, and a model that does not refuse lawful adult requests such as fiction and roleplay for adults, or technical work that other assistants decline. The hard limit is simple: no sexual content involving minors. Prompts are not used for training.
Reading the response and usage
The response body follows the usual shape: an id, a choices list with the assistant message and a finish_reason, and a usage object with prompt and completion token counts. Use those counts, not estimates, to compute cost. Multiply input tokens by $0.15 and output tokens by $0.50, each divided by 1,000,000.
The finish_reason tells you why generation stopped. A value of stop means the model ended naturally or hit a stop sequence, length means it reached a token cap, and tool_calls means it wants you to run a function and reply. Handle all three in code. A reply cut off by max_tokens looks fine until a user notices the missing ending.
For billing checks, compare the X-Balance-USD header before and after a batch with your own token math. They should agree to within rounding. Pricing details, bonus tiers and top-up steps are on the pricing page.
More guides
Questions and answers
Which OpenAI SDK features work?
Chat completions with streaming, tool calling, JSON mode and the common sampling parameters work. Embeddings, images, audio and fine-tuning are not offered.
What do I put as the model name?
Use uncensored. The /v1/models endpoint lists what is available to your key.
How do I pay?
With crypto only (USDT on TRC20 or USDC on Base). Top-ups are any whole amount from $20 to $500.
What happens when I hit a rate limit?
You get HTTP 429 with the error code rate_limited or concurrency. On temporary overload the 429 includes Retry-After: 5, so wait that long and retry.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.