{"uid":"cap_WODxqfB0fEUVVN-QKuxDu","slug":"fittings-qr-code-encoder-48455aab","name":"fittings QR Code Encoder","description":"Encode text, a URL or a payment string as a QR code, returned as SVG, a base64 PNG, or the raw module matrix.","url":"https://fittings.sh/v1/qr/encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Payload to encode, up to 271 UTF-8 bytes"},"scale":{"type":"number","description":"Pixels per module, 1 to 15, default 8"},"format":{"enum":["svg","png","matrix"],"type":"string","description":"Default svg"},"ecLevel":{"enum":["L","M","Q","H"],"type":"string","description":"Error correction level, default M"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","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.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WIiA0Q6bQwqCo0n2jq5uK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes text, URLs, or payment strings as QR codes returned as SVG, base64 PNG, or raw module matrix","exampleAgentPrompt":"Can you generate a QR code for https://myshop.example.com/checkout as a PNG at scale 10 with high error correction, so I can print it on a poster?","exampleUseCases":[{"title":"QR code for a restaurant menu","prompt":"Make a QR code SVG for https://menusite.com/bistro-du-coin that I can put on table tents — use scale 8 and medium error correction."},{"title":"Payment string QR for crypto checkout","prompt":"Encode this Lightning payment string as a QR code PNG at scale 6 with high error correction: lnbc500n1p3zkhp3pp5xyz..."},{"title":"Raw matrix for custom QR renderer","prompt":"Give me the raw module matrix for the text 'Hello, World!' with low error correction so I can render it myself in my app."}],"resultDescription":"Returns the QR code in the requested format: an SVG string, a base64-encoded PNG image, or a 2D boolean module matrix representing the QR code grid. The output encodes the provided text payload at the specified scale and error correction level.","failureModes":["Payload exceeds 271 UTF-8 bytes — returns validation error","Invalid scale value outside 1–15 range","Unsupported format enum value","Payment failure or insufficient USDC balance for x402 call","Malformed JSON request body"],"whenToPreferThis":"Choose this endpoint when you need a quick, hosted QR code generation service that supports multiple output formats (SVG, PNG, matrix) and is accessible via a paid API with per-call pricing. It is especially useful when integrating QR codes into automated agent workflows, payment flows (Lightning/crypto URIs), or when you need the raw module matrix for custom rendering pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:05:11.819Z","isFirstParty":false}