免费文本对比 API,输入两段文本即可获取差异结果。支持逐行和逐字对比模式。
| 参数 Parameter | 必填 Required | 说明 Description |
|---|---|---|
text1 | ✅ 是 | 原始文本 |
text2 | ✅ 是 | 对比文本 |
curl -X POST https://www.kael.ink/api/diff -d '{"text1":"hello world","text2":"hello kael"}' -H 'Content-Type: application/json'
此接口免费使用,无需 API Key。注册免费 Key 可获得更高调用额度。
通过 X-API-Key 请求头传递 API Key 以提升限额。注册免费 Key →