x402
utility

QR code generation API for agents at $0.001 USDC. Call when you need a PNG or SVG QR from text or a URL for tickets, onboarding links, or receipts—without installing a QR library. Returns a self-contained data URI plus SHA-256 receipt via x402 on Base or Solana; the encoded destination is never fetched or validated. No API key, no subscription.

post/api/v1/x402/qr-code

Request

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

Request body

datastring required

Text or URL to encode; it is not fetched or validated.

textstring

Alias for data.

format'png' | 'svg'
error_correction'L' | 'M' | 'Q' | 'H'
box_sizeinteger
borderinteger

Response

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

schema'delx/qr-code/v1' required
scope'qr_code' required
qr_idstring required
format'png' | 'svg' required
media_typestring required
data_uristring required
bytesinteger required
sha256string required
input_sha256string required
versioninteger required
modulesinteger required
error_correctionstring required
provider'first-party' required
model'qrcode-python' required
upstream_cost_usd0
sale_price_usdc0.001 required
gross_margin_usdnumber
attributionstring

Changes

No recorded changes to this operation across all 1 revision of this API.