
Math in Language API
Education
Solve math problems with AI using plain English. Get step-by-step solutions for algebra, calculus, percentages, and more.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
50 requests per minute
Endpoints
1 endpoint available
Overview
The Math in Language API solves math problems expressed in plain English using AI. Submit any math question in natural language and receive both the answer and a detailed step-by-step explanation of how the solution was reached.
What You Can Solve
- Basic Arithmetic - Addition, subtraction, multiplication, division
- Percentages - "What is 15% of 80?"
- Algebra - "If x + 5 = 12, what is x?"
- Geometry - "Calculate the area of a circle with radius 5"
- Exponents - "What is 2 to the power of 8?"
- Word Problems - "If John has 12 apples and gives 3 to Mary..."
- Calculus - Derivatives, integrals, limits
Use Cases
- Educational platforms and tutoring applications
- Homework help and study tools
- Quick calculations for business applications
- Building math-enabled chatbots and assistants
Endpoints
POST
/v1/tools/math-in-languageSolve a math problem expressed in natural language
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| question | string | Required | The math problem in plain English |
Response Example
{
"success": true,
"result": "12",
"explanation": "To find 15% of 80:\\n\\n1. Convert percentage to decimal: 15% = 0.15\\n2. Multiply: 0.15 × 80 = 12\\n\\nTherefore, 15% of 80 is 12."
}Error Codes
400
Invalid request body or empty question401
Missing or invalid API key422
Unable to parse or solve the math problem429
Rate limit exceeded500
Internal server errorCode Examples
curl -X POST https://api.opentools.ca/v1/tools/math-in-language \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "What is 15% of 80?"}'