The error message you are encountering indicates that you have not included your API key in the request header correctly.
To use your API key with Pawan.Krd's services, you need to include it in the Authorization header of your HTTP request. Here's a step-by-step guide on how to correctly set this up:
-
Obtain Your API Key:
- Ensure you have claimed your free daily API credits using the
/claimcommand in the appropriate Discord channel.
- Ensure you have claimed your free daily API credits using the
-
Include the API Key in the Request Header:
- When making requests to the Pawan.Krd API endpoints, include the API key in the request's HTTP headers, not in the URL.
Here is an example using curl:
curl -X POST https://api.pawan.krd/cosmosrp/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY_HERE" \ -d '{"messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 150}'Replace
"YOUR_API_KEY_HERE"with your actual API key. -
Verify the Endpoint:
- Make sure you are using the correct endpoint from the ones provided, such as
https://api.pawan.krd/cosmosrp/v1/.
- Make sure you are using the correct endpoint from the ones provided, such as
-
Check the API Documentation:
- For detailed information, please refer to the specific API documentation that guides how to structure your requests.
If you need further assistance or are facing difficulties, I recommend checking the Setup Guides Channel on Discord for more information or creating a support ticket for personalized help.
Please note: This is an automated response from @civic meteor. 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.