GET /v1/image-captionImage Caption / Meme Generator
Image Utils lf-image-utils
Puts caption text on a picture to make a meme. Takes an image URL plus optional top_text and bottom_text. Returns SVG overlay markup, an SVG data URI, and the rendering method.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Source image URL |
top_text | string | No | Top caption text |
bottom_text | string | No | Bottom caption text |
Response Schema
svg (string): SVG overlay markup
data_uri (string): SVG data URI
method (string): Rendering method
cURL Example
curl 'https://lf-image-utils.laminarforge.dev/v1/image-caption?url=<url>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-image-utils.laminarforge.dev/v1/image-caption'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': '<url>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())