Post
38
HyperAPI now has a Python SDK on PyPI: pip install hyperapi-sdk
From a page to structured JSON in a few lines:
client.parse() gives you the OCR on its own, with line and word boxes and the page layout in reading order. mode="advanced" (Plus plan) returns tables as tables rather than flattened text. Extract, classify, split and redact all work through the same client.
Two notes:
- The package is hyperapi-sdk. The "hyperapi" name on PyPI isn't ours. Releases are published with PyPI Trusted Publishing and signed attestations.
- A free key covers 30 pages a month. That's enough to run it on a page from each of our open test sets and check the output against the answer keys.
PyPI: https://pypi.org/project/hyperapi-sdk/
Code: https://github.com/hyprbots/hyperapi-sdk
Free key and docs:
hyperbots-inc
From a page to structured JSON in a few lines:
from hyperapi import HyperAPIClient # set HYPERAPI_KEY first
client = HyperAPIClient()
result = client.process("invoice.png") # OCR + extraction in one call
print(result["data"]["result"]["summary"]) # totals, tax, currencyclient.parse() gives you the OCR on its own, with line and word boxes and the page layout in reading order. mode="advanced" (Plus plan) returns tables as tables rather than flattened text. Extract, classify, split and redact all work through the same client.
Two notes:
- The package is hyperapi-sdk. The "hyperapi" name on PyPI isn't ours. Releases are published with PyPI Trusted Publishing and signed attestations.
- A free key covers 30 pages a month. That's enough to run it on a page from each of our open test sets and check the output against the answer keys.
PyPI: https://pypi.org/project/hyperapi-sdk/
Code: https://github.com/hyprbots/hyperapi-sdk
Free key and docs: