POST
/
chat
curl --request POST \
  --url https://api.qbraid.com/api/chat \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "model": "gpt-4o-mini",
  "stream": false
}'
Chat text response chunk 1

Chat text response chunk 2

...

Chat text response chunk 1

Chat text response chunk 2

...

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
Successful response with completion content
content
string

The completion content when stream is false

usage
object