Grammar
Replace “are” with “is”.
Correct grammar, spelling, and punctuation while preserving voice, meaning, language, and paragraph structure. Get corrected text plus a complete word-level diff.
This are a sample sentence with some grammar mistake inside of it.
Replace “are” with “is”.
Replace “mistake” with “mistakes”.
curl -X POST https://developer-portal.walterwrites.ai/api/grammar/correct/
-H "Content-Type: application/json"
-H "X-API-Key: YOUR_API_KEY"
-d '{
"content": "This are a sample sentence with some grammar mistake inside of it."
}'"status": "success",
"corrected_text": "This is a sample sentence with some grammar mistakes inside of it.",
"diff": [
{ "type": "replace", "original": "are", "corrected": "is", "start": 5, "end": 8 },
{ "type": "replace", "original": "mistake", "corrected": "mistakes", "start": 45, "end": 52 }
],
"edits_count": 2,
"changed": true,
"input_words": 12A synchronous endpoint with a complete diff, stable character offsets, and optional English-variant targeting.
Render track changes from replace, insert, and delete operations that reference the submitted text.
Correct writing mechanics while preserving voice, meaning, language, and paragraph structure.
Use automatic detection or target en-US, en-GB, en-CA, en-AU, or en-IN.
Text that needs no correction is returned unchanged with an empty diff.
Use an idempotency key to avoid duplicate processing and duplicate charges during retries.
The response returns the word count used for billing, with 1 credit charged per word.
Use one developer portal and scoped API keys for humanization, AI text detection, grammar correction, plagiarism scanning, and AI image detection.


Analyze text for AI-generated content with confidence scores and sentence-level details.


Transform AI-generated text into natural, human-like content through a documented REST endpoint.


Audio detection is planned for a future Walter API release.


Scan text against web sources and return a score, matched URLs, and highlighted character ranges.


Correct grammar, spelling, and punctuation and return corrected text plus a complete word-level diff.


Upload an image and receive a real, fake, or inpainting verdict with confidence and per-class probabilities.
Grammar corrections use 1 credit per word. Every request returns the script-aware word count used for billing.
Need enterprise pricing?
Talk to us about higher-volume workloads and enterprise deployment requirements.
Documented answers about the endpoint, response, limits, billing, and safe production use.
Yes. Send a POST request to /api/grammar/correct/ with an API key that has the grammar_checker scope.
It returns corrected text, a complete word-level diff, issue notes, edit counts, input counts, execution time, and the remaining credit balance. Diff offsets refer to the text exactly as submitted.
Requests must contain at least 5 words and may contain up to 10,000 words or 75,000 characters.
Grammar correction costs 1 credit per word using the API’s script-aware count. Failed corrections are refunded automatically.
Yes. Set target_variant to auto, en-US, en-GB, en-CA, en-AU, or en-IN. Auto is the default and preserves the input’s variant.
Send an Idempotency-Key header. Reusing the same key with the same text within five minutes returns the original response without another charge.
Create an API key with the required scope, follow the documented request format, and keep the returned evidence in your existing review workflow.
From the blog
Guides, comparisons and practical advice from Walter.
View all