Convert a list of texts into QR code PNG images in one request
Send a list of texts — website addresses, phone numbers, plain words, WiFi details, anything — and get back a ready-to-use QR code image for each one. Every QR code comes as a base64-encoded PNG you can drop straight into a webpage or save to disk. Great for marketing campaigns, event tickets, product labels, menus, or any situation where you need many QR codes in one go. Empty entries are quietly skipped. Each input is limited to 700 characters. You must send at least one non-empty entry.
https://qr-code-generator.underscoredone.com/generate$0.01 per request — pay via x402/USDC. No account needed.
POST a JSON body with a key 'texts' containing an array of strings. Each string becomes one QR code. The response is an array of objects in the same order as the non-empty inputs, each containing 'text' (the original string) and 'qr_base64' (a data URI string starting with 'data:image/png;base64,' ready for use in an HTML img src or file save). Strings longer than 700 characters or that are empty after stripping whitespace are rejected with a 400 error identifying the offending index. The output is fully deterministic: the same input text always produces the same base64 PNG. Use the 'size' parameter (integer, pixels, default 600, range 100–1200) to control image width. Use 'error_correction' parameter (L, M, Q, H — default H) to control scan reliability.
| Name | Type | Required | Description |
|---|---|---|---|
texts | array | yes | The list of things you want turned into QR codes — website addresses, phone numbers, plain text, WiFi credentials, anything you like. Each entry must be 700 characters or fewer. Empty entries are skipped. At least one real entry is required. |
size | integer/null | no | How wide (and tall — QR codes are square) the output image should be, measured in pixels. Must be between 100 and 1200. Defaults to 600 if you leave it out. |
error_correction | string/null | no | How much damage or dirt the QR code can survive and still scan correctly. Choose L (least tough, smallest code), M, Q, or H (most tough, slightly larger code). Defaults to H, which is best for printed labels or stickers. |
{
"api_version": "1.0.0",
"count": 2,
"results": [
{
"text": "https://example.com",
"qr_base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYCAYAAAC+ZpjcAA..."
},
{
"text": "Phone: +1-800-555-0199",
"qr_base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYCAYAAAC+ZpjcAA..."
}
]
}
| Status | Meaning |
|---|---|
400 | Bad request — your input failed validation or could not be processed. Check the detail field for specifics. |
402 | Payment required. Send a signed USDC payment on Base Mainnet or Solana Mainnet using the x402 protocol. |
422 | Unprocessable — a required field is missing or the wrong type. Check the detail field for specifics. |