封面上传
https://member.bilibili.com/arcopen/fn/archive/cover/upload
开放能力 / 视频稿件管理 / 服务端视频稿件投递
格式jpeg、png,文件大小≤5MB,建议尺寸≥1146x717,最低尺寸≥960x600
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| file | file | 是 | 图片文件(multipart/form-data) |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| url | string | 否 | 封面地址 |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "11", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "11", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "11", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/archive/cover/upload' \
--header 'Accept: application/json' \
--header 'x-bili-timestamp: 1712473117' \
--header 'x-bili-signature-method: HMAC-SHA256' \
--header 'x-bili-signature-version: 2.0' \
--header 'Authorization: d41d8cd98f00b204e9800998ecf8427e' \
--header 'x-bili-signature-nonce: 1712473117993237000' \
--header 'x-bili-accesskeyid: 8ca079bc20ce433d' \
--header 'x-bili-content-md5: 795a2d7e13f989cee460801379fe543c' \
--header 'Connection: keep-alive' \
--header 'Host: member.bilibili.com' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------044892437502502901765117' \
--form 'file=@"/Users/shenyue/Downloads/test.jpg"' \原始文档:011_封面上传.md(1903 字节)。用 bili_docs_get { "ref": "11" } 读全文,或用 bili_api_spec { "ref": "11" } 取结构化规格。