{"openapi":"3.1.0","info":{"title":"qr-gen","version":"1.1.0","description":"QR code generator API: URL, text, WiFi and vCard to crisp SVG (or JSON with data URL). Custom size, colors, margin and error correction L/M/Q/H; bulk up to 20. $0.001 per call via x402 (USDC on Base). Free demo, no account.","x-guidance":"Generates a QR code. Input: text or URL (or type=wifi/vcard fields), size, ecc, colors. Output: SVG image, or JSON with data URL when format=json. Call when an agent must hand a scannable code to a user.","contact":{"name":"Space Command Kits","email":"spacecommand+circle@mail.grokbot.com","url":"https://qr-gen.restockalarm.workers.dev/"}},"externalDocs":{"description":"Docs, free demo and pricing","url":"https://qr-gen.restockalarm.workers.dev/"},"servers":[{"url":"https://qr-gen.restockalarm.workers.dev"}],"paths":{"/v1/qr":{"get":{"operationId":"getV1Qr","summary":"QR code as SVG (or JSON with data URL) for text/URL/WiFi/vCard","description":"QR code as SVG (or JSON with data URL) for text/URL/WiFi/vCard. $0.001 USDC per call via x402 (Base or Polygon).","x-guidance":"Generates a QR code. Input: text or URL (or type=wifi/vcard fields), size, ecc, colors. Output: SVG image, or JSON with data URL when format=json. Call when an agent must hand a scannable code to a user.","tags":["qr-gen"],"parameters":[{"name":"text","in":"query","required":false,"description":"Text or URL","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"text|wifi|vcard","schema":{"type":"string"}},{"name":"size","in":"query","required":false,"description":"64–2048 px","schema":{"type":"string"}},{"name":"ecc","in":"query","required":false,"description":"L|M|Q|H","schema":{"type":"string"}},{"name":"fg","in":"query","required":false,"description":"hex color","schema":{"type":"string"}},{"name":"bg","in":"query","required":false,"description":"hex color","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"svg|json","schema":{"type":"string"}}],"x-payment-info":{"price":{"mode":"fixed","currency":"USDC","amount":"0.001000"},"protocols":[{"x402":{}}],"networks":["eip155:8453","eip155:137"],"payTo":"0x7B97303d62517eA9E26D1E1b199Eac42a487F430"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"data":"https://example.com","ecc":"M","version":2,"size":256,"data_url":"data:image/svg+xml;base64,…"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment Required (x402)"}}}},"/v1/bulk":{"post":{"operationId":"postV1Bulk","summary":"Up to 20 QR codes in one call (JSON with SVG data URLs)","description":"Up to 20 QR codes in one call (JSON with SVG data URLs). $0.01 USDC per call via x402 (Base or Polygon).","x-guidance":"Generates a QR code. Input: text or URL (or type=wifi/vcard fields), size, ecc, colors. Output: SVG image, or JSON with data URL when format=json. Call when an agent must hand a scannable code to a user.","tags":["qr-gen"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"items":[{"text":"https://a.com"},{"type":"wifi","ssid":"Cafe","password":"x"}]}}}},"x-payment-info":{"price":{"mode":"fixed","currency":"USDC","amount":"0.010000"},"protocols":[{"x402":{}}],"networks":["eip155:8453","eip155:137"],"payTo":"0x7B97303d62517eA9E26D1E1b199Eac42a487F430"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true},"example":{"count":2,"results":[{"data_url":"data:image/svg+xml;base64,…"}]}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment Required (x402)"}}}}}}