Docs/Image Utils/GET /v1/barcode-generate

GET /v1/barcode-generateGenerate barcode

Image Utils lf-image-utils

Turns text into a scannable barcode picture. Generates an SVG barcode (code128-style) from input text. Max 50 characters input.

Query Parameters

ParameterTypeRequiredDescription
inputstringYesText to encode (max 50 chars)

Response Schema

success (boolean): Operation success
format (string): Barcode format
text (string): Encoded text
svg (string): SVG markup
bars (integer): Number of bars

cURL Example

curl 'https://lf-image-utils.laminarforge.dev/v1/barcode-generate?input=<input>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-image-utils.laminarforge.dev/v1/barcode-generate'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'input': '<input>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())