# 2.4 Hyper Extract

**Method:** `POST`

```
https://sdk.hypergpt.ai/hyperExtract
```

**Headers:**

<table data-header-hidden><thead><tr><th width="343">Key</th><th>Value</th></tr></thead><tbody><tr><td>Bearer Token</td><td>new_user_token</td></tr></tbody></table>

**Files:**

* **file** (UploadFile): The image file to be processed for text and label extraction.

**Example Request:**

```python
headers = {
    "Authorization": "Bearer " + bearer_token
}
files = {
    "file": (file.filename, file.file, file.content_type)
}

response = requests.post(
    "https://sdk.hypergpt.ai/hyperExtract",
    headers=headers,
    files=files 
)

return response.json()
```

**Example Response (Success):**

```json
{
  "ocr": [
    "Extracted text from the image"
  ]
}
```

**Example Response (File Upload Error):**

```json
{
    "message": "There was an error uploading the file"
}
```

**Example Response (Error):**

```json
{
    "detail": "Credit not enough"
}
```
