ZeroClaude API
基础地址: https://zeroclaude.app · 请求和返回均为 JSON
网站上的每个工具都有对应的 HTTP 接口。发送带 JSON 请求体的 POST 请求,返回 JSON。出错时返回非 2xx 状态码和 { "error": "message" }。
鉴权
在控制台创建 API Key,每次请求通过 Authorization: Bearer zc_…(或 x-api-key: zc_…)发送。Key 只在创建时显示一次,可随时撤销。不带 Key 的请求返回 401。
AI 检测
curl -X POST https://zeroclaude.app/api/detect \
-H "Authorization: Bearer zc_your_api_key" \
-H "content-type: application/json" \
-d '{"text":"在这里粘贴至少 40 个字符的文本……"}'
| 字段 | 含义 |
|---|---|
aiPercent | 0–100,被判定为 AI 写作的比例 |
verdict | human · mostly_human · mixed · mostly_ai · ai |
sentences[] | text、start、end(偏移量)、ai(0–100)、flagged(布尔) |
words, chars | 提交文本的词数和字符数 |
写作工具
| 接口 | 请求体 | 返回 |
|---|---|---|
/api/tools/humanize | text, mode: basic | advanced | output |
/api/tools/paraphrase | text, tone: standard | fluent | formal | academic | simple | creative | casual | shorten | expand | output |
/api/tools/summarize | text, length (10–80 %), style: text | bullets | output |
/api/tools/grammar | text | corrected, issues[] |
/api/tools/translate | text, to, from (or "auto") | output |
/api/tools/email | kind: compose | reply, purpose, original, tone, length, language | output |
/api/tools/dictionary | word | meanings, synonyms, antonyms, sentences |
/api/tools/chat | messages: [{role, content}] | output |
/api/image-detect | multipart image | aiPercent, verdict, reasons |
/api/video-detect | multipart frame ×1–10 (JPEG/PNG/WEBP), t ×n | aiPercent, verdict, frames[], reasons |
/api/remove-bg | multipart image (PNG/JPG/WEBP, ≤10 MB) | image/png |
/api/plagiarism | { "text": "..." } | plagiarismPercent, sources[], sentences[] |
示例:改写
curl -X POST https://zeroclaude.app/api/tools/paraphrase \
-H "Authorization: Bearer zc_your_api_key" \
-H "content-type: application/json" \
-d '{"text":"The meeting has been moved to Friday.","tone":"formal"}'
# => {"output":"The meeting has been rescheduled to Friday."}
限制
| 方案 | API 调用(次/天) |
|---|---|
| 免费版 | 100 |
| PRO | 1,000 |
| PLUS | 5,000 |
| MAX | 20,000 |
检测单次最多 15,000 字符,查重单次最多 1,000 词。每个 IP 每分钟约 20 次 AI 请求。超出限制返回 HTTP 429。用量在 UTC 0 点重置,可在控制台查看今日用量。
错误
| 状态码 | 含义 |
|---|---|
| 400 | 输入无效(message 说明原因) |
| 401 | 缺少或无效的 API Key |
| 429 | 达到每日额度或每分钟限制 |
| 5xx | 临时故障,请稍后重试 |
发送请求头 x-zc-lang: zh 可获得中文错误信息和中文 AI 说明。