Formula Recognition
The formula recognition model is divided into lightweight model and standard model. The lightweight model is faster while the standard model has slightly better performance. You can choose according to your scenario testing.
The specialized formula recognition currently supports recognition of various texts in more than 80 languages, as well as LaTeX symbols, matrices, chemical structure formulas, and complex equations. It supports both handwritten and printed text recognition. If you need to recognize document-type images, please refer to the SimpleTex general image recognition API. Online testing experience address: https://simpletex.net/ai/latex_ocr
Charging modes: Pay-as-you-go and prepaid resource packages
There are currently two billing methods: one is pay-as-you-go, and the other is through prepaid resource packages for call deductions. The deduction order is Free resource package -> Paid resource package (sorted by expiration time, prioritizing resources with earlier end dates) -> Pay-as-you-go
Service billing only charges for successful calls, and users can check their call status and related orders on the open platform. Note: Each successful file/image calculation in a Batch call will be counted as a separate call.
API Pay-as-you-go (Note that the following prices are not the official prices after SimpleTex launches the service, for reference only! If you have any questions, please contact us)
Lightweight Model
Service Pricing
Monthly API Calls (times) | Price (CNY/call) |
---|---|
<1000 | Free |
1000-5000 | 0.04 |
>5000 | 0.01 |
Speed Limits
Limitation | Default Free Quota |
---|---|
Request Processing Concurrency | 5 |
Normal Request QPS | 5 |
Batch Request QPS/Concurrency | 25 |
API Call Method
API address: https://server.simpletex.net/api/latex_ocr_turbo
Model version:
SimpleTex V2.5
Interface method:
POST
Request parameters:
Header
: Authentication parameters (UAT or APP information)Body
: Multipart/form-data
Parameter details
Parameter Name | Parameter Type | Required | Description | Example |
---|---|---|---|---|
file | File | Yes | Valid image binary file information, including formats such as png/jpg. If batch requests are enabled, file names cannot be duplicated, otherwise results for files with the same name will conflict and overwrite each other | / |
Standard Model
Service Pricing
Monthly API Calls (times) | Price (CNY/call) |
---|---|
<1000 | Free |
1000-5000 | 0.05 |
>5000 | 0.02 |
Records are cleared at 0:00 AM on the 1st of each month, and billing is done according to usage tiers. The lightweight model provides 2000 free calls per day, while the standard model provides 500 free calls per day.
Prepaid resource packages (Due to business adjustments, please contact us for pricing)
If you need resource packages of other specifications, please contact us. Resource packages are non-refundable, so please estimate a reasonable number of uses before purchasing. If you need to upgrade the number of calls, please purchase a new resource package or use the pay-as-you-go billing method.
Speed Limits
Limitation | Default Free Quota |
---|---|
Request Processing Concurrency | 2 |
Normal Request QPS | 2 |
Batch Request QPS/Concurrency | 10 |
QPS refers to the number of requests per second, and request processing concurrency refers to how many threads the server has simultaneously processing user requests. QPS can be expanded by purchasing QPS add-on packages. For a batch request, each individual object to be processed in the batch will occupy one batch request QPS quota and use the same amount of request processing concurrency.
Example: If an interface has both QPS and concurrency of 1, and assuming a request takes 0.3s for server calculation and response, then the maximum request speed is limited by QPS to 1 request/second. If a request takes 3s for server calculation and response, then the maximum request speed is limited by concurrency to 1 request/3s. (According to Little's Law, concurrency = QPS * average interface processing time)
For businesses with high request speed requirements, you can contact us to configure additional QPS resource packages. Please contact us if you have special requirements.
API Call Method
API address: https://server.simpletex.net/api/latex_ocr
Model version:
SimpleTex V2.5
Interface method:
POST
Request parameters:
Header
: Authentication parameters (UAT or APP information)Body
: Multipart/form-data
Parameter details
Parameter Name | Parameter Type | Required | Description | Example |
---|---|---|---|---|
file | File | Yes | Valid image binary file information, including formats such as png/jpg. If batch requests are enabled, file names cannot be duplicated, otherwise results for files with the same name will conflict and overwrite each other | / |
Response Example
Single file upload
{ "status": true, // Whether the API call was successful "res": { // Call result "latex": "a^{2}-b^{2}", // LaTeX information, more information will be available in this section in the future "conf":0.95 // Confidence level }, "request_id": "tr_16755479007123063412063155819" // Request ID }
Multiple file upload
{ "status": true, // Whether the API call was successful "res": { // Call result "stats": { // Success and failure call statistics "fail": 0, "success": 2 }, "fail_res": {}, // Error information for failed image calls "success_res": { // Result information for successfully recognized images "test_1.png": { "latex": "a^{2}-b^{2}", "conf":0.95 // Confidence level }, "test_2.png": { "latex": "a^{3}+b^{3}", "conf":0.90 } } }, "request_id": "tr_16755477466238226695895375638" // Request ID }
- Special return values
[EMPTY]: Image is empty
[DOCIMG]: Image is a document type, it is recommended to use the general image recognition interface, as the formula model cannot output results