Sfoglia la documentazione
API REST di TurnitPass
Endpoint, parametri, limiti e codici di errore.
/api/v1/humanizeRiduce i segnali di scrittura tipici dell’IA nel testo inviato. Modalità: reduce-aigc, reduce-both, paraphrase, academic-polish.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
textObbligatorio | string | — | Testo da riscrivere. Almeno 3 unità di parola, fino a 500 unità di qualità per richiesta. |
language | string | en | Codice lingua, ad esempio en o zh. |
mode | enum | reduce-aigc | reduce-aigc, reduce-both, paraphrase, academic-polish |
personal_terms | string[] | — | Fino a 30 nomi o termini da lasciare invariati, massimo 120 caratteri ciascuno. |
{ "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/paraphraseRiformula il testo in modalità standard, fluency, formal, academic, simple, creative, expand o shorten. synonyms_level va da 0 a 100.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
textObbligatorio | string | — | Testo da riscrivere. Fino a 2.000 unità di qualità per richiesta. |
language | string | en | Codice lingua, ad esempio en o zh. |
mode | enum | standard | standard, fluency, formal, academic, simple, creative, expand, shorten |
synonyms_level | integer | 50 | Libertà nella sostituzione delle parole, da 0 a 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/rewriteRevisione accademica di struttura, tono e scorrevolezza delle frasi.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
textObbligatorio | string | — | Testo da riscrivere. Almeno 3 unità di parola, fino a 500 unità di qualità per richiesta. |
language | string | en | Codice lingua, ad esempio en o 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/detectRestituisce un punteggio IA, segnali di scrittura e note di revisione per testo incollato o documenti estratti. source_kind: paste, pdf, docx o txt.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
textObbligatorio | string | — | Testo da analizzare. Fino a 5.000 parole o 30.000 caratteri. |
language | string | en | Codice lingua, ad esempio en o zh. |
source_kind | enum | paste | paste, pdf, docx, txt |
original_filename | string | — | Nome originale del file, massimo 255 caratteri. |
{ "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/citationFormatta un DOI, un URL o una citazione manuale in 22 stili, tra cui APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA e Bluebook. Le risposte includono html, text, BibTeX e RIS.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
input | string | — | DOI, URL o titolo della citazione, massimo 2.000 caratteri. In alternativa a citation. |
citation | object | — | Oggetto citazione con titolo, autori e dettagli della fonte. In alternativa a input. |
style | string | apa | Chiave dello stile di citazione, ad esempio apa, mla o chicago. |
{ "input": "10.1038/nature14539", "style": "apa" }
{
"citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
"style": "apa",
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/bibliographyOrdina e formatta un elenco di citazioni nello stile richiesto, con output html e text ed esportazione BibTeX e RIS.
| Parametro | Tipo | Predefinito | Descrizione |
|---|---|---|---|
citationsObbligatorio | object[] | — | Da 1 a 100 oggetti citazione, ciascuno con id e title. |
style | string | apa | Chiave dello stile di citazione, ad esempio apa, mla o chicago. |
{ "citations": [{ "id": "1", "title": "…", "authors": [] }], "style": "apa" }
{
"style": "apa",
"entries": [{ "citation": { "id": "1" }, "html": "…", "text": "…" }],
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/statusRestituisce nome della chiave, parole residue, limiti per richiesta, quota di rilevamento e rate limit.
Questo endpoint non accetta parametri.
{
"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
}
Parametri e opzioni
Rate limit e limiti di richiesta
Gestione degli errori
Gli errori restituiscono un JSON con i campi error, code e message.
{
"error": "quality_limit_exceeded",
"code": "quality_limit_exceeded",
"message": "Up to 500 Chinese or 1,500 English characters per request."
}
Esempi
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"
}