跳至正文
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":"貼上需要修改的草稿。","language":"zh-Hant","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":"貼上需要修改的草稿。","language":"zh-Hant","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":"貼上需要修改的草稿。","language":"zh-Hant","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。

下一步