Docs menuเอกสารอ้างอิง API
เอกสารอ้างอิง 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.
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'
})
}){
"output": "The revised text...",
"words_used": 142,
"words_remaining": 2858,
"status": "succeeded"
}/api/v1/humanize/api/v1/paraphrase/api/v1/rewrite/api/v1/detect/api/v1/citation/api/v1/humanizeปรับข้อความที่ส่งมาและลดสัญญาณที่คล้ายงานเขียน AI โหมดที่รองรับ: reduce-aigc, reduce-both, paraphrase, academic-polish
/api/v1/paraphraseเขียนใหม่และขัดเกลาข้อความด้วยโหมดมาตรฐาน, ลื่นไหล, เป็นทางการ, วิชาการ, เรียบง่าย, สร้างสรรค์, ขยายความ หรือกระชับความ
/api/v1/rewriteฟังก์ชันสำหรับขัดเกลาเชิงวิชาการเพื่อให้ได้โครงสร้างที่ชัดเจน น้ำเสียง และการเชื่อมโยงประโยคที่ดียิ่งขึ้น
/api/v1/detectส่งคืนค่าประมาณสัญญาณที่คล้ายงานเขียน AI ข้อมูลเมตา และคำแนะนำสำหรับตรวจทานข้อความที่วางหรือเอกสารที่นำเข้า
/api/v1/citationจัดรูปแบบ DOI, URL หรือแหล่งอ้างอิงแบบป้อนมือให้อยู่ในสไตล์ APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T, OSCOLA หรือ Bluebook ผลลัพธ์ที่ได้จะส่งกลับเป็น HTML, ข้อความดิบ, BibTeX และ RIS
/api/v1/bibliographyจัดเรียงและจัดรูปแบบรายการอ้างอิงทั้งหมดในสไตล์ที่ร้องขอ รองรับการแสดงผลแบบ HTML/ข้อความ และการส่งออกไฟล์ BibTeX/RIS
/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": "Text exceeds word limit. Maximum 1,000 words allowed.",
"code": "word_limit_exceeded",
"max_words": 1000,
"current_words": 1234
}Examples
POST /api/v1/humanize
{
"text": "วางร่างที่มี AI ช่วยเขียนที่ต้องการปรับแก้",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["ชื่อเฉพาะ"]
}
200 OK
{
"output": "ข้อความที่ปรับให้เป็นธรรมชาติแล้ว...",
"words_used": 142,
"words_remaining": 2858
}POST /api/v1/paraphrase
{
"text": "วางร่างงานเขียนที่คุณต้องการเขียนใหม่",
"mode": "academic",
"synonyms_level": 60
}
POST /api/v1/detect
{
"text": "วางร่างที่ต้องการตรวจสอบ",
"language": "en",
"source_kind": "paste"
}
POST /api/v1/citation
{
"input": "https://example.com/article",
"style": "apa"
}
200 OK
{
"text": "ข้อความอ้างอิงที่จัดรูปแบบแล้ว...",
"bibtex": "@article{...}",
"ris": "TY - JOUR..."
}