npm i llama-latex
import { img2latex } from "llama-latex";
const latex = await img2latex({
filePath: "./test/maxwell_distribution.png", // path to your image
apiKey: process.env.TOGETHER_API_KEY, // Together AI API key
});
This project was inspired by @nutlope's llama-ocr. Go check them out!