浏览文档
TurnitPass REST API
拟人改写、改写润色、AI 检测、文献引用、参考文献和 API 密钥状态端点参考。
参考控制台
先看路由、载荷和响应结构。
完整参考覆盖下方全部接口。控制台先展示开发者需要的约定:Bearer 认证、JSON 输入、按量输出和状态查询。
request
fetch('/api/v1/humanize', {
method: 'POST',
headers: {
Authorization: 'Bearer tp_live_your_api_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({
text: 'Paste the draft here',
language: 'en',
mode: 'reduce-aigc'
})
})
response
{
"output": "The revised text...",
"words_used": 142,
"words_remaining": 2858,
"status": "succeeded"
}
按量计量已记录JSON
POST
/api/v1/humanizePOST
/api/v1/paraphrasePOST
/api/v1/detectPOST
/api/v1/citationGET
/api/v1/status认证Bearer API 密钥
改写POST /humanize
审阅POST /detect
状态GET /status
POST
v1/api/v1/humanize降低提交文本中的 AI 痕迹。支持 reduce-aigc、reduce-both、paraphrase、academic-polish 等模式。
POST
v1/api/v1/paraphrase按标准、流畅、正式、学术、简洁、创意、扩写或缩写模式改写文本。
POST
v1/api/v1/detect为粘贴文本或解析后的文档返回分数、风险等级、元数据和 AI 写作信号。
POST
v1/api/v1/citation将 DOI、URL 或手动来源格式化为 APA、MLA、Chicago、IEEE、Harvard、GB/T 等格式。
GET
v1/api/v1/status查看密钥名称、剩余字数和请求限制。
参数与选项
速率限制与请求限额
错误处理
错误响应使用 JSON,并在可能时包含 error、code 和可读的 message 字段。
error response
{
"error": "Text exceeds word limit. Maximum 1,000 words allowed.",
"code": "word_limit_exceeded",
"max_words": 1000,
"current_words": 1234
}
Stripe 与 Google 凭证属于配置项。接口、认证流程和持久化已实现,接入线上凭证无需重新设计产品。
示例
改写示例
POST /api/v1/humanize
{
"text": "请把这段 AI 草稿改得更自然。",
"language": "zh_CN",
"mode": "reduce-aigc"
}
多接口示例
POST /api/v1/detect
{
"text": "需要检查的文本",
"language": "zh_CN",
"source_kind": "paste"
}
下一步
下一步,把它接到你的工作流。继续阅读