ดูเอกสาร
TurnitPass REST API
เอนด์พอยต์ พารามิเตอร์ ขีดจำกัด และรหัสข้อผิดพลาด
/api/v1/humanizeลดสัญญาณการเขียนแบบ AI ในข้อความที่ส่งมา โหมด: reduce-aigc, reduce-both, paraphrase, academic-polish
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
textจำเป็น | string | — | ข้อความที่จะเขียนใหม่ อย่างน้อย 3 หน่วยคำ และไม่เกิน 500 หน่วยคุณภาพต่อคำขอ |
language | string | en | รหัสภาษา เช่น en หรือ zh |
mode | enum | reduce-aigc | reduce-aigc, reduce-both, paraphrase, academic-polish |
personal_terms | string[] | — | ชื่อหรือคำศัพท์ที่ต้องคงไว้ได้สูงสุด 30 รายการ รายการละไม่เกิน 120 อักขระ |
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "reduce-aigc" }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 },
"metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
/api/v1/paraphraseเขียนข้อความใหม่ในโหมด standard, fluency, formal, academic, simple, creative, expand หรือ shorten โดย synonyms_level มีค่า 0 ถึง 100
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
textจำเป็น | string | — | ข้อความที่จะเขียนใหม่ ไม่เกิน 2,000 หน่วยคุณภาพต่อคำขอ |
language | string | en | รหัสภาษา เช่น en หรือ zh |
mode | enum | standard | standard, fluency, formal, academic, simple, creative, expand, shorten |
synonyms_level | integer | 50 | ระดับความอิสระในการแทนที่คำ ตั้งแต่ 0 ถึง 100 |
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "academic", "synonyms_level": 60 }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 }
}
/api/v1/rewriteขัดเกลาโครงสร้าง น้ำเสียง และความลื่นไหลของประโยคในงานวิชาการ
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
textจำเป็น | string | — | ข้อความที่จะเขียนใหม่ อย่างน้อย 3 หน่วยคำ และไม่เกิน 500 หน่วยคุณภาพต่อคำขอ |
language | string | en | รหัสภาษา เช่น en หรือ zh |
{ "text": "Paste the draft you want to revise.", "language": "en" }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 }
}
/api/v1/detectส่งคืนคะแนน AI สัญญาณการเขียน และหมายเหตุการแก้ไขสำหรับข้อความที่วางหรือเอกสารที่แยกข้อความแล้ว source_kind: paste, pdf, docx หรือ txt
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
textจำเป็น | string | — | ข้อความที่จะสแกน ไม่เกิน 5,000 คำหรือ 30,000 อักขระ |
language | string | en | รหัสภาษา เช่น en หรือ zh |
source_kind | enum | paste | paste, pdf, docx, txt |
original_filename | string | — | ชื่อไฟล์ต้นฉบับ ไม่เกิน 255 อักขระ |
{ "text": "Paste the draft you want to revise.", "language": "en", "source_kind": "paste" }
{
"score": 62,
"label": "…",
"risk_level": "high",
"signals": [{ "key": "…", "label": "…", "value": 0.7, "level": "medium", "detail": "…" }],
"passages": [{ "text": "…", "label": "ai", "level": "high" }],
"detection_quota": { "limit": 10, "remaining": 9, "resets_at": "2026-10-25T00:00:00Z" }
}
/api/v1/citationจัดรูปแบบ DOI, URL หรือการอ้างอิงที่ป้อนเองใน 22 รูปแบบ รวมถึง APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA และ Bluebook การตอบกลับมี html, text, BibTeX และ RIS
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
input | string | — | DOI, URL หรือชื่อการอ้างอิง ไม่เกิน 2,000 อักขระ ใช้ฟิลด์นี้หรือ citation |
citation | object | — | ออบเจ็กต์การอ้างอิงที่มีชื่อเรื่อง ผู้เขียน และรายละเอียดแหล่งที่มา ใช้ฟิลด์นี้หรือ input |
style | string | apa | คีย์รูปแบบการอ้างอิง เช่น apa, mla หรือ chicago |
{ "input": "10.1038/nature14539", "style": "apa" }
{
"citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
"style": "apa",
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/bibliographyเรียงและจัดรูปแบบรายการอ้างอิงตามรูปแบบที่ระบุ ให้ผลลัพธ์ html และ text พร้อมส่งออก BibTeX และ RIS
| พารามิเตอร์ | ชนิด | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|
citationsจำเป็น | object[] | — | ออบเจ็กต์การอ้างอิง 1 ถึง 100 รายการ แต่ละรายการมี id และ title |
style | string | apa | คีย์รูปแบบการอ้างอิง เช่น apa, mla หรือ chicago |
{ "citations": [{ "id": "1", "title": "…", "authors": [] }], "style": "apa" }
{
"style": "apa",
"entries": [{ "citation": { "id": "1" }, "html": "…", "text": "…" }],
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/statusส่งคืนชื่อคีย์ คำคงเหลือ ขีดจำกัดต่อคำขอ โควตาการตรวจ AI และขีดจำกัดอัตรา
เอนด์พอยต์นี้ไม่มีพารามิเตอร์
{
"name": "Production",
"words_remaining": 2858,
"max_humanize_quality_units": 500,
"max_paraphrase_quality_units": 2000,
"max_detection_words_per_request": 5000,
"max_detection_characters": 30000,
"detection_quota": { "limit": 10, "remaining": 9, "resets_at": "2026-10-25T00:00:00Z" },
"rate_limit_per_minute": 50
}
พารามิเตอร์และตัวเลือก
ขีดจำกัดอัตราและขีดจำกัดคำขอ
การจัดการข้อผิดพลาด
ข้อผิดพลาดส่งคืนเป็น JSON ที่มีฟิลด์ error, code และ message
{
"error": "quality_limit_exceeded",
"code": "quality_limit_exceeded",
"message": "Up to 500 Chinese or 1,500 English characters per request."
}
ตัวอย่าง
POST /api/v1/humanize
{
"text": "Paste the draft you want to revise.",
"language": "en",
"mode": "reduce-aigc",
"personal_terms": ["TurnitPass"]
}
200 OK
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 },
"metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
POST /api/v1/paraphrase
{
"text": "Paste the draft you want to revise.",
"language": "en",
"mode": "academic",
"synonyms_level": 60
}
POST /api/v1/detect
{
"text": "Paste the draft you want to revise.",
"language": "en",
"source_kind": "paste"
}
POST /api/v1/citation
{
"input": "https://example.com/article",
"style": "apa"
}