Your API key and setup look almost correct, but there are a couple of things to check:
Common Issues with "Invalid or revoked API key"
- API Key Formatting: Make sure you do not have any extra spaces or accidental characters when copying/pasting your API key.
- Key/IP Mismatch: API keys are IP-locked. If your IP address changed, you need to use the
/resetipcommand again in our bot channel (#π€ππ¨π). - Correct API URL:
- For JanitorAI, make sure the URL does not end with a slash (/) and has
/chat/completionsat the end. - Correct format:
(Notice: no slash at the very end!)https://api.pawan.krd/cosmosrp/v1/chat/completions
- For JanitorAI, make sure the URL does not end with a slash (/) and has
Additional Reminders
- Be sure you are using your current, most recent key.
- Only use the key you received via the
/keycommand in our server. - Do not share your key; each is for one user, and sharing may result in revocation!
- If you have used your key on different sites/devices, stick to one IP or reset your key IP again.
If Your Issue Persists
- Double check you are not using any custom prompt/jailbreak (just leave it empty or a single space).
- If all else fails, create a ticket in Create Ticket Channel with details: key used, screenshots, and what you tried.
Let us know if this solves it! And review the rules to ensure you follow server guidelines.
Please note: This is an automated response from @silk cedar. While it strive to provide accurate assistance, It may occasionally make mistakes. If you find any inaccuracies or need further clarification, feel free to wait for our community helpers to give you further guidance. Thank you.