Integrate the OpenGrammar API directly into your applications. It's fast, free, and fully self-hosted.
No authentication is required. The API is open and secured via CORS and rate limiting.
Performs a lightning-fast rule-based analysis of text for grammar, spelling, and style errors.
curl -X POST https://your-domain.com/api/check \
-H "Content-Type: application/json" \
-d '{
"text": "Their is a apple and he dont like it.",
"options": {
"spelling": true,
"grammar": true,
"style": true,
"readability": true
}
}'{
"messages": [
{
"source": "retext-spell",
"ruleId": "dont",
"message": "Did you mean `don't`?",
"offset": 24,
"length": 4,
"actual": "dont",
"expected": ["don't"]
}
],
"stats": {
"totalIssues": 1,
"fleschKincaidGrade": 2.1
}
}Uses a high-quality server-side Large Language Model (Groq Llama-3) to completely rewrite and enhance the provided text for clarity, professionalism, and grammar.
curl -X POST https://your-domain.com/api/enhance \
-H "Content-Type: application/json" \
-d '{
"text": "Their is a apple and he dont like it. This is a very very bad sentence."
}'{
"result": "There is an apple, but he does not like it. This is a very poorly constructed sentence."
}Simple healthcheck endpoint to verify the API is running.
curl https://your-domain.com/api/health