x402
utility

PDF text extraction API for agents: extract bounded UTF-8 text from one caller-supplied PDF for $0.003 USDC via x402. Local first-party parsing with SHA-256 receipt; temporary files are cleaned on normal completion, with no URL fetch; scanned-image OCR is a separate product.

Changed on
post/api/v1/x402/pdf-text

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/pdf-text
  • Auth: none declared

Request body

pdf_base64string required

One base64-encoded PDF up to 4 MiB decoded; application/pdf data URIs are accepted.

file_base64string

Alias for pdf_base64.

max_charsinteger

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

schema'delx/pdf-text/v1' required
scope'pdf_text' required
document_idstring required
input_sha256string required
output_sha256string required
bytesinteger required
textstring required
charsinteger required
pages_observedinteger required
truncatedboolean required
provider'first-party' required
model'poppler-pdftotext' required
upstream_cost_usd0
sale_price_usdc0.003 required
gross_margin_floor_usd0.0028425

Legacy name for estimated marginal margin under the host allocation; not a guaranteed or realized floor.

attributionstring

Changes