2.9 Hyper Pdf
The HyperPdf endpoint enables users to ask questions related to a PDF document identified by its source ID. The system verifies if the user has sufficient credits before processing the question.
Endpoint
https://sdk.hypergpt.ai/hyperPdfParams:
Example Request:
headers = {
"Authorization": "Bearer " + bearer_token,
}
params= {
"question": question,
}
files = {
"file": (file.filename, file.file, file.content_type)
}
response = requests.post(
"https://sdk.hypergpt.ai/hyperPdf",
headers=headers,
params=params,
files=files
)
return response.json()Example Response (Success):
Example Response (Error):
Last updated