{"uid":"cap_DlaCrQEmXHDzjilYkLPir","slug":"qr-code-generator-x402-forgemesh-io-75686c0c","name":"QR Code Generator (x402.forgemesh.io)","description":"QR code generator API: turn any text or URL (up to 2000 characters) into a scannable PNG QR code, returned as base64 — size configurable 128-1024px, medium error correction. Generated locally in milliseconds; input never stored. Use for payment links, event tickets, Wi-Fi sharing, onboarding flows, and print materials.","url":"https://x402.forgemesh.io/generate-qr-code","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","description":"Text or URL to encode, max 2000 chars"},"size":{"type":"string","description":"PNG width in px, default 512"}}},"responseSchema":{"type":"json","example":{"file_base64":"iVBORw0KGgo...","content_type":"image/png","encoded_characters":25}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eg39bYN-NcapqZE3A6Hrj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any text or URL (up to 2000 characters) into a scannable PNG QR code returned as a base64-encoded image, with configurable size from 128–1024px.","exampleAgentPrompt":"Can you generate a QR code for https://pay.example.com/invoice/12345 at 512px so I can drop it into a PDF invoice?","exampleUseCases":null,"resultDescription":"A base64-encoded PNG image of the QR code, ready to embed in HTML (as a data URI), decode to a file, or pass to a print pipeline. The image encodes the submitted text or URL with medium error correction at the requested pixel size.","failureModes":["Input text exceeds 2000 characters — request rejected","Invalid or out-of-range size parameter (below 128 or above 1024px) — may return error or default","Malformed request body — 400-level error","Payment failure or insufficient USDC balance — 402 Payment Required","Service temporarily unavailable — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, privacy-preserving QR code generated server-side without storing the input — ideal for payment links, tickets, or onboarding flows where latency must be minimal and data sensitivity is a concern. Prefer it over client-side libraries when you need a consistent base64 PNG output suitable for embedding in documents, emails, or print pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:17.549Z","isFirstParty":false}