粘贴、拖拽或点击上传图片,自动获取直链
点击选择图片,或将图片拖拽到这里
也可直接 Ctrl+V 粘贴图片 · 支持 JPG / PNG / GIF / WebP / AVIF / BMP / SVG / TIFF / ICO / HEIC
① curl 上传本地文件(multipart/form-data):
curl -X POST https://image-bed.251110.xyz/upload \ -H "Authorization: Bearer 你的密码" \ -F "file=@/path/to/image.png"
② JSON 提交 Base64(支持裸 Base64 与 data URL):
curl -X POST https://image-bed.251110.xyz/upload \
-H "Content-Type: application/json" \
-H "Authorization: Bearer 你的密码" \
-d '{"image":"data:image/png;base64,iVBORw0KGgo..."}'
③ JSON 提交远程图片 URL(由图床代为抓取):
curl -X POST https://image-bed.251110.xyz/upload \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/a.jpg"}'
④ 纯 Base64 文本体,或直接 PUT/POST 图片二进制:
curl -X POST https://image-bed.251110.xyz/upload \ -H "Content-Type: text/plain" --data-binary @image.b64 curl -X POST https://image-bed.251110.xyz/upload \ -H "Content-Type: image/png" --data-binary @image.png
兼容字段名:image / image_base64 / base64 / data / dataUrl / url;
Base64 支持 base64url(- _)、缺失 padding 与含换行空白。图片类型按文件头自动识别。
返回 JSON:
{
"success": true,
"data": {
"url": "https://image-bed.251110.xyz/i/xxxx.png",
"markdown": ""
}
}
删除图片:
curl -X DELETE https://image-bed.251110.xyz/api/delete/xxxx.png \ -H "Authorization: Bearer 你的密码"
获取历史记录:
curl https://image-bed.251110.xyz/api/history \ -H "Authorization: Bearer 你的密码"