v1

latestOpenAPI 3.1.02026-07-26375106.0 KB

Creates a summary completion for the given video url in chat message.

Support video_url type, or url in text content in chat message, another text content could be custom prompot for summary.. Compatible with OpenAI Chat API format.

post/api/v1/chat/completions

Request body

modelstring

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

streamboolean

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

Example request

{
  "messages": [
    {
      "content": "https://www.bilibili.com/video/BV1Sk4y1x7r2"
    }
  ]
}

Response

Successful response with completion

idstring

Unique identifier for the completion

object'chat.completion'
createdinteger

Unix timestamp of when the completion was created

modelstring

The model used for completion