How to use OpenAI API with Janitor AI?
Get an API key from platform.openai.com, then in a Janitor AI chat open API Settings, choose the OpenAI (or proxy) option, paste your key, pick a model like gpt-4o, and save. As of 2026-07 you pay OpenAI directly per token, so costs rise with how much you chat.
Why — the first-principles explanation
Using the OpenAI API means Janitor AI stops using its own model and instead relays your messages to OpenAI's servers. Janitor AI handles the character and the chat interface; OpenAI supplies the "brain" that writes each reply. Your API key is the credential that links your Janitor chats to your personal OpenAI account.
The important consequence is billing. Unlike JanitorLLM, OpenAI charges by the token, where a token is roughly three-quarters of a word, counting both what you send and what the model writes back. A long roleplay with a big character card and lots of history sends more tokens per message, so cost scales with conversation length, not a flat monthly fee. You set a spending limit inside your OpenAI account to stay in control.
People accept that cost for quality and consistency: OpenAI's models often follow characters more reliably and don't sit in Janitor's free queue. The trade-off is that your chats now pass through OpenAI under its usage policies, and OpenAI's own content filters may refuse some explicit roleplay that JanitorLLM allows.
An example that makes it click
It's like switching from your building's free gym to a private trainer who bills by the minute. Janitor AI is still the room and the workout plan (the character), but now a hired pro runs the session (OpenAI's model). You hand over your membership number (the API key), and instead of a flat fee you pay for exactly how long you train, longer chats cost more. The pro is sharper, but has stricter rules about what exercises they'll do.
How to do it
- Create an account at platform.openai.com and add a payment method with a spending limit.
- Open the API keys page, click 'Create new secret key,' and copy it (starts with sk-).
- In Janitor AI, open a chat and go to API Settings via the menu.
- Choose the OpenAI option (or Proxy with OpenAI's endpoint) and paste your key.
- Select a model such as gpt-4o and save the configuration.
- Refresh the browser, then send a test message and monitor usage in your OpenAI dashboard.
Key facts
- The OpenAI API requires your own key from platform.openai.com; keys start with sk-.
- OpenAI bills per token (input plus output), so cost rises with conversation length.
- You pay OpenAI directly, separate from Janitor AI, which stays free to use.
- You can set spending limits in your OpenAI account to control cost.
- OpenAI's content filters may refuse some explicit roleplay that JanitorLLM permits.
▶ The 60-second explainer (script)
How do you use the OpenAI API with Janitor AI? Here's the setup and the fine print, as of July 2026. When you do this, Janitor AI stops using its own model and relays your messages to OpenAI's servers instead. Janitor still runs the character and the chat; OpenAI supplies the brain. Step one: go to platform dot openai dot com, create an account, and add a payment method, then set a spending limit. Step two: open the API keys page, click Create new secret key, and copy it, it starts with s-k. Step three: in Janitor AI, open a chat, go to API Settings, choose the OpenAI option, and paste your key. Pick a model like gpt-4o and save, then refresh. Now the important part: OpenAI charges by the token, which counts both what you type and what the model writes. So longer chats cost more, it's not a flat fee. Set that spending limit and watch your usage dashboard. One more thing: OpenAI's own filters may refuse some explicit content that Janitor's model allows.
What authoritative sources say
People also ask
Is the OpenAI API free with Janitor AI?
No. OpenAI charges per token, so you pay based on how much you chat; Janitor AI itself stays free.
Where do I get the OpenAI key?
From platform.openai.com under API keys. Create a secret key starting with sk- and copy it.
Will OpenAI allow NSFW roleplay?
OpenAI's content filters may refuse some explicit content that JanitorLLM allows, so it's more restricted.
How do I avoid a surprise bill?
Set a hard spending limit in your OpenAI account and monitor token usage in the dashboard.