To use the B-Bot API, you need to generate an API key from your profile. Follow these steps to create and add the API key:
When making requests to the B-Bot API, include the API key in the request headers.
The header should be formatted as follows:
bbot-api-key: YOUR_API_KEY_HERE
Here is an example of how to include the API key in a cURL request to the api/v1/invoke_llm
endpoint:
bashCode kopieren
curl -X POST <https://your-api-url.com/api/v1/invoke_llm> \\
-H "Content-Type: application/json" \\
-H "bbot-api-key: YOUR_API_KEY_HERE" \\
-d '{
"expert_id": 37,
"model_id": 6,
"input_data": [
{"role": "user", "content": "Hello!"}
],
"temperature": 1,
"msx_tokens": 250
}'
Replace YOUR_API_KEY_HERE
with the API key you generated from your profile.