Skip to main content
POST
Chat completion using Groq Endpoint

Request Body

array
required
Array of messages to send to the chat model.
string
required
The model to use for chat completion.
boolean
Whether to stream the response or not.

200 - Successful chat completion response

string
The unique identifier for the chat completion request.
string
The type of the object returned, typically ‘chat.completion’.
integer
The timestamp of when the chat completion was created.
string
The model used for generating the chat completion.
string
Fingerprint of the system, if available.
array
The array of completion choices.
object
Usage statistics for the request.

400 - Error response

string
The error message explaining what went wrong.