Good Speak API

Translate potentially harmful messages into polite alternatives.

Try It Live

Endpoint

POST /api/moderate

Request Fields

Response

{
  "flagged": true|false,
  "toxicity": 0.0-1.0,
  "suggestion": "Rewritten message" | null
}

Example CURL

curl -X POST http://localhost:3000/api/moderate   -H "Content-Type: application/json"   -d '{
    "username": "test_user",
    "message": "Hey, could you please be less noisy?"
}'

Rate Limiting

Clients are limited to 100 requests per hour. Exceeding this will return 429 Too Many Requests.