Chat Completions
This API endpoint creates a model response for the given chat conversation using the POST
method.
Body
A list of messages comprising the conversation so far.
Name of the Mind that you created.
If set, Minds’ thoughts will be streamed before the final response.
This setting ranges from -2.0 to 2.0. Positive values make the model less likely to repeat phrases it has already used.
This parameter sets the maximum number of tokens that can be generated in the chat completion.
This parameter controls the randomness of the output with values ranging from 0 to 2. A higher value increases randomness in the output, while a lower value, like 0.1, results in more focused and deterministic output.
This setting allows you to specify a list of tools that the model can call, currently limited to functions.
Response
Unique identifier for the completion.
Type of the returned object (e.g., “chat.completion”).
Timestamp for when the completion was created.
Name of the model that generated the response.
An array of response choices. Each choice includes an index and the assistant’s message.
Token usage statistics for the prompt and response.
Optional fingerprint of the backend system.
Authorization
A valid API key must be passed in the Authorization
header:
Generate your API key here.
Path Parameters
None.