Build with the MathGPT API

Power your app, product, or workflow with fast AI models for math, coding, writing, analysis, and structured responses. Use specialized math models for step-by-step problem solving and general models for broader tasks through one API platform.

import requests 

# call https://mathgpt.today/ask for math
# call https://mathgpt.today/plain for general use

res = requests.post(
    "https://mathgpt.today/ask",
    json={
    "api_key": "your api key",
    "input": "how to factor x^2 +5x +6 ",
    "model": "m-regular-1.0", 
    "system": "None"
    }
)
print(res.json())
6 Production-ready models
1M Token context on select models
2 API endpoints
98% Accuracy Rate
207,775 Questions Answered

Built for real products

Powerful API tools for math solving, tutoring, coding, writing, and structured AI workflows at scale.

Step by Step Solutions

Step-by-Step Math Solutions

Deliver worked math solutions with clear reasoning that helps users follow each step from problem to answer.

Curriculum Aligned

Specialized and General Models

Choose dedicated math models for solving problems or general-purpose models for coding, writing, analysis, and everyday AI tasks.

Multi-Platform Access

Structured output

Get clean JSON responses for apps and workflows, plus LaTeX support when needed.

Progress Analytics

Fast model options

Choose lower-latency models for quick tasks or stronger reasoning models for harder problems.

FERPA Compliant

Easy to integrate

Start with a simple API call and scale from prototypes to production.

Instant Responses

Instant Responses

From quick calculations to harder problems, MathGPT responds in seconds with answers and step-by-step reasoning that keeps the work flowing.

Integration Made Simple

Simple API, fast setup

Make your first request in seconds with a clean developer-friendly API.
What you can get back

  • final answer
  • step by step explanation
  • structured JSON
  • LaTeX-friendly output
  • model-specific reasoning quality

General API
Math API
Join Our Discord Server
GENERAL API
import requests
res = requests.post (
"https://mathgpt.today/plain", json={ "API_KEY": "Your API Key", "input": "Write me a python loop?", "model": 'g-regular-1.0', "system": 'None' }) print(res.json())

Choose the right model for the job

From lightweight responses to deeper reasoning, each model has a clear use case so developers can pick fast.

m-regular-1.0

Best math reasoning for step by step solutions

m-pro-1.0

Better reasoning ability, thinking while answering a question

m-fast-1.0

Fastest, most cost-efficient model for math tasks

g-regular-1.0

General purpose model for everyday tasks

g-pro-1.0

Better reasoning ability, thinking while answering a question

g-fast-1.0

Fast response model for quick tasks and low latency

Simple API pricing

Pay only for what you use.

Choose math models when you need step by step solving and explanation quality. Choose general models when you need speed and flexibility for broader tasks like coding, writing, extraction, and automation.

Feature
m-regular-1.0

g-regular-1.0
Step-by-step explanations
Math-optimized reasoning
Raw JSON response
LaTeX output
Image / handwriting input (Coming Soon)
Context Window 1/Million
Support Priority (24 / 7)
Get API Key
Tokens Input
/ Million
Output
/ Million
Price $0.55 $1.75

Frequently Asked Questions

Everything you need to know about the MathGPT API.

How do I integrate the MathGPT API into my app or platform? +

Integration is simple. Send requests to the MathGPT API using your API key and choose the model that fits your use case. You can build your own interface, connect it to your existing product, and return structured responses in JSON. Our API documentation includes request examples, model details, and implementation guidance to help you get started quickly.

What is the difference between the math models and general models? +

Math models are optimized for solving math problems with step by step explanations and stronger reasoning for calculations, equations, and learning workflows. General models are designed for broader tasks such as coding, writing, summaries, analysis, extraction, and structured text generation. This gives you flexibility to use appropriate API for both specialized math tasks and everyday AI tasks.

What kind of input and output does the API support? +

The API supports text input and selected workflows can also support image or handwritten input. Responses can be returned as clean JSON, plain text, or LaTeX-friendly output depending on your implementation. This makes it easy to use MathGPT in apps, dashboards, internal tools, and automated workflows.

Which model should I start with? +

If your product is focused on math solving, start with m-regular-1.0 for strong step by step math reasoning. If you need broader capabilities like coding, writing, or analysis, start with g-regular-1.0. If speed and lower cost matter most, the fast models are a strong starting point for lightweight tasks.

Is the MathGPT API secure? +

Yes. We take security seriously and use industry-standard protections for API access and data handling. Requests are sent securely, and we focus on building a reliable platform for developers, products, and institutions that need dependable AI infrastructure.

Can I use MathGPT for more than math? +

Yes. In addition to math-focused models, MathGPT also offers general-purpose models for coding, writing, deep analysis, summaries, and other fast-response workflows. That means you can use one API across multiple product features instead of stitching together separate providers for math and general tasks.

How do I get started with the API? +

Start by adding a minimum of $5 in API credits. Once your credits are added, you can generate your API key and begin making requests immediately.

Start building with MathGPT API

Integrate math and general AI models into your app with clear pricing, fast setup, and flexible output formats.