본문으로 건너뛰기
TurnitPass
개발자API v1API 키 발급
문서 둘러보기

개발자API 레퍼런스

TurnitPass REST API

엔드포인트, 매개변수, 한도, 오류 코드.

POST/api/v1/humanize

제출한 텍스트에서 AI 같은 글쓰기 신호를 줄입니다. 모드: reduce-aigc, reduce-both, paraphrase, academic-polish.

매개변수유형기본값설명
text필수string—다시 쓸 텍스트. 3단어 단위 이상, 요청당 최대 500 품질 단위.
languagestringenen, zh 같은 언어 코드.
modeenumreduce-aigcreduce-aigc, reduce-both, paraphrase, academic-polish
personal_termsstring[]—그대로 유지할 이름이나 용어. 최대 30개, 각 120자 이하.
요청
POST /api/v1/humanize
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "reduce-aigc" }
응답
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

standard, fluency, formal, academic, simple, creative, expand, shorten 모드로 텍스트를 다시 씁니다. synonyms_level 범위는 0~100입니다.

매개변수유형기본값설명
text필수string—다시 쓸 텍스트. 요청당 최대 2,000 품질 단위.
languagestringenen, zh 같은 언어 코드.
modeenumstandardstandard, fluency, formal, academic, simple, creative, expand, shorten
synonyms_levelinteger50단어를 바꾸는 정도, 0에서 100까지.
요청
POST /api/v1/paraphrase
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "academic", "synonyms_level": 60 }
응답
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 }
}
POST/api/v1/rewrite

구조, 어조, 문장 흐름을 다듬는 학술 교정.

매개변수유형기본값설명
text필수string—다시 쓸 텍스트. 3단어 단위 이상, 요청당 최대 500 품질 단위.
languagestringenen, zh 같은 언어 코드.
요청
POST /api/v1/rewrite
{ "text": "Paste the draft you want to revise.", "language": "en" }
응답
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 }
}
POST/api/v1/detect

붙여 넣은 텍스트나 추출한 문서의 AI 점수, 글쓰기 신호, 수정 메모를 반환합니다. source_kind: paste, pdf, docx, txt.

매개변수유형기본값설명
text필수string—검사할 텍스트. 최대 5,000단어 또는 30,000자.
languagestringenen, zh 같은 언어 코드.
source_kindenumpastepaste, pdf, docx, txt
original_filenamestring—원본 파일 이름. 최대 255자.
요청
POST /api/v1/detect
{ "text": "Paste the draft you want to revise.", "language": "en", "source_kind": "paste" }
응답
200 OK
{
  "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" }
}
POST/api/v1/citation

DOI, URL, 직접 입력한 인용을 22가지 스타일로 서식화합니다. APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA, Bluebook 등을 지원합니다. 응답에는 html, text, BibTeX, RIS가 포함됩니다.

매개변수유형기본값설명
inputstring—DOI, URL 또는 인용 제목(최대 2,000자). citation과 둘 중 하나를 사용합니다.
citationobject—제목, 저자, 출처 정보를 담은 인용 객체. input과 둘 중 하나를 사용합니다.
stylestringapaapa, mla, chicago 같은 인용 스타일 키.
요청
POST /api/v1/citation
{ "input": "10.1038/nature14539", "style": "apa" }
응답
200 OK
{
  "citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
  "style": "apa",
  "html": "…",
  "text": "…",
  "bibtex": "…",
  "ris": "…"
}
POST/api/v1/bibliography

인용 목록을 지정한 스타일로 정렬·서식화하여 html과 text로 출력하고, BibTeX와 RIS로 내보냅니다.

매개변수유형기본값설명
citations필수object[]—인용 객체 1~100개. 각각 id와 title을 포함합니다.
stylestringapaapa, mla, chicago 같은 인용 스타일 키.
요청
POST /api/v1/bibliography
{ "citations": [{ "id": "1", "title": "…", "authors": [] }], "style": "apa" }
응답
200 OK
{
  "style": "apa",
  "entries": [{ "citation": { "id": "1" }, "html": "…", "text": "…" }],
  "html": "…",
  "text": "…",
  "bibtex": "…",
  "ris": "…"
}
GET/api/v1/status

키 이름, 남은 단어, 요청당 한도, 탐지 할당량, 속도 제한을 반환합니다.

이 엔드포인트는 매개변수를 받지 않습니다.

응답
200 OK
{
  "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
}

매개변수 및 옵션

인증
Authorization: Bearer tp_live_your_api_key
휴머나이즈 용어
선택 항목인 personal_terms 배열(최대 30개)로 영어 휴머나이즈 시 이름, 전문 용어, 브랜드 표기를 그대로 유지합니다.

속도 제한 및 요청 한도

휴머나이즈 및 학술 리라이트
요청당 500단위CJK 문자 1자는 1단위, 기타 문자 3자는 1단위이며 소수점 이하는 올림합니다. 모든 플랜의 한도가 같습니다.
패러프레이즈
요청당 2,000단위같은 방식으로 계산합니다.
AI 탐지
1회 5,000단어 또는 30,000자일일 탐지 횟수에서 차감됩니다. 더 긴 문서는 나누세요.
속도 제한
키당 분당 50회 요청인용과 참고문헌은 100회이며 단어를 사용하지 않습니다.
API 키
활성 키 최대 5개

오류 처리

오류는 error, code, message 필드가 포함된 JSON으로 반환됩니다.

400
invalid_input, quality_limit_exceeded, word_limit_exceeded
401
missing_api_key, invalid_api_key
403
insufficient_words, daily_detection_limit
429
rate_limited
500
internal_error
응답
400
{
  "error": "quality_limit_exceeded",
  "code": "quality_limit_exceeded",
  "message": "Up to 500 Chinese or 1,500 English characters per request."
}
429와 5xx는 백오프를 두고 재시도하세요. 4xx는 요청을 수정한 뒤 재시도하세요.

예시

휴머나이즈
JSON
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 }
}
패러프레이즈, AI 탐지, 인용
JSON
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"
}

다음 단계