Docs/Image Utils/GET /v1/image-ascii

GET /v1/image-asciiConvert image to ASCII art

Image Utils lf-image-utils

Turns a picture into art made of typed characters. Converts an image to ASCII art with configurable width and character set.

Query Parameters

ParameterTypeRequiredDescription
datastringYesBase64 image data or URL
widthintegerNoOutput width in chars
charsetstringNoCharacter set

Response Schema

success (boolean): Operation success
source (string): Source type
width (integer): Output width
charset (string): Character set used
art (string): ASCII art output

cURL Example

curl 'https://lf-image-utils.laminarforge.dev/v1/image-ascii?data=<base64_data>&width=60' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

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