Math Tools Math Tools

Equa Images API

The Equa Images API renders a math equation as a PNG image with a single REST call — the same rendering engine behind Equa Images on the site itself. Get a base64-encoded image in JSON, or the raw PNG bytes directly.

Advertisement

Endpoint

Every request is made against:

https://math.tools/api/equations

Authentication

Every endpoint on this page requires a Sanctum personal access token — there is no free or anonymous tier. Subscribing to one of the plans below issues one automatically; sign in first if you haven't already. Manage or cancel an existing subscription from your subscriptions page. Send your token as a bearer token on every request:

Authorization: Bearer <your-token>

A missing or invalid token returns a 401:

{
  "error": { "code": 401, "message": "Unauthorized" }
}

Advertisement

Equations

GET /api/equations/image

Render a math equation as a PNG image, returned as base64 JSON by default or as raw image bytes with binary=1.

Parameter Required Description
formula Yes The equation markup to render, e.g. "x^2+y^2=z^2".
fontsize No Font size in points, clamped to the site's configured range. Default 36.
binary No Set to 1 to receive raw PNG bytes as an attachment instead of base64 JSON.

Example response

{
  "success": { "total": 1 },
  "copyright": { "copyright": "2019-26 https://math.tools" },
  "contents": {
    "filename": "3f2504e0-4f89-11d3-9a0c-0305e82c3301.png",
    "content": "iVBORw0KGgoAAAANSUhEUgAA..."
  }
}

Pricing

Every plan includes full access to every endpoint above; tiers differ only in daily rate limit.

Equa Images API Starter

$7.99/mo

  • 2,000 images/day
Subscribe

Equa Images API Premium

$19.99/mo

  • 10,000 images/day
Subscribe

Equa Images API Enterprise

$49.99/mo

  • 40,000 images/day
Subscribe

API Console

The call above, live — expand it, click "Try it out", paste in your token via "Authorize", and send a real request straight from this page. JavaScript is required to see this section. The spec behind it is also available on its own at https://math.tools/api/equations/openapi.yaml.

Advertisement