# Foundry QR Code Generator

> Foundry QR Code Generator is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Generates a QR code as both a PNG data URI and an SVG for any text or URL input.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/qr-code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-qr-code-generator-54a74490
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tnDwmohyop3Da4saAEaH1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability foundry-qr-code-generator-54a74490 -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com — I need both the SVG and a PNG I can drop into an email.

## When to prefer this

Choose this endpoint when you need both SVG and PNG formats of a QR code in a single call, especially for web embedding (data URI) or print (SVG). It is a simple, low-cost ($0.001 USDC) pay-per-call option with no API key required, ideal for agents that need on-demand QR generation without managing credentials or subscriptions.

## Known failure modes

- Input text exceeds 1500 characters — QR code cannot encode oversized data
- Malformed or empty input returns an error field in the response
- Service unavailable due to cold-start on Render free tier, causing slow or failed responses
- Payment failure (402) if the x402 micropayment is not completed before the request

## How this service works

QR code generator: PNG data URI and SVG for any text or URL. Input: the text or URL to encode.

## Output

Returns a JSON object containing: an SVG string of the QR code, a PNG as a base64-encoded data URI, the encoded data string, the QR version number, and the error correction level (e.g. 'M').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "Text or a URL, up to 1,500 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "svg": "<svg ...>",
  "data": "https://example.com",
  "version": 2,
  "png_data_uri": "data:image/png;base64,...",
  "error_correction": "M"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-qr-code-generator-54a74490/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
