POST
/
api
/
v1
/
chat
/
completions

Authorizations

Authorization
string
header
required

API Token for authentication. Use format 'Bearer YOUR_API_TOKEN'

Body

application/json
messages
object[]
required
model
string

ID of the model to use. Defaults to 'bibigpt' if not specified. Can be prefixed with 'bibigpt/' for custom models.

stream
boolean
default:
false

If set, partial message deltas will be sent as a stream.

Response

200 - application/json
choices
object[]
created
integer

Unix timestamp of when the completion was created

id
string

Unique identifier for the completion

model
string

The model used for completion

object
enum<string>
Available options:
chat.completion