POST
/
chat

Authorizations

api-key
string
header
required

Authenticate requests using an API key linked to your qBraid account. Obtain your key by registering or logging in at account.qbraid.com.

Body

application/json
prompt
string
required

The input prompt for the chat model

model
string
default:
gpt-4o-mini

The name of the chat model to use. See Get Models for available models.

stream
boolean
default:
false

Whether to stream the response.

Response

200 - application/json
content
string

The completion content when stream is false

usage
object