Reference
SDKs
The official Python client library for HyperAPI. Handles authentication, retries, and file handling for you. For other languages, call the REST API directly — see Quickstart.
Python SDK
Python 3.9+
httpx
presigned uploads
GitHub
Installation
The Python SDK will be published to PyPI soon. In the meantime, install it directly from GitHub.
git clone https://github.com/hyprbots/hyperapi-sdk
cd hyperapi-sdk
pip install -e .git clone https://github.com/hyprbots/hyperapi-sdk
cd hyperapi-sdk
pip install -e .Basic usage
from hyperapi import HyperAPIClient
client = HyperAPIClient(api_key="hk_live_your_key_here")
# Parse a document
result = client.parse("invoice.pdf")
print(result["result"]["ocr"])
# Extract entities
result = client.extract("invoice.pdf")
print(result["result"]["entities"])
# Always close when done
client.close()from hyperapi import HyperAPIClient
client = HyperAPIClient(api_key="hk_live_your_key_here")
# Parse a document
result = client.parse("invoice.pdf")
print(result["result"]["ocr"])
# Extract entities
result = client.extract("invoice.pdf")
print(result["result"]["entities"])
# Always close when done
client.close()Available methods
client.parse(file)— Extract raw text via OCRclient.extract(file)— Extract structured entitiesclient.classify(file)— Classify document typeclient.split(file)— Split multi-document PDFsclient.redact(file)— Redact PII from documentsclient.process(file)— Parse + extract in one callclient.upload_document(file)— Upload via presigned URLclient.close()— Close the HTTP client