Math Equation API is a simple MathJax based API that allows you to generate equation images (in SVG format) that you can freely use anywhere. It's a simple and high-performance alternative to MathJax client-side library that has a large bundle size and is harder to include.
Since you're including simple images and there's no JS dependency, the equations load measurably faster.
To create the equation, pass your equation in the eq parameter.
<img src="https://s.mathequationapi.com/m?eq=2\sqrt2-\sqrt8" />
The default format of the input is TeX, which can be verbose at times. An alternative to this is AsciiMath which can be activated by using the format parameter.
<img src="https://s.mathequationapi.com/m?eq=[[a,b],[c,d]]&format=asciimath" />
You can also modify the color using hsl, rgb, hex color names.
<img src="https://s.mathequationapi.com/m?eq=2\sqrt2-\sqrt8&color=ff0000" />
MathEquationAPI is free for both personal and commercial use for upto 1000 requests / day. For higher quota, please contact us. We'll be happy to create a paid plan for you.
Have some question, feedback, or want to report something? Feel free to send us a message.