Bỏ qua đến nội dung
TurnitPass
Nhà phát triểnAPI v1Lấy khóa API
Xem tài liệu

Nhà phát triểnBắt đầu nhanh

Gửi yêu cầu đầu tiên

Tạo khóa API, rồi gọi các endpoint nhân hóa, phát hiện AI và trích dẫn.

Thiết lập

1

Đăng nhập

Đăng nhập bằng Google và mở không gian làm việc.

2

Thêm từ

Chọn một gói hoặc nạp thêm từ một lần.

3

Tạo khóa API

Đặt tên khóa trong không gian làm việc và lưu khóa trên máy chủ của bạn.

4

Gửi yêu cầu

Gọi /humanize với ví dụ bên dưới.

Lệnh gọi API đầu tiên

Thay tp_live_your_api_key bằng khóa của bạn. Gửi yêu cầu từ máy chủ, không phải từ trình duyệt.

Yêu cầu nhân hóa
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"}'
Yêu cầu diễn đạt lại
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"}'

Phản hồi

Phản hồi
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 }
}
Lỗi trả về JSON với các trường error, code và message.

Thêm ví dụ

Yêu cầu phát hiện 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"}'
Yêu cầu trích dẫn
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"}'
Phản hồi của trích dẫn và danh mục tài liệu tham khảo gồm văn bản đã định dạng, BibTeX và RIS.

Bước tiếp theo