Skip to main content
POST
/
v1
/
summarizeWithConfig
Generate configurable summary from url based on prompt config
curl --request POST \
  --url https://api.bibigpt.co/api/v1/summarizeWithConfig \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "includeDetail": true,
  "promptConfig": {
    "customPrompt": "<string>",
    "outputLanguage": "<string>",
    "audioLanguage": "<string>",
    "whisperPrompt": "<string>",
    "showEmoji": true,
    "detailLevel": 123,
    "sentenceNumber": 123,
    "isRefresh": true
  }
}'
{
  "success": true,
  "id": "<string>",
  "service": "<string>",
  "sourceUrl": "<string>",
  "htmlUrl": "<string>",
  "summary": "<string>",
  "costDuration": 123,
  "remainingTime": 123,
  "detail": {
    "summary": "<string>",
    "dbId": "<string>",
    "id": "<string>",
    "embedId": "<string>",
    "pageId": "<string>",
    "url": "<string>",
    "rawLang": "<string>",
    "translationUrls": [
      {
        "code": "<string>",
        "url": "<string>"
      }
    ],
    "audioUrl": "<string>",
    "playUrl": "<string>",
    "type": "bilibili",
    "title": "<string>",
    "cover": "<string>",
    "author": "<string>",
    "authorId": "<string>",
    "duration": 123,
    "publishedDate": "<any>",
    "subtitlesArray": [
      {
        "startTime": 123,
        "end": 123,
        "text": "<string>",
        "index": 123,
        "words": [
          {
            "start": 123,
            "end": 123,
            "text": "<string>",
            "punctuation": "<string>"
          }
        ],
        "speaker_id": 123,
        "_isGrouped": true,
        "_originalSubtitles": [
          "<any>"
        ]
      }
    ],
    "descriptionText": "<string>",
    "contentText": "<string>",
    "aiImages": [
      {
        "startTime": 123,
        "endTime": 123,
        "image": "<string>",
        "prompt": "<string>"
      }
    ],
    "chapters": [
      {
        "from": 123,
        "to": 123,
        "content": "<string>",
        "type": 123,
        "imgUrl": "<string>"
      }
    ],
    "local_path": "<string>",
    "status": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
url
string
required

The URL to the video (e.g., ?url=https://www.bilibili.com/video/BV1Sk4y1x7r2)

includeDetail
boolean

Include audio, video or media webpage detail in response

promptConfig
object

Response

Successful response

success
boolean
required
id
string
required
service
string
required
sourceUrl
string
required
htmlUrl
string
required
costDuration
number
required
remainingTime
number
required
summary
string
detail
object
  • Option 1
  • Option 2
I