图床

下面是图床目录里的全部图片和视频,复制直链即可在论坛、机器人或其它接口里直接调用。

图片数量
60 张
视频数量
6 个
占用空间
25.2 MB
目录数量
6 个

图床目录:C:\Users\66686\Desktop\LOcraft_web_split_forum_20260726\static\uploads

直链前缀:https://locraft.cn/static/...

上传上限:图片 8.0 MB / 视频 64.0 MB

接口地址:https://locraft.cn/api/tuchuang

上传图片 / 视频

登录后即可上传图片和视频到图床:去登录

接口调用

GET /api/tuchuang 返回全部文件及链接;每个文件都带 kind(image / video)、 url(直链)、markdown、bbcode、html 几种现成格式。
# 全部文件
curl "https://locraft.cn/api/tuchuang"

# 只看视频 / 只看图片
curl "https://locraft.cn/api/tuchuang?kind=video"
curl "https://locraft.cn/api/tuchuang?kind=image&folder=avatar&limit=20"

# 纯文本直链,每行一个
curl "https://locraft.cn/api/tuchuang?format=list"
const res = await fetch("https://locraft.cn/api/tuchuang?kind=video&limit=10");
const data = await res.json();
for (const item of data.images) {
    console.log(item.kind, item.name, item.url, item.size_human);
}