Use paclet manager to install the latest version:
ResourceFunction["GitHubInstall"]["GalAster", "Mathpix"]
Apply for your API Key from https://dashboard.mathpix.com/signup, with one thousand free credits per month
Then set your key and load the function:
PersistentValue["Mathpix", "Local"]={"$KeyName","$KeyValue"};
Mathpix receives a Image
, or the String
of path to the image, or MathpixAPI
object.
And have the following modes: {N, D, E, Text, "Raw"}
.