AgentAPIGate
Back to Catalog
GET /v1/docs/pdf/to_markdownPack: search·MCP Tool: docs_pdf_to_markdown

PDF Document URL to Clean LLM Markdown Extractor

Fetch any public PDF URL (SSRF-guarded, up to 10 MB) and convert multi-page PDF documents, papers, filings, and manuals into clean structured Markdown.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Public http/https URL of the PDF document to convert to Markdown
Optional alias for pdf_url
Maximum Markdown characters returned (1000-24000)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/docs/pdf/to_markdown" \
  --data-urlencode "pdf_url=https://arxiv.org/pdf/1706.03762.pdf" \
  --data-urlencode "max_chars=18000" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-98% tokens
# PDF Document URL to Clean LLM Markdown Extractor (`docs.pdf.to_markdown`)
**Title**: Provided proper attribution is provided, Google hereby grants permission to
**URL**: https://arxiv.org/pdf/1706.03762

# Provided proper attribution is provided, Google hereby grants permission to

_15 pages_

## Page 1

Provided proper attribution is provided, Google hereby grants permission to
reproduce the tables and figures in this paper solely for use in journalistic or
scholarly works.
Attention Is All You Need
Ashish Vaswani∗
Google Brain
avaswani@google.com
Noam Shazeer∗
Google Brain
noam@google.com
Niki Parmar∗
Google Research
nikip@google.com
Jakob Uszkoreit∗
Google Research
usz@google.com
Llion Jones∗
Google Research
llion@google.com
Aidan N. Gomez∗ †
University of Toronto
aidan@cs.toronto.edu
Łukas…

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: docs.pdf.to_markdown · Method: GET
ParameterTypeReqSample / DefaultDescription
pdf_urlstringoptionalhttps://arxiv.org/pdf/1706.03762.pdfPublic http/https URL of the PDF document to convert to Markdown
urlstringoptional—Optional alias for pdf_url
max_charsnumberoptional18000Maximum Markdown characters returned (1000-24000)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Tooldocs_pdf_to_markdownOAuth 2.1 Hub & /mcp/search
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency442 ms$0 billed on empty or 4xx/5xx
Token Economy9426t → 201t (-98%)Partner credit: eligible

More Search & Web Real-Time APIs

Frequently Asked Questions

How do I call PDF Document URL to Clean LLM Markdown Extractor (docs.pdf.to_markdown) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/docs/pdf/to_markdown with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool docs_pdf_to_markdown on https://mcp.agentapigate.ai/mcp.

What does docs.pdf.to_markdown cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on docs.pdf.to_markdown?

Passing ?format=md transforms the response into normalized Markdown (~201 tokens vs ~9426 raw tokens, saving 98% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only search endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["search"], optional allowed_endpoints: ["docs.pdf.to_markdown"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.