Here's a comprehensive guide on how to use the Janitor AI API:
-
Create an account on Janitor AI:
- Visit the Janitor AI website (janitorai.com)
- Sign up for a new account or log in if you already have one
-
Choose an API option: Janitor AI offers three main API options:
- JanitorLLM Beta (free, but limited availability)
- OpenAI (requires an OpenAI API key)
- Kobold AI (requires setting up Kobold AI)
-
Set up the chosen API:
For OpenAI:
- Go to openai.com and create an account
- Generate an API key in your OpenAI dashboard
- In Janitor AI, select OpenAI in the API settings
- Paste your OpenAI API key
For Kobold AI:
- Set up Kobold AI using a service like Google Colab
- Get the Kobold AI API URL
- In Janitor AI, select Kobold AI in the API settings
- Paste the Kobold AI API URL
For JanitorLLM Beta:
- Select JanitorLLM Beta in the API settings (if available)
-
Configure generation settings:
- Adjust parameters like temperature and max new tokens to control the AI's output
-
Create or select a character:
- Go to "My Characters" in Janitor AI
- Create a new character or select an existing one
-
Start chatting:
- Click on "Chat" for your chosen character
- The API should now be set up and ready to use
-
Integrate with your projects (optional):
- Use the Janitor AI API in your own applications or websites
- Refer to Janitor AI's API documentation for integration details
Important notes:
- Keep your API keys secure and don't share them publicly
- OpenAI API usage incurs costs, while JanitorLLM Beta is free (when available)
- Kobold AI can be set up for free but requires some technical knowledge
- Always check Janitor AI's latest documentation for any updates or changes to the API setup process
By following these steps, you should be able to set up and use the Janitor AI API for your chatbot interactions or development projects.
Answered August 12 2024 by Toolify
