Docs menuAPI 参考
API ReferenceTyped request and response
API 参考
TurnitPass REST API
自然化改写、改写润色、AI 检测、文献引用、参考文献和 API 密钥状态端点参考。
Reference console
Start with the route, payload, and response shape.
The full reference covers every endpoint below. The console shows the contract developers need first: Bearer auth, JSON input, metered output, and status checks.
request
POST
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
200 OK
{
"output": "The revised text...",
"words_used": 142,
"words_remaining": 2858,
"status": "succeeded"
}meteredloggedJSON
POST
/api/v1/humanizePOST
/api/v1/paraphrasePOST
/api/v1/detectPOST
/api/v1/citationGET
/api/v1/statusAuthBearer API key
TransformPOST /humanize
ReviewPOST /detect
StatusGET /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查看密钥名称、剩余字数和请求限制。
Parameters and options
Rate limits and request limits
Error handling
Error responses use JSON with error,code, and human-readable message fields where possible.
error response
JSON
{
"error": "Text exceeds word limit. Maximum 1,000 words allowed.",
"code": "word_limit_exceeded",
"max_words": 1000,
"current_words": 1234
}The Stripe and Google credentials are configuration points. The API surfaces, auth flow, and persistence are implemented so live credentials can be added without redesigning the product.
Examples
Humanize example
JSON
POST /api/v1/humanize
{
"text": "请把这段 AI 草稿改得更自然。",
"language": "zh_CN",
"mode": "reduce-aigc"
}Multi-endpoint example
JSON
POST /api/v1/detect
{
"text": "需要检查的文本",
"language": "zh_CN",
"source_kind": "paste"
}