POST
/v1/splitCost$0.03/page
Latency~0.5s
hyperbots_vlm_ocr
Step 1: Upload your document — call
POST /v1/documents/upload to get a document_keyRequest
Headers
| Name | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | required | Your HyperAPI key (hk_live_* or hk_test_*). |
X-Async | string | optional | Set to "true" to process asynchronously and receive a job ID. |
Body
| Name | Type | Required | Description |
|---|---|---|---|
document_key | string | required | S3 document key obtained from the presigned upload endpoint (/v1/documents/upload). |
Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
ocr_engine | string | paddle | OCR engine to use for text extraction. |
mode | string | default | Splitting mode. |
Code examples
# Get a document_key first: see POST /v1/documents/upload
curl -X POST "https://apis.hyperbots.com/v1/split?ocr_engine=paddle&mode=default" \
-H "X-API-Key: hk_live_your_key_here" \
-F "document_key=550e8400-e29b-41d4-a716-446655440000"# Get a document_key first: see POST /v1/documents/upload
curl -X POST "https://apis.hyperbots.com/v1/split?ocr_engine=paddle&mode=default" \
-H "X-API-Key: hk_live_your_key_here" \
-F "document_key=550e8400-e29b-41d4-a716-446655440000"Response
200 OK
application/jsonJSON
{
"status": "success",
"request_id": "req_01j9z...",
"task": "split",
"model_used": "hyperbots_vlm_ocr",
"result": {
"segments": [
{ "document_index": 0, "start_page": 1, "end_page": 3, "type": "invoice" },
{ "document_index": 1, "start_page": 4, "end_page": 5, "type": "receipt" }
]
},
"duration_ms": 490,
"metadata": { "pages": 5 }
}