Math in Language

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

10 requests per minute

Endpoints

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.
  • question can be up to 2,000 characters.
  • The model's reply is split into answer and explanation at 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, answer says 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

POST
https://opentools.ca/api/v1/tools/math-in-language
Solve a math question written in plain English

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
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

400
Invalid request. Validation problems are listed in details.
401
Missing or invalid API key
403
API key is deactivated or expired, or this IP address is not allowed for the key
429
Rate limit exceeded (10 requests per minute per key, 200 per day)
500
Internal server error
GET
https://opentools.ca/api/v1/tools/math-in-language
Usage description and example questions. No model call.

Response 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

401
Missing or invalid API key
403
API key is deactivated or expired, or this IP address is not allowed for the key
429
Rate limit exceeded (120 requests per minute per key)

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?"}'

Ready to get started?

Create an API key to start using the Math in Language API.

Rather use it in your browser? Open the Math in Language