S.EE Docs
开发者

SM.MS 兼容性

以最少的代码改动从 SM.MS 迁移到 S.EE

S.EE 提供兼容 SM.MS 的 API 层,让您可以以最少的代码改动从 SM.MS 迁移到 S.EE。只需替换 API 接口地址即可开始使用。

快速迁移

将 SM.MS 的 API 基础 URL 替换为 S.EE 对应地址:

SM.MSS.EE
https://sm.ms/api/v2https://s.ee/api/v1/file

支持的接口

SM.MS 接口S.EE 接口说明
POST /api/v2/uploadPOST /api/v1/file/upload上传图片
GET /api/v2/upload_historyGET /api/v1/files获取上传历史

上传图片

请求

curl -X POST "https://s.ee/api/v1/file/upload" \
  -H "Authorization: your-api-key" \
  -F "smfile=@/path/to/image.png" \
  -F "domain=sm.ms" \
  -F "custom_slug=my-image"

参数

参数类型必填说明
smfilefile要上传的图片文件(别名:file
domainstring短网址使用的自定义域名
custom_slugstringURL 的自定义短码(未提供时随机生成)

响应

{
  "code": 200,
  "data": {
    "file_id": 14184137,
    "width": 1024,
    "height": 1024,
    "filename": "my-cat.jpg",
    "storename": "my-cat.jpg",
    "size": 202814,
    "path": "/2026/02/11/dm3K/my-cat.jpg",
    "hash": "delete-hash-here",
    "url": "https://i.see.you/2026/02/11/dm3K/my-cat.jpg",
    "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
    "page": "https://sm.ms/my-cat",
    "upload_status": 2
  },
  "message": "success",
  "success": true
}

上传历史

请求

curl "https://s.ee/api/v1/files" \
  -H "Authorization: your-api-key"

参数

参数类型必填说明
pageinteger页码(默认 1,每页 30 个文件)

响应

{
  "success": true,
  "code": 200,
  "message": "success",
  "data": [
    {
      "file_id": 14186122,
      "width": 1255,
      "height": 636,
      "filename": "chrome_O93NV9Z3G8.gif",
      "storename": "chrome_O93NV9Z3G8.gif",
      "size": 398517,
      "path": "/2026/02/12/5isV/chrome_O93NV9Z3G8.gif",
      "hash": "delete-hash-here",
      "url": "https://i.see.you/2026/02/12/5isV/chrome_O93NV9Z3G8.gif",
      "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
      "page": "https://sm.ms/ZS3M",
      "upload_status": 2,
      "created_at": 1770908298
    },
    {
      "file_id": 14186073,
      "width": 1272,
      "height": 644,
      "filename": "firefox_P4lBSlG15y.gif",
      "storename": "firefox_P4lBSlG15y.gif",
      "size": 802256,
      "path": "/2026/02/12/0Bmu/firefox_P4lBSlG15y.gif",
      "hash": "delete-hash-here",
      "url": "https://i.see.you/2026/02/12/0Bmu/firefox_P4lBSlG15y.gif",
      "delete": "https://s.ee/api/v1/file/delete/delete-hash-here",
      "page": "https://sm.ms/ATas",
      "upload_status": 2,
      "created_at": 1770904032
    }
  ]
}

与 SM.MS 的差异

虽然 S.EE 保持了对 SM.MS API 的兼容性,但也提供了一些增强能力:

功能SM.MSS.EE
自定义域名
自定义短码
文件大小限制5 MB随套餐而变化
支持的格式仅图片图片、文档等更多类型

获取您的 API Key

要使用 S.EE API,您需要一个 API Key:

  1. s.ee 注册或登录
  2. 前往 工具 > API Token
  3. 生成新的 API Key

需要帮助?

如果您在迁移过程中遇到任何问题,请 联系支持 或查看我们的 API 文档

本页内容