Math solver
About this tool
How to use it
- Choose this tool.
- Add a picture of the problem with Upload, or type the problem in the text box instead.
- Choose the level, and turn on Show the steps if you want them.
- Choose Plain text or LaTeX, then press Generate.
- Read the answer and copy it.
What you get back
Try Math solver in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/ai/ocr/math" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'on_unsupported=error' \
-F 'quality=standard' \
-F 'level=school'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.ocr.math({
"on_unsupported": "error",
"quality": "standard",
"level": "school"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->ocr()->math([
'on_unsupported' => 'error',
'quality' => 'standard',
'level' => 'school',
]);
echo $result->requestId;