上传文件
curl --request POST \
--url https://open251124.ai.jko.cc/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://open251124.ai.jko.cc/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://open251124.ai.jko.cc/upload"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"status": 100,
"message": "操作成功",
"data": {
"full_url": ".../1785314758_65f4ec.mp4"
}
}{}临时储存
上传文件
支持上传:图片、视频与音频,只保存3小时。
POST
/
upload
上传文件
curl --request POST \
--url https://open251124.ai.jko.cc/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://open251124.ai.jko.cc/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://open251124.ai.jko.cc/upload"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"status": 100,
"message": "操作成功",
"data": {
"full_url": ".../1785314758_65f4ec.mp4"
}
}{}最后修改于 2026年7月31日
⌘I

