Explorar la documentación
API REST de TurnitPass
Endpoints, parámetros, límites y códigos de error.
/api/v1/humanizeReduce las señales de escritura típicas de la IA en el texto enviado. Modos: reduce-aigc, reduce-both, paraphrase, academic-polish.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
textObligatorio | string | — | Texto a reescribir. Al menos 3 unidades de palabra y hasta 500 unidades de calidad por solicitud. |
language | string | en | Código de idioma, como en o zh. |
mode | enum | reduce-aigc | reduce-aigc, reduce-both, paraphrase, academic-polish |
personal_terms | string[] | — | Hasta 30 nombres o términos que se mantienen sin cambios, de hasta 120 caracteres cada uno. |
{ "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/paraphraseReformula el texto en modo standard, fluency, formal, academic, simple, creative, expand o shorten. synonyms_level va de 0 a 100.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
textObligatorio | string | — | Texto a reescribir. Hasta 2.000 unidades de calidad por solicitud. |
language | string | en | Código de idioma, como en o zh. |
mode | enum | standard | standard, fluency, formal, academic, simple, creative, expand, shorten |
synonyms_level | integer | 50 | Cuánta libertad hay al sustituir palabras, de 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/rewritePulido académico de la estructura, el tono y la fluidez de las frases.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
textObligatorio | string | — | Texto a reescribir. Al menos 3 unidades de palabra y hasta 500 unidades de calidad por solicitud. |
language | string | en | Código de idioma, como 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/detectDevuelve una puntuación de IA, señales de escritura y notas de revisión para texto pegado o documentos extraídos. source_kind: paste, pdf, docx o txt.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
textObligatorio | string | — | Texto a analizar. Hasta 5.000 palabras o 30.000 caracteres. |
language | string | en | Código de idioma, como en o zh. |
source_kind | enum | paste | paste, pdf, docx, txt |
original_filename | string | — | Nombre original del archivo, hasta 255 caracteres. |
{ "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/citationFormatea un DOI, una URL o una cita manual en 22 estilos, entre ellos APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA y Bluebook. Las respuestas incluyen html, text, BibTeX y RIS.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
input | string | — | Un DOI, una URL o el título de una cita, hasta 2.000 caracteres. Úsalo o usa citation. |
citation | object | — | Un objeto de cita con título, autores y datos de la fuente. Úsalo o usa input. |
style | string | apa | Clave del estilo de cita, como apa, mla o chicago. |
{ "input": "10.1038/nature14539", "style": "apa" }
{
"citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
"style": "apa",
"html": "…",
"text": "…",
"bibtex": "…",
"ris": "…"
}
/api/v1/bibliographyOrdena y formatea una lista de citas en el estilo solicitado, con salida html y text y exportación a BibTeX y RIS.
| Parámetro | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
citationsObligatorio | object[] | — | De 1 a 100 objetos de cita, cada uno con id y title. |
style | string | apa | Clave del estilo de cita, como 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/statusDevuelve el nombre de la clave, las palabras restantes, los límites por solicitud, el cupo de detección y el límite de frecuencia.
Este endpoint no recibe parámetros.
{
"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
}
Parámetros y opciones
Límites de frecuencia y de solicitud
Gestión de errores
Los errores devuelven un JSON con los campos error, code y message.
{
"error": "quality_limit_exceeded",
"code": "quality_limit_exceeded",
"message": "Up to 500 Chinese or 1,500 English characters per request."
}
Ejemplos
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"
}