跳转到主要内容
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>",
    "autoTranslateLanguage": "<string>",
    "showEmoji": true,
    "detailLevel": 123,
    "sentenceNumber": 123,
    "isRefresh": true,
    "showTimestamp": true,
    "audioLanguage": "<string>",
    "whisperPrompt": "<string>",
    "transcribeProvider": "<string>",
    "elevenlabsApiKey": "<string>",
    "speakerCount": 123
  },
  "videoDetail": {
    "id": "<string>",
    "url": "<string>",
    "type": "bilibili",
    "title": "<string>",
    "duration": 123,
    "summary": "<string>",
    "dbId": "<string>",
    "embedId": "<string>",
    "pageId": "<string>",
    "subtitleUrl": "<string>",
    "rawLang": "<string>",
    "translationUrls": [
      {
        "code": "<string>",
        "url": "<string>"
      }
    ],
    "audioUrl": "<string>",
    "playUrl": "<string>",
    "cover": "<string>",
    "author": "<string>",
    "authorId": "<string>",
    "publishedDate": "<unknown>",
    "subtitlesArray": [
      {
        "startTime": 123,
        "end": 123,
        "text": "<string>",
        "index": 123,
        "words": [
          {
            "start": 123,
            "end": 123,
            "text": "<string>",
            "punctuation": "<string>"
          }
        ],
        "speaker_id": 123,
        "_isGrouped": true,
        "_originalSubtitles": [
          "<unknown>"
        ]
      }
    ],
    "descriptionText": "<string>",
    "contentText": "<string>",
    "aiImages": [
      {
        "startTime": 123,
        "endTime": 123,
        "prompt": "<string>",
        "image": "<string>"
      }
    ],
    "chapters": [
      {
        "from": 123,
        "to": 123,
        "content": "<string>",
        "type": 123,
        "imgUrl": "<string>"
      }
    ],
    "local_path": "<string>",
    "status": "<string>"
  }
}
'
{
  "success": true,
  "id": "<string>",
  "service": "<string>",
  "sourceUrl": "<string>",
  "htmlUrl": "<string>",
  "costDuration": 123,
  "remainingTime": 123,
  "summary": "<string>",
  "detail": {
    "id": "<string>",
    "url": "<string>",
    "type": "bilibili",
    "title": "<string>",
    "duration": 123,
    "summary": "<string>",
    "dbId": "<string>",
    "embedId": "<string>",
    "pageId": "<string>",
    "rawLang": "<string>",
    "translationUrls": [
      {
        "code": "<string>",
        "url": "<string>"
      }
    ],
    "audioUrl": "<string>",
    "playUrl": "<string>",
    "cover": "<string>",
    "author": "<string>",
    "authorId": "<string>",
    "publishedDate": "<unknown>",
    "subtitlesArray": [
      {
        "startTime": 123,
        "end": 123,
        "text": "<string>",
        "index": 123,
        "words": [
          {
            "start": 123,
            "end": 123,
            "text": "<string>",
            "punctuation": "<string>"
          }
        ],
        "speaker_id": 123,
        "_isGrouped": true,
        "_originalSubtitles": [
          "<unknown>"
        ]
      }
    ],
    "descriptionText": "<string>",
    "contentText": "<string>",
    "aiImages": [
      {
        "startTime": 123,
        "endTime": 123,
        "prompt": "<string>",
        "image": "<string>"
      }
    ],
    "chapters": [
      {
        "from": 123,
        "to": 123,
        "content": "<string>",
        "type": 123,
        "imgUrl": "<string>"
      }
    ],
    "local_path": "<string>",
    "status": "<string>"
  }
}

授权

Authorization
string
header
必填

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

请求体

application/json
url
string
必填

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
videoDetail
object

响应

Successful response

success
boolean
必填
id
string
必填
service
string
必填
sourceUrl
string
必填
htmlUrl
string
必填
costDuration
number
必填
remainingTime
number
必填
summary
string
detail
object