Docs menuAPIリファレンス
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/citationDOI、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..."
}