POST
/
v1
/
chat
/
completions
curl --request POST \
  --url https://api.bieapi.com/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "claude-3-5-sonnet-20240620",
  "messages": [
    {
      "role": "user",
      "content": "Hi"
    }
  ],
  "stream": false
}'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "choices": [
    {
      "message": {
        "role": "<string>",
        "content": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
stream
boolean
required

Whether to use stream mode (simulates typing effect).

messages
object[]
required

Context of the conversation.

model
string
required

The model to use (e.g., gpt-4o-mini).

Response

200 - application/json
Successful response
id
string

Unique ID of the response.

object
string

Type of the response object.

created
integer

Timestamp of the response creation.

choices
object[]