utilpeek: make a 1-D barcode image (SVG or PNG)
make_barcodeRead-onlyIdempotent
utilpeek: make a 1-D barcode image. Input: data, optional type, format and text. Returns svg (text, with width_mm/height_mm) or data_base64 (PNG, with width_px/height_px), 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.
Input Schema
TableJSON 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 Schema
TableJSON 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 |