EN ▾
Get API key

LLM Hosting APIWhy This Is the Best LLM API for Developers

What Is LLM Hosting? Self-Hosted vs API

LLM hosting is the job of keeping a language model loaded on GPUs and reachable over a network. This page explains the pieces, the three common ways to do it, and when each one fits.

Updated

Isometric illustration of GPU servers linked to a cloud and a laptop, representing hosted language model inference

Key points

LLM hosting in plain terms

So, what is LLM hosting? It is the work of running a large language model on computers that stay switched on, so that programs can send it text and get text back. The model itself is a big file of numbers called weights. Hosting means loading those weights into GPU memory, wrapping them in software that accepts requests, and keeping the whole thing reachable and fast enough for real use.

When you type into a chatbot, a hosted model is answering. When a script calls an API and receives a completion, a hosted model is answering as well. The only question is who runs the machines: you, a cloud you rent from, or a provider who sells you access by the token.

The word "hosting" is borrowed from web hosting, and the comparison holds up. A website needs a server, a web server program and a domain. A model needs a GPU, an inference server program and an endpoint. The difference is cost: serving a page uses a sliver of a CPU, while serving a model can occupy tens of gigabytes of GPU memory for every copy you run.

The parts of a hosted model

Every setup, from a hobby box to a large cluster, has the same layers.

Why memory decides everything

A rough sizing rule: parameters multiplied by bytes per parameter. A 7 billion parameter model stored at 16-bit precision (2 bytes each) needs about 14 GB just for weights. The same model squeezed to 4-bit needs around 3.5 GB. A 70 billion parameter model at 4-bit is near 35 GB. On top of that comes the KV cache, memory that grows with every token of context a request carries. A long prompt with many simultaneous users can use more memory than the weights did.

This is why hosting is a capacity puzzle and not a simple install. You size for the busiest minute, then pay for the machine during all the quiet ones.

Three ways to host a model

OptionWhat you runWhat you pay forBest fit
Own hardwareEverything, in your room or rackGPU purchase, power, your timeSteady heavy load, strict data control, tinkering
Rented GPUInference server and API, on a cloud machineHourly or monthly machine rental, whether busy or idleCustom models, fine-tuned weights, predictable traffic
Hosted APIOnly your application codeTokens usedVariable load, fast start, small teams

The first two options are what people usually mean by self-hosted. You choose the model, the quantization, the context length and the server settings. You also get the pager when the process dies at night.

The third option is a service. Someone else keeps the GPUs busy by pooling many customers, and you see a base URL, a key and a price per million tokens. You give up control of the weights and the server flags in exchange for not having to think about them.

Terms you will meet while comparing options

Hosting docs and price pages use a small vocabulary. Knowing it saves you from comparing numbers that measure different things.

When two providers quote different speeds, ask which of these they measured and under what load. A figure taken on an empty server tells you little about a busy afternoon.

What you manage and what the provider manages

The split is easiest to see as a checklist of chores.

  1. Pick a model and download its weights. Self-hosting: you. API: the provider.
  2. Match GPU memory to model size and context length. Self-hosting: you. API: the provider.
  3. Tune batch sizes, quantization and concurrency. Self-hosting: you. API: the provider.
  4. Handle bursts, queueing and overload. Self-hosting: you. API: the provider returns an error such as HTTP 429 and you retry.
  5. Patch drivers and update the server software. Self-hosting: you. API: the provider.
  6. Write the application that uses the output. Always you.

The hidden cost of self-hosting is utilization. A GPU that answers requests ten percent of the day still bills for the other ninety. A per-token price has no idle time, because tokens you do not generate cost nothing.

A quick break-even picture

Suppose a rented GPU costs a fixed amount per month. Every token you generate on it lowers the effective price per token, until the machine is saturated. Below that point, an API is usually cheaper. Above it, owning capacity can win. Where the line sits depends on your model, your traffic and your rental price, so measure your own token volume before deciding. Your own logs, or the usage figure returned with each API response, give you the numbers.

When self-hosting makes sense

Run it yourself when one of these is true:

Choose an API when traffic is uneven, when you want to ship this week, or when nobody on the team wants to be responsible for GPU drivers. Many projects start on an API and move to their own machines later, once real usage numbers justify it. Because compatible servers share the OpenAI request format, switching between them is usually a change of base URL and key.

Where this service fits

This site sells the hosted API option. It serves one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. The model ID is uncensored. It is text only: no images, audio, video, embeddings or fine-tuning. It is not the official API of any model vendor and not a router across vendors.

The interface is OpenAI-compatible, with POST /v1/chat/completions and GET /v1/models. Context is 100,000 tokens for prompt plus completion. Streaming, tool calling and JSON mode are supported. Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens from prepaid credit, with no subscription and no expiry. Failed or refused requests are not charged. Prompts are not used for training. The hard limit is no sexual content involving minors.

The pricing page has the top-up tiers and bonuses, and the comparison article covers how to judge an uncensored provider. If you only want to see whether the output suits your project, the trial credit is a free way in: it is $0.50, claimed with one click on the API key page after sign-up, valid for 7 days, no card needed.

Try a hosted endpoint in five minutes

List the available model first. This also proves your key works.

curl https://api.llmhostingapi.com/v1/models \
  -H "Authorization: Bearer $LLM_API_KEY"

Then send a chat request. The model ID is uncensored.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmhostingapi.com/v1",
    api_key=os.environ["LLM_API_KEY"],
)

reply = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Explain what an inference server does in two sentences."}],
)
print(reply.choices[0].message.content)

If this runs, you have used hosted inference without touching a GPU. The quickstart shows streaming, tool calling and JSON mode with the same client. Each response also carries an X-Balance-USD header, so you can watch spend while you experiment.

Questions and answers

Is LLM hosting the same as an LLM API?

An API is one way of delivering hosted inference. Someone hosts the model, and you reach it with HTTP requests. Self-hosting means you run that same stack on your own or rented machines.

How much GPU memory do I need to host a model?

Multiply the parameter count by the bytes per parameter for the weights, then add room for the KV cache. A 7 billion parameter model at 16-bit needs about 14 GB for weights alone.

Can I move from a hosted API to my own server later?

Usually yes. Popular open-source inference servers expose OpenAI-style endpoints, so the code change is often only the base URL, key and model name.

Does hosting through an API mean my prompts train the model?

That depends on the provider. On this service prompts are not used for training.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key