BashPOST /api/v1/tools/pdf/merge # 合并 PDF
POST /api/v1/tools/image/compress # 压缩图片
POST /api/v1/tools/text/hash # 哈希计算
GET /api/v1/tools/task/:id # 查询异步任务
Keys are stored as hashes with constant-time comparison; source IPs with repeated auth failures are temporarily banned.
Per-key Control
Scope allowed tools per key (wildcards supported, e.g. pdf.*)
Optional source-IP allowlists and daily quotas
Rate limit defaults to 60 req/min per key
Tasks and results are isolated per key; disable, expire or delete anytime
Endpoint Matrix
The gateway shares the exact engines of the UI toolbox under /api/v1/tools/: 14 PDF, 14 image, 4 text, 12 dev, 2 OCR, 2 conversion and 4 AI imaging endpoints; the AI series runs async with task status, SSE progress stream, cancel and download.
BashPOST /api/v1/tools/pdf/merge # merge PDFs
POST /api/v1/tools/image/compress # compress image
POST /api/v1/tools/text/hash # hash text
GET /api/v1/tools/task/:id # poll async task
Built-in Docs
A built-in docs page (/api/v1/tools/docs) and a runnable examples page (/api/v1/tools/examples, downloadable as a single HTML file) ship with the gateway; CORS origins are configurable.