Automated Spelling & Punctuation
Instantly detects and fixes typos, spelling mistakes, missing commas, and run-on sentences.
Automated spelling, punctuation, and grammar correction API with tone adjustment and error explanations.
https://rsflowhub.com/api/v1/ai/grammar-fix
X-API-Key header{
"text": "I went to the store yesterday bcuz I need milk.",
"tone": "professional",
"dialect": "US",
"return_explanations": true
}
{
"result": {
"corrected_text": "We have received your request and will reply within two business days.",
"changes_made": true,
"explanations": [
{
"original": "We has received",
"corrected": "We have received",
"reason": "Subject-verb agreement"
},
{
"original": "two buisness days",
"corrected": "two business days",
"reason": "Spelling"
}
]
}
}
AI Grammar Fix & Sentence Enhancer API is a REST API on RSFlowHub for web, mobile and AI agent applications. Send a JSON request to POST /api/v1/ai/grammar-fix with your API key; RSFlowHub runs it on a tuned AI model, falls back to a backup provider if needed, and returns a structured JSON result, usually within 1 to 3 seconds.
Try it without code or signup: Free grammar checker
POST /api/v1/ai/grammar-fixX-API-Key headerSend these fields as a JSON body. An invalid or missing field returns a 422 error that names the field.
| Field | Type | Required | Description |
|---|---|---|---|
text |
string | Required | The raw text to be corrected (Max: 5,000 characters). |
tone |
string | Optional | Desired tone of the corrected text (e.g., "professional", "casual", "academic"). Default is "auto" (keeps original tone). |
dialect |
string | Optional | Target English dialect (e.g., "US", "UK", "AU"). Adjusts localized spellings like color vs colour. Default is "US". |
return_explanations |
boolean | Optional | Optional. If true, the API will return an array detailing exactly what was changed and why (similar to Grammarly). |
Copy, replace rfh_your_api_key with your key and run. Prefer a client library? See the official SDKs.
curl -X POST "https://rsflowhub.com/api/v1/ai/grammar-fix" \
-H "Content-Type: application/json" \
-H "X-API-Key: rfh_your_api_key" \
-d '{"text":"I went to the store yesterday bcuz I need milk.","tone":"professional","dialect":"US","return_explanations":true}'
<?php
$client = new \GuzzleHttp\Client();
$response = $client->post('https://rsflowhub.com/api/v1/ai/grammar-fix', [
'headers' => [
'Content-Type' => 'application/json',
'X-API-Key' => 'rfh_your_api_key',
],
'json' => array (
'text' => 'I went to the store yesterday bcuz I need milk.',
'tone' => 'professional',
'dialect' => 'US',
'return_explanations' => true,
),
]);
echo $response->getBody();
const response = await fetch('https://rsflowhub.com/api/v1/ai/grammar-fix', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'rfh_your_api_key'
},
body: JSON.stringify({"text":"I went to the store yesterday bcuz I need milk.","tone":"professional","dialect":"US","return_explanations":true})
});
const data = await response.json();
console.log(data);
import requests
url = "https://rsflowhub.com/api/v1/ai/grammar-fix"
headers = {
"Content-Type": "application/json",
"X-API-Key": "rfh_your_api_key"
}
payload = {"text":"I went to the store yesterday bcuz I need milk.","tone":"professional","dialect":"US","return_explanations":true}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
Every RSFlowHub endpoint uses the same envelope, so one parser handles all of them. Failed calls are not charged.
{
"success": true,
"request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
"data": {
"result": {
"corrected_text": "We have received your request and will reply within two business days.",
"changes_made": true,
"explanations": [
{
"original": "We has received",
"corrected": "We have received",
"reason": "Subject-verb agreement"
},
{
"original": "two buisness days",
"corrected": "two business days",
"reason": "Spelling"
}
]
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
{
"success": false,
"request_id": "req_8c1d4e2a-7f3b-4a9c",
"error": {
"code": "VALIDATION_ERROR",
"message": "The given data was invalid.",
"details": {
"text": [
"This field is required."
]
}
},
"meta": {
"version": "v1",
"timestamp": "2026-10-05T09:30:00Z"
}
}
| Field | Type | Meaning |
|---|---|---|
success | boolean | true when the call worked, false on any error. |
request_id | string | Unique id for this call. Quote it when you contact support. |
data.result | object | The result of this endpoint (see the example). |
error | object | Only on failure: code, message and details per field. |
meta | object | API version and server timestamp. |
All error codes: Errors reference
Instantly detects and fixes typos, spelling mistakes, missing commas, and run-on sentences.
Adjust writing tone between professional, casual, academic, or technical while switching dialects (US/UK/AU).
Optionally returns detailed breakdown array of detected mistakes, grammar rules, and applied corrections.
Safely preserves HTML tags, markdown elements, and inline code snippets without corrupting markup.
How teams use the AI Grammar Fix & Sentence Enhancer API in production.
Scrub user-submitted blog comments, forum posts, and reviews before saving to database.
I went to the store yesterday because I needed milk.Elevates content quality across community platforms.
Automatically fix typos and polish support ticket draft responses before sending to clients.
We are working on your issue and will get back to you as soon as possible.Ensures professional client communication.
Provide real-time feedback and grammar score insights for student essay writing tools.
There are many reasons why global warming is bad.Accelerates learning with instant writing correction.
The same job done three ways.
| Topic | RSFlowHub API | Raw LLM prompts | Rules / regex |
|---|---|---|---|
| Output | Validated JSON fields | Free text you have to parse | Fixed patterns only |
| Setup | One POST request, no prompts | Write and maintain prompts and parsing | Write and maintain rule lists |
| Provider outage | Automatic fallback to a backup model | You build retries and a second vendor | Not applicable |
| Pricing | 1 credit per call, failed calls free | Per token, per vendor | Your own servers and upkeep |
| Understands context | Yes, AI model | Yes, AI model | No, keywords only |
Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. Test it in the playground first, no code needed.
Flowy
AI assistant