Autenticación
Authorization: Bearer <your-api-key>Todas las peticiones y respuestas son JSON.
Alternativa: X-API-Key: th_live_…
TonoHumano
Developer API
Humaniza, parafrasea y detecta texto con endpoints REST, API keys y créditos prepago en EUR.
Prepago en EUR · 1 € → 100 créditos · bono al crear tu primera key
const res = await fetch("https://tonohumano.com/api/v1/humanizer", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
text: "Your AI-generated text here…",
style: "original",
intensity: "moderate"
})
});
const data = await res.json();
// => { id, output, usage: { tokens, creditsCharged, balance } }Authorization: Bearer <your-api-key>Todas las peticiones y respuestas son JSON.
Alternativa: X-API-Key: th_live_…
Se cobra solo en respuesta 200. usage.creditsCharged y usage.balance vienen en la respuesta.
const res = await fetch("https://tonohumano.com/api/v1/humanizer", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
text: "Your AI-generated text here…",
style: "original",
intensity: "moderate"
})
});
const data = await res.json();
// => { id, output, usage: { tokens, creditsCharged, balance } }200 OK · REST API v1
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
text | string | Obligatorio | Texto a humanizar (50–3000 caracteres). |
style | string | Opcional | original | simple | academic | formal. Por defecto original. |
intensity | string | Opcional | moderate | fast | aggressive | maximum. fast = como moderate sin chequeo del detector. Por defecto moderate. |
Devuelve id, output (texto humanizado) y usage { tokens, creditsCharged, balance }. 401 clave inválida · 402 sin créditos · 400 TEXT_TOO_SHORT / TEXT_TOO_LONG.
Authorization: Bearer <your-api-key>Todas las peticiones y respuestas son JSON.
Alternativa: X-API-Key: th_live_…
Se cobra en 200. El coste depende de la longitud y del modo (translate suele usar más tokens).
const res = await fetch("https://tonohumano.com/api/v1/paraphrase", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
text: "Rewrite this paragraph…",
mode: "paraphrase",
style: "simple",
sourceLang: "auto"
})
});
const data = await res.json();
// => { id, output, usage }200 OK · REST API v1
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
text | string | Obligatorio | Texto de entrada (máx. 10 000 caracteres). |
mode | string | Opcional | paraphrase | correct | translate. Por defecto paraphrase. |
style | string | Opcional | simple | academic | formal | persuasive | narrative | analytical. |
sourceLang | string | Opcional | Idioma origen (p. ej. auto, es, en). Por defecto auto. |
targetLang | string | Opcional | Idioma destino. Requerido cuando mode=translate. |
Devuelve id, output y usage. 401 / 402 / 400 si el body es inválido.
Authorization: Bearer <your-api-key>Todas las peticiones y respuestas son JSON.
Alternativa: X-API-Key: th_live_…
Se cobra en 200. Incluye usage con tokens y saldo restante.
const res = await fetch("https://tonohumano.com/api/v1/detect", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
text: "Paste text to score for AI signals…"
})
});
const data = await res.json();
// => { id, fakePercentage, verdict, classification, analysis, usage }200 OK · REST API v1
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
text | string | Obligatorio | Texto a analizar (máx. 10 000 caracteres). |
Devuelve fakePercentage, verdict, classification, models, analysis[] y usage. 401 / 402 / 504 DETECTOR_TIMEOUT.
Regístrate, crea una key y lanza tu primera petición. Los packs de créditos se compran desde la cuenta.