EN ▾

chatterbotapi.com2026-10-30uncensored

Uncensored LLM API

Start now

ChatterBot API vs a Hosted LLM Chat API

There is no hosted chatterbot api: ChatterBot is a Python library that you run yourself. If you want an endpoint you can call from any language, a hosted LLM chat API is the closer match, and the difference is bigger than the name suggests.

Card-sorting machine on one side and a glowing cloud endpoint on the other, contrasting a library with a hosted API

Summary

  1. ChatterBot is a library you install and host; an LLM chat API is a service you call over HTTP.
  2. ChatterBot picks stored replies from a trained corpus; an LLM writes new text from the conversation.
  3. A hosted call costs about $0.000325 per message at 1,500 tokens in and 200 out ($0.15 and $0.50 per 1M).
  4. ChatterBot still makes sense for small, fixed, offline FAQ bots.

What the two things are

The phrase chatterbot api is used for two different needs. Some people want to expose the ChatterBot library over HTTP so a website or app can talk to it. Others want a ready-made chat endpoint and use "chatterbot" loosely to mean any chat bot. Both are reasonable, so here are the two options side by side.

ChatterBot is an open-source Python library. You install it, train it on conversation pairs, and call it from your own Python process. There is no company hosting it for you. The "API" is whatever web wrapper you write.

A hosted LLM chat API is a service. You send a JSON request to a URL with a key, and a language model replies. Here that is an OpenAI-compatible API for one open-weight model, model ID uncensored, run by an independent provider. It is not an official product of OpenAI or any other model vendor.

Comparison table

QuestionChatterBot libraryHosted LLM chat API
Where it runsYour server or laptopThe provider's servers
How replies are madeBest match from trained pairsGenerated by a language model
Handles unseen questionsWeakly: returns the nearest stored replyYes, writes a new answer
Memory of the chatLimited by its designWhatever you send, up to 100,000 tokens
Languages you can call it fromPython, or via your own web wrapperAny language that can send HTTP
SetupInstall, train, host, maintainGet a key, set a base URL
CostNo per-message fee; you pay for hosting and your timePer token, prepaid
Offline usePossibleNeeds internet

The right column assumes you use this API. Other hosted services have their own limits and prices, so check them before you compare.

Quality: stored replies vs generated text

The biggest practical gap is how a reply gets made. A corpus bot can only say what it was taught, so its quality is the quality of your training data. If a user asks about something outside the corpus, it answers anyway with the closest phrase, which can read as nonsense.

A language model has no such ceiling. It can follow instructions in a system prompt, hold a persona, answer a follow-up that depends on the previous message, and write in a requested format. JSON mode (response_format: {"type":"json_object"}) and tool calling are available when the output feeds your code. The trade-off is that a model can be confidently wrong, so for answers that must be exact, such as prices or legal text, keep fixed replies in your own code.

One more point: this model is tuned to answer without content refusals for lawful adult use. Sexual content involving minors is never allowed, and for a public bot you still need your own moderation.

Speed differs as well. A local lookup returns almost instantly. A hosted model needs a network round trip and time to produce text, so a long answer can take several seconds. Streaming helps: with stream: true the words arrive over SSE as they are generated, and the usage figures come at the end. For a chat widget that matters more than total time, because users see the reply start almost at once.

Calling a hosted chat API

A call is a single request. In curl:

curl https://api.chatterbotapi.com/v1/chat/completions   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a friendly support bot. Keep answers short."},
      {"role": "user", "content": "How do I reset my password?"}
    ]
  }'

And in Node, without any SDK:

const res = await fetch("https://api.chatterbotapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.CHAT_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "uncensored",
    messages: [{ role: "user", content: "Hello" }],
  }),
});
const data = await res.json();
console.log(data.choices[0].message.content);

The same works from PHP, Go, Ruby or a no-code tool that can send a POST request. Because the format matches OpenAI's, any OpenAI SDK also works after you change the base URL and the key. If your starting point is a Python ChatterBot script, the step-by-step ChatterBot migration to an LLM backend shows the code change.

Cost: free library, paid hosting vs pay-per-token

The library is free to install, but a bot still has to run somewhere. You pay for a server or use your own machine, and you spend time on training data, updates and uptime. That is a fair deal for a tiny internal tool.

The hosted API charges per token: $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit with no subscription. Failed or refused requests are not charged, and credit never expires. Take a support bot with 1,500 tokens of prompt and history per message and 200 tokens of reply: 1,500 x $0.15 / 1M = $0.000225 for input and 200 x $0.50 / 1M = $0.0001 for output, so $0.000325 per message. At 1,000 messages a day that is $0.325, or $9.75 over 30 days.

Top-ups start at $20 and go to $500, paid in crypto only (USDT on TRC20 or USDC on Base), with +5% from $50, +10% from $100 and +15% from $200. Details are on the pricing page.

Wrapping the hosted API in your own endpoint

If you searched with the idea of exposing a bot over HTTP, you can still do that with the hosted model behind it. A small Flask service keeps your key on the server, gives your front end a simple URL and stores a history per session.

import os
from flask import Flask, request, jsonify
from openai import OpenAI

app = Flask(__name__)
client = OpenAI(
    base_url="https://api.chatterbotapi.com/v1",
    api_key=os.environ["CHAT_API_KEY"],
)
SYSTEM = "You are a friendly support bot. Keep answers short."
SESSIONS = {}

@app.post("/chat")
def chat():
    data = request.get_json()
    sid = data.get("session", "default")
    history = SESSIONS.setdefault(sid, [])
    history.append({"role": "user", "content": data["message"]})
    r = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "system", "content": SYSTEM}] + history[-20:],
    )
    answer = r.choices[0].message.content
    history.append({"role": "assistant", "content": answer})
    return jsonify({"reply": answer})

Your web page or mobile app now posts {"session": "abc", "message": "Hi"} to /chat and receives {"reply": "..."}. The key never reaches the browser. This is the same shape a ChatterBot web wrapper would have, so front ends written for one can often talk to the other with little change.

For production, replace the in-memory dictionary with a database, add a per-session rate limit, and handle errors from the API: catch RateLimitError and retry after a few seconds. Streaming is available over SSE if you want the reply to appear word by word.

When to pick which

Choose the ChatterBot library if the bot is small and fixed, if it must run offline, or if you want every possible answer to be one you approved. Choose a hosted LLM API if users ask open questions, if the bot needs a personality or memory, or if several apps in different languages need the same endpoint.

A hosted key has real limits to plan around: 8 concurrent requests and 300 requests per minute on a full key, 2 and 60 on a trial key, and HTTP 429 when you cross them. It is text only, with no images, audio, embeddings or fine-tuning. To test it, claim the $0.50 trial on the API key page: one click after sign-up, valid for 7 days, no payment details. The docs list every endpoint.

Common questions

Does ChatterBot offer a hosted service?

No. ChatterBot is a Python library that you install and run yourself. Any web endpoint around it is something you build.

Can I use an LLM API from Python the same way?

Yes. Use the openai package with base_url set to https://api.chatterbotapi.com/v1, your key and the model uncensored.

Is the hosted API cheaper than running ChatterBot?

It depends. The library has no per-message fee but needs hosting and upkeep. The API costs about $0.000325 per message in the example above, with no servers to run.

What happens if I send too many requests?

The API returns HTTP 429 with the code rate_limited or concurrency. On temporary overload it adds a Retry-After: 5 header, so wait and retry.

Get your API key

Sign up, copy the key, update your base URL. That’s it.

Start with free credit

Enter email and password. Key displayed instantly.