Set up your Janitor AI API by choosing an AI provider, copying your API key, pasting it into Janitor AI settings, and testing a chat. That is the whole trick. OpenAI, for example, lets you create secret API keys from its developer dashboard [source: OpenAI]. Expect the first setup to take about 10 to 20 minutes, unless a tiny setting decides to be annoying.

TLDR: Pick an API provider, create an API key, add it to Janitor AI, then test it with a short message. For example, if you run a roleplay bot for 50 messages, a lightweight model may cost only a few cents, while larger models can cost more. A user named Mia could connect an API in 15 minutes, test 10 replies, then adjust the bot prompt when 3 replies feel too stiff. Keep your key private, because anyone with it can spend your credits.

What an API does for Janitor AI

An API is like a food delivery app for words.

You type a message in Janitor AI. Janitor AI sends it to an AI model through the API. The model cooks up a reply. Then Janitor AI shows that reply in your chat.

Simple. Weirdly powerful.

Without an API, Janitor AI may not have a brain to answer with. With an API, your character can talk, joke, flirt, explain, argue, or act like a dramatic vampire with rent problems.

What you need before you start

Do not start clicking everywhere yet. That is how tabs multiply like gremlins.

Get these ready first:

  • A Janitor AI account. You need to log in.
  • An API provider account. Common choices include OpenAI, OpenRouter, KoboldAI, or other supported services.
  • A payment method, if your provider is paid.
  • An API key. This is your secret access code.
  • A test character in Janitor AI.

Do not share your API key. Not in Discord. Not in screenshots. Not with your “tech friend” who keeps saying, “Trust me.”

Step 1: Choose your API provider

Janitor AI can work with different model providers, depending on what the site currently supports. The exact list may change. That part is mildly irritating. One update can move a button and waste 90 seconds of your life.

Here are common choices:

  • OpenAI: Reliable. Easy for beginners. Usually paid by usage.
  • OpenRouter: Lets you pick from many models in one place.
  • KoboldAI: Popular with people using local or self-hosted setups.
  • Janitor’s own model options: If available, these may be simpler to use.

If you are new, start with the simplest paid or hosted option. Local tools can be fun, but they can also turn your evening into a driver update ceremony.

Step 2: Create your API key

Open your provider’s dashboard. Find the section called something like API Keys, Keys, or Developer Settings.

Then do this:

  1. Click Create new key.
  2. Name it something clear, like Janitor AI Chat.
  3. Copy the key right away.
  4. Store it in a password manager.

Most providers show the key only once. If you close the page too soon, it is gone. Yes, that is annoying. No, yelling at the screen does not bring it back.

If that happens, delete the old key and make a new one.

Step 3: Open Janitor AI settings

Now go to Janitor AI and sign in.

Look for your profile menu. Then open Settings or API Settings. The names may vary a little.

You are looking for fields such as:

  • API Provider
  • API Key
  • Model
  • API URL, if needed
  • Temperature
  • Max tokens

Do not panic if you see too many boxes. Most beginners only need the provider, key, and model.

Step 4: Paste the key

Choose your provider from the API menu. Paste your API key into the key field.

If your provider asks for a base URL, copy it from the provider’s docs. For example, OpenRouter and local tools often use a special endpoint. OpenAI setups are often prefilled by the app.

Click Save.

Then breathe. You have done the scary part.

Step 5: Pick a model

The model controls how the bot thinks and writes.

A small model is cheaper and faster. A large model is often smarter, but costs more. For casual character chat, start with a cheaper model. Upgrade later if the replies feel flat.

Use this simple rule:

  • Cheap model: Good for testing.
  • Middle model: Good for daily chats.
  • Large model: Good for complex roleplay and deep memory.

Honestly, it feels like picking a pizza size. Small works until five people show up.

Step 6: Adjust the fun knobs

Janitor AI may show settings like temperature, max tokens, and top p.

Here is the simple version:

  • Temperature: Controls creativity. Try 0.7 to start.
  • Max tokens: Controls reply length. Try 300 to 600.
  • Top p: Another creativity control. Leave it alone at first.

Higher temperature can make replies spicy and weird. Lower temperature makes replies safer and more focused.

If your knight character suddenly invents a coffee shop in space, lower the temperature.

Step 7: Test your character

Open a character chat. Send a short test message.

Try something simple:

“Hi. Tell me who you are in one sentence.”

If the API works, the character should reply. Great. You now have a talking bot.

If it fails, check these things:

  • Is the API key pasted correctly?
  • Did you choose the right provider?
  • Do you have billing enabled?
  • Did you pick a valid model?
  • Is the provider having server trouble?

The catch is that error messages are not always helpful. Sometimes they act like a fortune cookie written by a printer.

Common API setup problems

Problem: The bot does not reply.

Fix: Check your key, model, and credits.

Problem: You get an “unauthorized” error.

Fix: Your key is wrong, expired, or pasted with an extra space.

Problem: Replies stop halfway.

Fix: Raise max tokens.

Problem: Replies are too wild.

Fix: Lower temperature.

Problem: Costs rise too fast.

Fix: Use a cheaper model, shorter replies, and smaller context size.

How to keep costs under control

API chat can cost money. Not always a lot, but enough to surprise you.

Use these habits:

  • Set a spending limit with your provider.
  • Test with cheap models first.
  • Keep bot descriptions clean and short.
  • Do not ask for giant replies every time.
  • Check usage after your first long chat.

A good starter plan is simple. Test 20 messages. Check cost. If it looks fine, continue. If not, switch models before your wallet starts sweating.

Safety tips for your API key

Your API key is private. Treat it like a house key with a credit card taped to it.

  • Never post it online.
  • Never send it to strangers.
  • Blur it in screenshots.
  • Delete old keys you no longer use.
  • Make separate keys for separate apps.

If you think the key leaked, delete it at once. Then make a new one.

Quick setup checklist

  1. Create a Janitor AI account.
  2. Choose an API provider.
  3. Create an API key.
  4. Open Janitor AI settings.
  5. Select your provider.
  6. Paste the key.
  7. Pick a model.
  8. Save settings.
  9. Send a test message.
  10. Adjust temperature and reply length.

That is it. Your Janitor AI setup is ready. Start small, test often, and keep your API key secret. The bot can be silly. Your billing page should not be.

Scroll to Top
Scroll to Top