POST
/
api
/
v1
/
chat
/
completions
curl --request POST \
  --url https://api.bibigpt.co/api/v1/chat/completions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "https://www.bilibili.com/video/BV1Sk4y1x7r2"
    }
  ],
  "model": "bibigpt",
  "stream": false
}'
{
  "id": "<string>",
  "object": "chat.completion",
  "created": 123,
  "model": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "assistant",
        "content": "<string>"
      },
      "finish_reason": "stop"
    }
  ]
}

Authorizations

Authorization
string
header
required

API Token for authentication. Use format 'Bearer YOUR_API_TOKEN'

Body

application/json

Response

200
application/json

Successful response with completion

The response is of type object.