Headers
Your unique subscription key for authenticating requests to the Sarvam AI Speech-to-Text API. " "Here are the steps to get your api key", example="dxxxxxx-bxxx-4xxx-axxx-cxxxxxxxxxxx
Body
Upload the PDF file you want to parse. This should be uploaded as a form input if you're using multipart/form-data Note: Sarvam Parse supports only English PDFs currently.
The page number you want to extract data from. This is a one-based index (meaning, the first page is 1).
The mode of parsing to use:
- small: Use this mode for economical and fast parsing
- large: Use this mode for highest precision parsing
small, large Whether to cache the prompt for the parse request. This is useful when running multiple requests to the parsing endpoint.
true, false Response
Successful Response
The base64 encoded HTML string corresponding to the parsed page. The output will be an empty string if parsing fails for some reason.