Skip to main content
POST
/
api
/
image
/
effects
/
photo-to-line-art
Photo to Coloring Page
curl --request POST \
  --url https://www.ailabapi.com/api/image/effects/photo-to-line-art \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form image='@example-file' \
  --form 'prompt=<string>' \
  --form image_size=A4
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "async",
  "task_id": ""
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required

Original image.

  • Image format: JPEG JPG PNG WEBP
  • Image size: No more than 10 MB.
  • Image resolution: Less than 4096x4096px.
prompt
string

Prompt (English only). Max 3000 characters; extra text will be automatically truncated. Use standard vocabulary to pass review.

Maximum string length: 3000
image_size
enum<string>
default:A4

Output 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.