Primera llamada de API en 60 segundos
3 pasos. Ejemplos para copiar y pegar. Sin boilerplate.
- 1
Regístrate
Inicio de sesión con GitHub en un clic. $10 en créditos gratis, no requiere tarjeta de crédito.
Regístrate con GitHub - 2
Obtén tu clave de API
Ve a API Keys y haz clic en "Create Key". Tu clave comienza con
Ir a API Keysbrnl-. - 3
Haz tu primera llamada
Reemplaza
TU_CLAVEcon tu clave de API y ejecuta:Detect toxicity in text. Fastest endpoint — ~20ms response.
curl -X POST https://api.brainiall.com/v1/nlp/toxicity \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"You are an amazing person!"}'Respuesta esperada
{ "toxic": false, "score": 0.0003, "label": "not toxic" }