Browse documentation
TurnitPass REST API
Endpoints, parameters, limits, and error codes.
/api/v1/humanizeLower AI-like writing signals in submitted text. Modes: reduce-aigc, reduce-both, paraphrase, academic-polish.
| Parameter | Type | Default | Description |
|---|---|---|---|
textRequired | string | — | Text to rewrite. At least 3 word units, up to 500 quality units per request. |
language | string | en | Language code, such as en or zh. |
mode | enum | reduce-aigc | reduce-aigc, reduce-both, paraphrase, academic-polish |
personal_terms | string[] | — | Up to 30 names or terms to keep unchanged, each up to 120 characters. |
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "reduce-aigc" }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 },
"metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
/api/v1/paraphraseRewrite text in standard, fluency, formal, academic, simple, creative, expand, or shorten mode. synonyms_level ranges from 0 to 100.
| Parameter | Type | Default | Description |
|---|---|---|---|
textRequired | string | — | Text to rewrite. Up to 2,000 quality units per request. |
language | string | en | Language code, such as en or zh. |
mode | enum | standard | standard, fluency, formal, academic, simple, creative, expand, shorten |
synonyms_level | integer | 50 | How freely words are replaced, from 0 to 100. |
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "academic", "synonyms_level": 60 }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 }
}
/api/v1/rewriteAcademic polish for structure, tone, and sentence flow.
| Parameter | Type | Default | Description |
|---|---|---|---|
textRequired | string | — | Text to rewrite. At least 3 word units, up to 500 quality units per request. |
language | string | en | Language code, such as en or zh. |
{ "text": "Paste the draft you want to revise.", "language": "en" }
{
"output": "…",
"words_used": 142,
"words_remaining": 2858,
"usage": { "words": 142, "characters": 861 }
}
/api/v1/detectReturn an AI score, writing signals, and revision notes for pasted text or extracted documents. source_kind: paste, pdf, docx, or txt.
| Parameter | Type | Default | Description |
|---|---|---|---|
textRequired | string | — | Text to scan. Up to 5,000 words or 30,000 characters. |
language | string | en | Language code, such as en or zh. |
source_kind | enum | paste | paste, pdf, docx, txt |
original_filename | string | — | Original file name, up to 255 characters. |
{ "text": "Paste the draft you want to revise.", "language": "en", "source_kind": "paste" }
{
"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" }
}
/api/v1/citationFormat a DOI, URL, or manual citation in 22 styles, including APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA, and Bluebook. Responses include html, text, BibTeX, and RIS.
| Parameter | Type | Default | Description |
|---|---|---|---|
input | string | — | A DOI, URL, or citation title, up to 2,000 characters. Use this or citation. |
citation | object | — | A citation object with title, authors, and source details. Use this or input. |
style | string | apa | Citation style key, such as apa, mla, or chicago. |
{ "input": "10.1038/nature14539", "style": "apa" }
{
"citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
"style": "apa",
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/bibliographySort and format a list of citations in the requested style, with html and text output plus BibTeX and RIS exports.
| Parameter | Type | Default | Description |
|---|---|---|---|
citationsRequired | object[] | — | 1 to 100 citation objects, each with an id and a title. |
style | string | apa | Citation style key, such as apa, mla, or chicago. |
{ "citations": [{ "id": "1", "title": "…", "authors": [] }], "style": "apa" }
{
"style": "apa",
"entries": [{ "citation": { "id": "1" }, "html": "…", "text": "…" }],
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/statusReturn the key name, remaining words, per-request limits, detection quota, and rate limit.
This endpoint takes no parameters.
{
"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
}
Parameters and options
Rate limits and request limits
Error handling
Errors return JSON with error, code, and message fields.
{
"error": "quality_limit_exceeded",
"code": "quality_limit_exceeded",
"message": "Up to 500 Chinese or 1,500 English characters per request."
}
Examples
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 }
}
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"
}