Openrouter API | Tutorial
This is a tutorial to use openrouter for my bots and many others that allow different llms.
Basically copied and pasted from @tarnisator with add-ons
Don't bother chatting with this bot - there is nothing in it to chat with.
IF I SEE ANY CHAT NUMBERS IN THIS BOT, I AM GONNA QUESTION YOUR SANITY
Free Tier (50 requests per day on select models)
Create an account on OpenRouter. https://openrouter.ai
Click your Profile > Keys.
Click "Create API Key".
Give your new key a name, e.g. Janitor. Confirm with "Create".
Copy and save your key somewhere on your computer. IMPORTANT! It will be gone after you click away!
In Janitor AI, open a chat. Then open API settings. (Menu > API settings OR Click using janitor/proxy). Pick Proxy.
Set the following:
Model name (choose Custom): deepseek/deepseek-chat-v3-0324:free
Other models: deepseek/deepseek-r1-0528:free, tngtech/deepseek-r1t2-chimera:free. For a comparison and more suggestions, see below.
Proxy URL: https://openrouter.ai/api/v1/chat/completions
Do not click "Add/chat/completions to url". It's already in the URL.
API Key: Paste the API key you created on OpenRouter. It is a really long thing that starts probably with "sk-...".
This is like an Advanced Prompt for JLLM but with a jailbreak in it.
Click "Save Settings".
(Suggested) Accept the default OpenAI generation settings and then lower the temperature to 0-0.1 or 0.8 (yes!) and max tokens to 0 (infinite).
Refresh your Janitor AI chat. Important!
If you don't, you will see an error message when you try to chat.
If Janitor prompts you to allow training on certain models, open Openrouter, go into settings, click training logging and privacy, and allow training.
Example (one I am currently using - this one is free):
Create a new configuration.
Configuration name: Xiaomi: MiMo-V2-Flash
Model name: xiaomi/mimo-v2-flash:free
Proxy url: https://openrouter.ai/api/v1/chat/completions
API key: [Your personal API key]
Here are the free llms I frequently use:
Config name: Kwaipilot: KAT-Coder-Pro V1
Model name: kwaipilot/kat-coder-pro:free
Config name: Nex AGI: DeepSeek V3.1 Nex N1
Model name: nex-agi/deepseek-v3.1-nex-n1:free
Config name: Mistral: Devstral 2 2512
Model name: mistralai/devstral-2512:free
[If I miss something, I will update y'all]
Published chats
comments
Leave a comment or feedback for the creator ❤️