Skip to main content
POST
cURL
Ensure that you replace YOUR_API_KEY_HERE with the actual API key generated from your profile in the B-Bot hub.
The temperature parameter is optional. If not provided, a default value will be used.
The max_tokens parameter is optional. If not provided, a default value will be used.

Authorizations

bbot-api-key
string
header
required

API key for authentication

Body

application/json

This endpoint allows you to invoke a language model using specific parameters, such as the expert and model IDs, input data, and additional configuration options.

expert_id
integer
required

The ID of the expert you want to invoke.

Example:

37

model_id
integer
required

The ID of the language model to be used.

Example:

6

input_data
object[]
required

A list of message objects containing the role and content of the input data.

temperature
number<float>

The sampling temperature, which controls the randomness of the model's outputs.

Example:

1

max_tokens
integer

The maximum number of tokens (words or word pieces) to generate in the response.

Example:

250

Response

Successful response with generated content

response
object