域名加速

粘贴链接,直接解析

视频与图集匿名可用;网盘需要登录后使用 (网盘要消费分享者的额度,也要防止被当成公共下载站)。 可以整段粘贴分享文案,会自动从里面找链接。

公共加速清单

把原来的域名换成本行的「加速地址」即可,无需改任何代码。

序号域名加速地址 类型下载档 倍率操作

接入文档

本页是纯 HTML,AI agent 可以直接抓取阅读。机器可读的清单在 /api/v1/targets 与 /api/v1/platforms。

1. pip / PyPI

pip install requests \
  --index-url https://pypi.speed.key-pool.com/simple/

# 只换一个包源,不污染全局(推荐)
pip install -i https://pypi.speed.key-pool.com/simple/ requests

2. Docker / NVIDIA NGC / GCR / K8s

# docker.io
docker pull docker.speed.key-pool.com/library/nginx:latest

# NVIDIA NGC
docker pull nvcr.speed.key-pool.com/nvidia/cuda:12.4.1-base-ubuntu22.04

# 已经写死 registry 的镜像,用 daemon 级替换(/etc/docker/daemon.json)
{
  "registry-mirrors": ["https://docker.speed.key-pool.com"]
}

Docker 的鉴权链路已经由我们改写(realm 与 blob CDN 都走加速器), 客户端不需要任何额外配置。

3. GitHub / Go / HuggingFace

# 直接换域名
https://github.speed.key-pool.com/git/git/archive/refs/heads/master.tar.gz

# git clone
git clone https://github.speed.key-pool.com/git/git.git

# HuggingFace
export HF_ENDPOINT=https://hf.speed.key-pool.com

# Go module 代理(GOPROXY 必须指到 goproxy 子域,它是 module 代理接口)
export GOPROXY=https://goproxy.speed.key-pool.com
export GOSUMDB=sum.golang.org
export GOPRIVATE=""

# 为什么不是 golang.org:那是官网,没有 /<module>/@v/list 接口。
# 为什么还要 gosum:GOSUMDB 默认走 sum.golang.org,不加速它最后仍会卡住。

4. 全量清单

见 公共清单 页,或 curl /api/v1/targets(返回 JSON,含 seq/domain/accel_addr/kind)。

认证

匿名可以解析(有每分钟限速);带上 API Key 才会把用量记到你账号下、 才能用到套餐额度。Key 在 我的账号 → API Key 生成。

X-API-Key: acc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# 或者
Authorization: Bearer acc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

解析一个链接

curl -X POST https://speed.key-pool.com/api/v1/parse \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: $ACC_KEY' \
  -d '{"url":"https://www.bilibili.com/video/BV1xx411c7mD"}'

# 也可以整段粘贴文案
curl -X POST https://speed.key-pool.com/api/v1/parse \
  -H 'Content-Type: application/json' \
  -d '{"text":"7.43 复制打开抖音 ... https://v.douyin.com/xxxxx/ ..."}'

响应

{
  "platform": "bili",
  "kind": "video",
  "id": "BV1xx411c7mD",
  "title": "……",
  "author": "……",
  "duration_ms": 213000,
  "medias": [
    { "quality": "720P", "kind": "single", "size": 51973319,
      "download": "https://speed.key-pool.com/d/xxx/xxx.mp4",
      "direct": true, "no_referer": false }
  ]
}

download 永远是我们域名下的地址,不是上游直链 —— 直链会几分钟失效,而且部分平台校验 Referer。 direct:true 表示这个链接会 302 到 CDN,不消耗站点出口带宽。

平台清单

curl https://speed.key-pool.com/api/v1/platforms
curl https://speed.key-pool.com/api/v1/plans

错误码

errorHTTP含义与处理
下表由后端接口 GET /api/v1/error-codes 实时渲染。 以前这里是手写的,已经漂过两次(少写一半、把 login_required 写成 needs_login、把 quota_exhausted 写成 quota_exceeded)—— 手抄的清单迟早和代码不一致, 所以现在码与状态码都来自同一份清单,前端只负责填中文说明。
400 / 401 / 403 / 404 / 429 是 HTTP 状态码,error 字段才是机器码 处理逻辑请 switch error,不要 switch 状态码。
加载中…

给 AI Agent 的三条规矩

这个平台本身就是给 agent 用的:所有能力都有稳定的 JSON 接口, 没有验证码、没有 JS 渲染依赖(除了抖音,它在服务端已经跑完浏览器)。

  1. 先读能力再动手:GET /api/v1/platforms 告诉你哪些平台能解析; GET /api/v1/targets 告诉你哪些网站能加速。
  2. 只认 download 字段:不要自己去猜上游直链,直链会过期、 部分平台校验 Referer。用我们返回的 /d/... 地址。
  3. 带 Key 调用:不带 Key 能跑但有严格限速,且用量记不到账号。

MCP 风格的工具清单

把下面这些接口当成 tool schema 直接注册即可(参数与返回值都是 JSON)。

tool: parse_link
  POST /api/v1/parse                       body: {"url": string} | {"text": string}
  ret(单条): {platform, kind, id, title, desc, cover, author, duration_ms,
              medias[], note, is_short, total, skipped[], elapsed_ms}
  ret(多条): {count, ok, total, skipped[], elapsed_ms,
              items[{ok, url, platform, error, message, result}]}
  medias[]: {quality, kind, size, width, height, download, direct, no_referer}
  ※ 一次可粘多条,混平台也行;单条失败不影响其它条。

tool: list_accel_targets
  GET /api/v1/targets
  ret: {count, base_domain,
        items[{id, seq, domain, accel_addr, kind, profile, status,
               download_mode, multiplier, cache_ttl}]}
  ※ 以上字段按真实响应列出;写 schema 时不要凭空加字段(ui-func P2-10
     之前写的 assoc_hosts[] 在响应里根本不存在,Agent 照着它会取到 undefined)。

tool: list_parse_platforms
  GET /api/v1/platforms
  ret: {count, items[{slug, alias, name, kind, mode, multiplier, note}]}

tool: list_plans
  GET /api/v1/plans
  ret: {count, items[{id, code, name, listed, billing_mode,
                      monthly_bytes, monthly_gb, call_quota, qps_limit,
                      max_private_domains, overage_action,
                      price_cents, price_per_gb, price_per_call,
                      parse_multiplier, parse_price_per_gb, parse_quota_gb,
                      purchase_url}]}
  ※ billing_mode = "bytes"(按流量)或 "calls"(按次数)。

tool: my_usage
  GET /api/v1/my/usage/key                 (需 X-API-Key)
  ret: {days, web{bytes_out, requests}, parse{bytes_out, count}}

tool: my_subscription
  GET /api/v1/my/subscription              (需 X-API-Key 或登录 cookie)
  ret: {plan_id, quota_bytes, quota_calls, used_bytes, used_calls,
        starts_at, ends_at, quota_gb, used_gb, source, purchase[]}
  ※ 没有 plan_name / days_left(ui-func P2-10 曾凭空写进 schema)。
     要套餐名请调 GET /api/v1/plans 后按 plan_id 匹配;剩余天数额自己按 ends_at 算。

tool: redeem_code
  POST /api/v1/redeem                      body: {"code": string}   (需 X-API-Key)
  ret: {ok, plan_id, duration_days, message}

tool: netdisk_open / list / link            (网盘分享三步,见「网盘三步」页)
  POST /api/v1/netdisk/open   body: {platform, share_id, passcode?} → {title, session}
  POST /api/v1/netdisk/list   body: {session, dir_id?}              → {files[]}
  POST /api/v1/netdisk/link   body: {session, file_id, dir_id?}     → {download, size, expires_at}

最小可用脚本

export ACC_KEY=acc_你的key
export ACC=https://speed.key-pool.com

# 1) 有哪些平台
curl -s $ACC/api/v1/platforms | jq -r '.items[].name'

# 2) 解析
curl -s -X POST $ACC/api/v1/parse \
  -H "X-API-Key: $ACC_KEY" -H 'Content-Type: application/json' \
  -d '{"url":"'"$1"'"}' | jq -r '.medias[0].download'

# 3) 看额度
curl -s $ACC/api/v1/my/usage/key -H "X-API-Key: $ACC_KEY" | jq

给 agent 的 system prompt 片段

你可以调用「域名加速」平台的 HTTP API 来处理用户发来的分享链接。
- 解析链接:POST https://speed.key-pool.com/api/v1/parse,
  请求头带 X-API-Key,body 用 {"url": "..."} 或 {"text": "整段文案"}。
- 返回的 medias[].download 是可直接播放/下载的地址,不要再改写它。
- 若返回 error=needs_headless,说明该作品需要浏览器节点,告知用户稍后重试。
- 不要重复解析同一个链接(结果有 5 分钟缓存,重复调用会浪费额度)。

三步取到网盘文件

# 1) 打开分享(拿会话)
curl -s -X POST $ACC/api/v1/netdisk/open \
  -H 'Content-Type: application/json' \
  -d '{"platform":"quark","share_id":"xxxxxx","passcode":"1234"}'
# → {"platform":"quark","share_id":"...","title":"...","session":"..."}

# 2) 列目录
curl -s -X POST $ACC/api/v1/netdisk/list \
  -H 'Content-Type: application/json' \
  -d '{"session":"<上一步的 session>","dir_id":""}'
# → {"files":[{"id":"...","name":"a.mp4","size":123,"is_dir":false}]}

# 3) 取下载地址
curl -s -X POST $ACC/api/v1/netdisk/link \
  -H 'Content-Type: application/json' \
  -d '{"session":"","file_id":""}'
# → {"name":"a.mp4","size":123,"direct":false,"download":"https://.../d/..."}

session 是加密后的凭据,原样带回即可,不要试图解析它。 直链每次现取:蓝奏优享的长链几分钟后会退化成验证页, 缓存直链等于缓存一个必然失效的东西。

平台platform 值是否免登录可用说明
加载中…

两种计费口径

套餐只能选一种口径,不能混用 —— 混用会让客户永远算不清自己还能用多少。

billing_mode额度超额
bytes 每月字节数(monthly_bytes),网站加速与解析都计入; 解析类按平台倍率折算(直连档 0.5×、代理档 1.0–1.5×) 按 overage_action:bill 按 GB 计费 / throttle 限速 / suspend 停服
calls 每月解析次数(call_quota) 按 price_per_call(分/次)计费

怎么算一次

网站加速按实际发给浏览器的响应体字节计(缓存命中时同样计一次请求, 但字节数是命中响应体的真实大小)。
解析计「一次解析」+ 中转字节。直连档(B 站/AcFun/抖音/蓝奏优享) 我们把 302 交给你自己连 CDN,不消耗我们的出口带宽,所以倍率最低。

买套餐

我们不做在线支付。在商品页下单后拿到兑换码,到 我的账号 → 兑换 自助兑换即可。

登录 / 注册

管理员登录

Token 存在本标签页的 sessionStorage 里,关掉浏览器就没了 —— 比写进 cookie 安全,也不会被其他标签页读到。

用全局 Token 登录(自动化脚本 / 紧急运维)
编辑加速目标