{"uid":"cap_86h4G0jwHGWEcYObX9Z7B","slug":"delx-commerce-qr-code-generator-a38df38b","name":"Delx Commerce — QR Code Generator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/qr-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","maxLength":2048,"minLength":1,"description":"Text or URL to encode. Delx never fetches or validates the destination."},"text":{"type":"string","maxLength":2048,"minLength":1,"description":"Alias for data."},"border":{"type":"integer","default":4,"maximum":16,"minimum":0},"format":{"enum":["png","svg"],"type":"string","default":"png"},"box_size":{"type":"integer","default":4,"maximum":8,"minimum":1},"error_correction":{"enum":["L","M","Q","H"],"type":"string","default":"M"}}},"responseSchema":{"type":"json","example":{"bytes":438,"model":"qrcode-python","qr_id":"qr_8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f","scope":"qr_code","format":"png","schema":"delx/qr-code/v1","sha256":"8b4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f901234567890abcdef1234567890ab","modules":33,"version":2,"data_uri":"data:image/png;base64,<bounded-png>","provider":"first-party","media_type":"image/png","attribution":"QR rendered locally by Delx; the encoded destination is supplied by the caller and is not fetched or validated.","input_sha256":"a6e8f7c3d9b2a1e0f6c5d4b3a29180706050403020100ffeeddccbbaa99887766","sale_price_usdc":0.001,"error_correction":"M","gross_margin_usd":0.001,"upstream_cost_usd":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zBg-55eYqPN1rHUpr499-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a QR code image (PNG or SVG) encoding any text or URL, returned as a base64 data URI, for $0.001 USDC per call via x402.","exampleAgentPrompt":"Generate a QR code for https://myshop.example.com/checkout in PNG format with high error correction and a border of 4 — I need it as an image I can embed on a webpage.","exampleUseCases":[{"title":"QR code for product landing page","prompt":"Make a QR code for https://acmecorp.com/product/launch in PNG format with H error correction so it still scans if the printout is a bit smudged — I want to put it on a flyer."},{"title":"Wi-Fi password QR code for a cafe","prompt":"Generate a QR code encoding the text WIFI:S:CoffeehouseGuest;T:WPA;P:Latte2024;; as a PNG with border 4 and medium error correction, so my customers can scan and connect instantly."},{"title":"SVG QR code for a business card","prompt":"Can you create an SVG QR code for my LinkedIn profile URL https://linkedin.com/in/janedoe with a box size of 6 and low error correction? I need the vector format so it scales cleanly on a printed card."}],"resultDescription":"A JSON object containing: a base64-encoded data URI of the QR code image (PNG or SVG), the QR version and module count, SHA-256 hashes of both the output image and the input data, the format and media type, the model used (qrcode-python), the sale price in USDC, and an attribution note. The data URI can be embedded directly in HTML or saved as an image file.","failureModes":["Empty or missing 'data'/'text' field — returns validation error","Input text exceeds 2048 characters — returns maxLength validation error","Invalid 'format' value (not 'png' or 'svg') — returns enum validation error","Invalid 'error_correction' value — returns enum validation error","'box_size' or 'border' out of allowed range — returns range validation error","Payment failure or insufficient USDC balance via x402 — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, pay-per-use QR code generation with no account signup, cryptographic proof of delivery (SHA-256), and USDC micropayment settlement on Base or Solana via x402. Ideal for AI agents that need to generate QR codes on-demand without managing API keys or subscriptions. Prefer this over free tier services when auditability and on-chain payment receipts matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.975Z","isFirstParty":false,"canonicalSlug":"delx-commerce-qr-code-generator-a38df38b"}