{"uid":"cap_NygQyvJYZbMW8_gH_lyd5","slug":"qr-code-svg-generator-5feb3430","name":"QR Code SVG Generator","description":"Generate a QR code as SVG from any text or URL.","url":"https://qr-generator.pdfextractapi.workers.dev/generate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["data"],"properties":{"data":{"type":"string","description":"Text or URL to encode, max 2000 characters."},"error_correction":{"enum":["L","M","Q","H"],"type":"string","description":"Error correction level, default M."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vVtXcfvtqPC1qeTvVxKxu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a QR code as an SVG image from any text or URL string, with configurable error correction level.","exampleAgentPrompt":"Can you generate a QR code SVG for https://myshop.com/menu? Use high error correction so it still scans even if part of it gets damaged.","exampleUseCases":[{"title":"QR code for restaurant menu","prompt":"Create a QR code SVG for https://tacopalace.com/menu so I can put it on table cards — use high error correction level so it scans even if the card gets a bit dirty."},{"title":"Business card URL QR code","prompt":"Generate a QR code for https://linkedin.com/in/janedoe that I can add to my business card design — standard error correction is fine."},{"title":"Wi-Fi credentials QR code","prompt":"Make a QR code SVG for the text WIFI:T:WPA;S:HomeNetwork;P:mypassword123;; so guests can scan it to connect automatically."}],"resultDescription":"Returns a QR code encoded as an SVG vector graphic representing the input text or URL, suitable for embedding in web pages, documents, or print materials. The SVG is scalable without quality loss and encodes the provided data with the specified error correction level (L, M, Q, or H).","failureModes":["Input data exceeds 2000 characters — request rejected","Invalid error_correction value outside L/M/Q/H enum — validation error","Empty or missing 'data' field — required field error","Malformed request body — HTTP 400 bad request","Payment not provided or insufficient — HTTP 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need a QR code as a scalable SVG vector format, particularly for print materials, web embedding, or documents where resolution independence matters. Prefer this over raster-format QR generators when you need clean scaling at any size. The configurable error correction level (L through H) makes it suitable for use cases ranging from clean digital displays (L) to physical labels that may be partially obscured (H).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:48.286Z","isFirstParty":false}