Photo to Coloring Page
Photo to Coloring Page
Photo to Coloring Page API
Photo to Coloring Page API converts photos into clean line art for printable coloring pages, templates, and creative use.
POST
Photo to Coloring Page
Request
- URL:
https://www.ailabapi.com/api/image/effects/photo-to-line-art - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
image | YES | file | Original image. | ||
prompt | NO | string | Prompt (English only). Max 3000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review. | ||
image_size | NO | string | A4 | Output image aspect ratio. Supported values: A4, auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Scope | Description |
|---|---|---|---|
task_type | string | async | Task Type. “async: Asynchronous tasks. |
task_id | string | Asynchronous task ID. Please use this field when calling the Querying Async Task Results API. |
Response Example
Authorizations
API Key for authentication
Body
multipart/form-data
Original image.
- Image format:
JPEGJPGPNGWEBP - Image size: No more than 10 MB.
- Image resolution: Less than 4096x4096px.
Prompt (English only). Max 3000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.
Maximum string length:
3000Output Image Aspect Ratio.
Available options:
A4, auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 Response
200 - application/json
Success
The response is of type object.

