utilpeek: make a 1-D barcode image (SVG or PNG)
make_barcodeGenerate 1-D barcode images (Code128, EAN-13, EAN-8, UPC-A, ISBN-13, Code39) as SVG or PNG; validate checksums and return base64 or a 24-hour URL.
Instructions
utilpeek: make a 1-D barcode image. For QR codes use make_qr_code. Returns svg (text, with width_mm/height_mm) or data_base64 (PNG, with width_px/height_px; output "url": a 24 h link), plus encoded and bytes. A supplied check digit (ean13, ean8, upca, isbn13) must be right: a wrong one is a 422 invalid_checksum (not charged) rather than silently encoding a different number. Encoded locally; typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/barcode-generator-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Value to encode (see the type rules). | |
| text | No | Print the human-readable line (default true). | |
| type | No | Symbology (default code128). | code128 |
| format | No | svg (text) or png (base64). | svg |
| output | No | base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window. | base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | ||
| text | No | ||
| type | No | ||
| bytes | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| format | No | ||
| source | No | ||
| encoded | No | ||
| width_mm | No | ||
| width_px | No | ||
| height_mm | No | ||
| height_px | No | ||
| data_base64 | No | ||
| content_type | No |