Create Chat Completion
Creates a chat completion in Groq.
POST
Query
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.
Body
Arguments
stringrequired
The Groq model identifier to use for the chat completion.
array of objectrequired
The chat messages to send, in order.
number
Upper bound for generated completion tokens.
boolean
string
string
boolean
number
string
number
boolean
Uncommon arguments
number
Controls response randomness from 0 to 2.
boolean
When true, return the completion as a stream.
string
string