POST
/
api
/
v1
/
get_pdf_content
PDF Content API
curl --request POST \
  --url https://api.llmlayer.dev/api/v1/get_pdf_content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>"
}'
{
"text": "<string>",
"pages": 123,
"url": "<string>",
"status_code": 123,
"cost": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Format: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
url
string
required

Direct URL to PDF document

Response

Extracted PDF content

text
string

Extracted text content from PDF

pages
integer

Number of pages in the PDF

url
string

The PDF URL

status_code
integer

HTTP status code (200 for success)

cost
number

Cost in USD ($0.005)