klingapis.comOpen Source LLM API: Hosted Open-Weight Model, No GPU
Open Source LLM API: Hosted Open-Weight Model, No GPU
If you are looking for an open source LLM API, the practical version is a hosted open-weight model you call over HTTP. You skip the GPUs, the drivers and the serving stack, and keep the usual OpenAI client code.

What a hosted open-weight API actually is
People type "open source llm api" into a search box and mean slightly different things. Some want the model weights so they can run everything on their own machine. Some want an API that sits in front of an open model and behaves like the OpenAI API. Some want both: a hosted endpoint today, and the option to move the same model in-house later.
This site covers the second case. It is a hosted text API in front of one open-weight model, operated by an independent provider. The model is tuned to answer without content refusals for lawful adult use. You send a request to POST /v1/chat/completions, you get a completion back, and you pay for the tokens you used. Nothing runs on your hardware.
It is not the official API of any model vendor, and it is not a router that forwards your request to several vendors. There is one model behind one model ID, uncensored. That keeps behaviour predictable: the same prompt and the same settings go to the same weights every time.
Open source, open weights, and hosted: three different things
The words get mixed up, and the difference matters when you plan a project.
- Open source in the strict sense means the training code, data recipe and weights are all published under a license that lets you inspect and modify them. Very few large language models meet that bar.
- Open weights means the trained model files can be downloaded and run by anyone, usually under a license with its own terms. Most models people call "open source" are really this.
- Hosted means a provider runs the weights on its own GPUs and sells you access. The model can be open while the service is a normal paid product.
The service here is the third kind, wrapped around the second. You do not get the weights from us and you do not need them. What you get is a stable URL, a key, and a per-token price. If a license detail matters for your use case, read the license of the underlying model on its own page rather than assuming from the label.
Hosted API or self-hosting: how to decide
Running an open model yourself is a legitimate choice. It is just a different bundle of costs. Here is how the two compare on the points people usually care about.
| Question | Hosted API | Self-hosted |
|---|---|---|
| Upfront work | Create a key, change a base URL | Pick hardware, install a serving stack, tune it |
| Cost shape | Pay per token, zero when idle | Fixed hardware or rental cost, whether busy or idle |
| Spiky traffic | Limits apply (8 concurrent requests on a full key) | You scale by buying or renting more machines |
| Data location | Prompts go to the provider; they are not used for training | Everything stays on your machines |
| Offline use | Not possible | Possible |
| Model choice | One model, fixed | Any model you can fit and license |
A hosted API is the better fit when your usage is uneven, when you are still testing whether the model suits the task, or when nobody on the team wants to maintain GPU servers. Self-hosting is the better fit when you run a steady, heavy load around the clock, when data must never leave your network, or when you want to swap models freely.
Many teams do both in sequence: prototype against a hosted endpoint, then decide with real token counts whether owning hardware pays off. Because the API follows the OpenAI format, moving to a self-hosted server that also speaks that format later usually means changing the base URL and the model name.
Make your first call
Any OpenAI SDK works. Set the base URL to https://api.klingapis.com/v1, pass your key, and use uncensored as the model. New users can claim $0.50 of trial credit with one click on the API key page after sign-up, with no card needed.
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.klingapis.com/v1",
api_key="YOUR_API_KEY",
)
reply = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You are a direct, concise assistant."},
{"role": "user", "content": "Explain open weights in two sentences."},
],
temperature=0.7,
)
print(reply.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.klingapis.com/v1",
apiKey: process.env.API_KEY,
});
const reply = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Explain open weights in two sentences." }],
});
console.log(reply.choices[0].message.content);
curl
curl https://api.klingapis.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Explain open weights in two sentences."}]}'
To check what the endpoint offers, call GET /v1/models with the same header. The full parameter list is in the quickstart docs.
Where a hosted open model fits in a media workflow
This site is built around the text side of media pipelines, such as the ones people run around AI video and image tools. We are not affiliated with any of those tools, and this API does not generate video or images. What it does well in that setting is the writing work that comes before and after the render: expanding a one-line idea into a scene description, rewriting a script in a different tone, producing batches of variations, or turning a rough note into a structured list your code can read.
Structured output is where an open-weight model behind a normal API is useful. Switch on JSON mode, give the model a short schema in the system message, and parse the reply in your code. If a reply fails to parse, retry once with the error text appended. Because failed or refused requests are not billed, a retry loop costs you only the attempts that succeeded in producing text.
The cost-versus-quality trade-offs of the image and video side are a separate topic, covered in the article on image API cost trade-offs. Treat the language model as one inexpensive stage in a longer chain, and measure each stage on its own.
What you can and cannot do with it
The model handles the usual text jobs: chat, drafting, rewriting, summarising, classification, extraction and role-play dialogue. The API supports streaming over SSE, tool calling, and JSON mode through response_format. The sampling settings temperature, top_p, stop, seed and the penalties are passed through to the model. The context window is 100,000 tokens, counting the prompt and the completion together, and max_tokens is optional.
It is text only. There is no image, audio or video generation, no embeddings and no fine-tuning. If your pipeline needs those, you will call a different service for them and use this one for the language part, for example to write or revise the prompts that another tool consumes.
On content: the model is tuned not to refuse lawful adult requests, which suits fiction, role-play and companion apps for adults. One limit is fixed and cannot be switched off: no sexual content involving minors. You remain responsible for what your own product does with the output.
What it costs, with numbers
Billing is pay as you go from prepaid credit. Input tokens cost $0.15 per 1M and output tokens cost $0.50 per 1M. Failed or refused requests are not charged, and credit never expires.
Take a summarising job: 3,000 tokens in, 400 tokens out per request. Input costs 3,000 / 1,000,000 x $0.15 = $0.00045. Output costs 400 / 1,000,000 x $0.50 = $0.0002. One request is $0.00065, so 1,000 requests come to $0.65.
Now a heavier case: a 100,000-token prompt that fills the window, with a 2,000-token answer. Input is 100,000 / 1,000,000 x $0.15 = $0.015, output is 2,000 / 1,000,000 x $0.50 = $0.001, total $0.016 per call.
Top-ups are any whole amount from $20 to $500. A bonus applies on larger ones: +5% from $50, +10% from $100, +15% from $200. A $100 top-up therefore gives $110 of credit. You can pay with crypto (USDT on TRC20, USDC on Base). More detail sits on the pricing page.
Limits to plan around
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent requests and 60 per minute. The maximum body size is 8 MB. If you go over, the API answers with HTTP 429 and the error code rate_limited (too many requests per minute) or concurrency (too many at once). On temporary overload you also get a 429, with a Retry-After: 5 header.
One detail catches people: a streamed request holds its concurrency slot until the stream ends. If a client opens eight streams and reads them slowly, a ninth request is rejected even though little data is moving. Read streams to the end or close them.
Each response carries X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency, so you can log your remaining balance without a separate call. Prompts are not used for training.
More guides
Questions and answers
Is this the same as running an open source model myself?
No. The model is open-weight, but a provider runs it and you call it over HTTP. You trade control of the hardware for zero setup and per-token billing.
Can I use the official OpenAI SDK?
Yes. Set the base URL to https://api.klingapis.com/v1, use your key, and set the model to uncensored. Chat completions, streaming, tool calling and JSON mode follow the OpenAI format.
Do I get the model weights?
No. You get API access only. If you need the weights for offline use, look up the underlying model's own license and distribution terms separately.
Is there a free way to try it?
New users can claim $0.50 of trial credit with one click on the API key page, one per person, valid for 7 days, no card needed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.