Layerize Text

Analyzes an image to detect text regions, then returns each detected text block with its position, content, font information, and styling. The response includes a text-erased base image (background with all text removed) and a flat list of detected text blocks. Supported image formats include JPEG, PNG, and WebP (max size 10MB). Image links are available for a limited period of time; if you would like to keep the image, you must download it.

Authentication

Api-Keystring

API key for access control. Use in the header with the name “Api-Key”

Request

A request to detect and extract text layers from an image.
imagefileRequired

The image to analyze for text detection. The image should be in JPEG, PNG, or WebP format (max size 10MB).

promptstringOptional

An optional text description of the image. If not provided, a description will be auto-generated from the image.

seedintegerOptional0-2147483647
Random seed. Set for reproducible generation.

Response

Text layers detected and extracted successfully.
base_image_urlstringformat: "uri"
URL of the image with all detected text removed.
seedinteger0-2147483647
Random seed. Set for reproducible generation.
original_image_urlstring or nullformat: "uri"
URL of the original image with text intact.

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error