
Math in Language API
Solve math problems with AI using plain English. Get step-by-step solutions for algebra, calculus, percentages, and more.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
10 requests per minute
2 endpoints available
Overview
Solve a math problem written in plain English, such as a percentage, an equation, a word problem or a geometry question. The answer comes from an AI model and is returned as text: answer holds the final answer and explanation holds the worked steps.
Limits
- This endpoint calls an AI model, so it is on the AI tier: 10 requests per minute and 200 per day per API key.
questioncan be up to 2,000 characters.- The model's reply is split into
answerandexplanationat a heading such as "Show your work", "Explanation" or "Steps", or after the first line. Both are plain text and may contain Markdown. - If the question cannot be solved,
answersays why. - AI output can be wrong. Check results that matter.
Usage info
A GET request (with your API key) returns a short usage description and example questions. It does not call the model and counts against the standard limit, not the AI limit.
Endpoints
https://opentools.ca/api/v1/tools/math-in-languageRequest Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| question | string | Required | The question in plain English (1 to 2,000 characters). |
Response Example
{
"success": true,
"answer": "15% of 80 is **12**.",
"explanation": "- Convert the percentage to a decimal: 15% = 0.15\n- Multiply: 0.15 x 80 = 12"
}Error Codes
https://opentools.ca/api/v1/tools/math-in-languageResponse Example
{
"success": true,
"description": "Solve math problems expressed in natural language",
"usage": {
"method": "POST",
"body": {
"question": "string (required) - The math problem in plain English"
}
},
"examples": [
"What is 15% of 80?",
"If x + 5 = 12, what is x?",
"Calculate the area of a circle with radius 5",
"What is 2 to the power of 8?"
]
}Error Codes
Code Examples
curl -X POST https://opentools.ca/api/v1/tools/math-in-language \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "What is 15% of 80?"}'Rather use it in your browser? Open the Math in Language