Skip to main content

Introduction

LLMWhisperer APIs are a set of APIs that allow you to:

  • Convert your complex PDF documents and scanned documents to text format which can be used with LLMs
  • Get bounding box details of search terms in the document. This can be used to highlight the search terms in your frontend application

The APIs are RESTful and can be easily integrated into your existing systems.

API Endpoints

EndpointDescription
/whisperConvert your PDF/Scanned documents to text format which can be used by LLMs
/whisper-statusGet the status of the conversion process. This can be used to check the status of the conversion process when the conversion is done in async mode
/whisper-retrieveRetrieve the text of the document. This can be used to retrieve the text of the document when the conversion is done in async mode
/highlight-dataGet bounding box details of search terms in the document. This can be used to highlight the search terms in your frontend application. This requires the conversion to be done with the store_metadata_for_highlighting parameter set to true
/get-usage-infoGet usage metrics for your account.

Base URL

The base URL for the APIs is https://llmwhisperer-api.unstract.com/v1

Authentication

All the APIs require an API key to be passed in the header. You can get your API key by signing up for LLMWhisperer. The API key is passed in the header as unstract-key.

Curl example:

curl -X GET --location 'https://llmwhisperer-api.unstract.com/v1/get-usage-info' \
-H 'unstract-key: <PASTE YOUR API KEY>'

Metering

The APIs are metered based on the number of pages processed. You can get the usage metrics by calling the /get-usage-info API endpoint.