ข้ามไปที่เนื้อหา
TurnitPass
นักพัฒนาAPI v1รับคีย์ API
ดูเอกสาร

นักพัฒนาเริ่มต้นใช้งาน

ส่งคำขอแรกของคุณ

สร้างคีย์ API แล้วเรียกเอนด์พอยต์ปรับให้เป็นธรรมชาติ ตรวจ AI และการอ้างอิง

การตั้งค่า

1

เข้าสู่ระบบ

เข้าสู่ระบบด้วย Google แล้วเปิดพื้นที่ทำงาน

2

เพิ่มคำ

เลือกแผนหรือเติมคำแบบครั้งเดียว

3

สร้างคีย์ API

ตั้งชื่อคีย์ในพื้นที่ทำงานและเก็บไว้บนเซิร์ฟเวอร์ของคุณ

4

ส่งคำขอ

เรียก /humanize ด้วยตัวอย่างด้านล่าง

การเรียก API ครั้งแรก

แทนที่ tp_live_your_api_key ด้วยคีย์ของคุณ ส่งคำขอจากเซิร์ฟเวอร์ ไม่ใช่จากเบราว์เซอร์

คำขอปรับให้เป็นธรรมชาติ
curl
curl -X POST https://turnitpass.com/api/v1/humanize \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","mode":"reduce-aigc"}'
คำขอเรียบเรียงใหม่
curl
curl -X POST https://turnitpass.com/api/v1/paraphrase \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","mode":"academic"}'

การตอบกลับ

การตอบกลับ
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 }
}
ข้อผิดพลาดส่งคืนเป็น JSON ที่มีฟิลด์ error, code และ message

ตัวอย่างเพิ่มเติม

คำขอตรวจ AI
POST /api/v1/detect
curl -X POST https://turnitpass.com/api/v1/detect \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","source_kind":"paste"}'
คำขอการอ้างอิง
POST /api/v1/citation
curl -X POST https://turnitpass.com/api/v1/citation \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"input":"https://example.com/research-article","style":"apa"}'
การตอบกลับของการอ้างอิงและบรรณานุกรมมีข้อความที่จัดรูปแบบแล้ว, BibTeX และ RIS

ขั้นตอนถัดไป