NeuroLate

Slice a strip into pages

POST
/ext/v1/slicing

images — consecutive pieces of one webtoon strip, top to bottom. Returns where to cut it into about pages pages. A page is at most 36.25 × width px tall (25,012 px at 690), so there may be more.

Charged per 10,000 px of strip height at 690 px width: api_slicing_find without cut; with cut=true you also get the PNG pages, charged api_slicing_cut instead. Charged up front, refunded if we fail.

Authorization

apiKey
headerAuthorizationBearer <nlk_… (team API key)>

Header Parameters

Idempotency-Key?string

Up to 255 characters, e.g. a UUID. A repeat with the same key is not done: 409 DUPLICATE_REQUEST.

Lengthlength <= 255

Request Body

multipart/form-data
  1. body
images*array<>
pages*integer

Target number of pages.

Range1 <= value <= 500
cut?boolean

Also return the cut pages (paid).

Defaultfalse
width?integer

Strip width the images are scaled to. Default — the most common image width.

Range100 <= value <= 4000
responseFormat?string
Default"url"
Value in"url""base64"

Response Body

Cuts, and pages when cut=true.

application/json
  1. response
requestId?string

Request id — the same as the X-Request-Id header.

Formatuuid
width?integer

Strip width the cuts were computed at (and pages were cut at).

Formatint32
stripHeight?integer

Strip height at that width.

Formatint32
cuts?array<>

Cuts from top to bottom; N cuts = N+1 pages.

pages?array<>|

Ready pages — only when cut=true.

usage?

What the request cost. A line = price item × quantity; cost = sum of lines.

Example Request
curl -X POST 'https://api.neurolate.com/ext/v1/slicing' \  -F 'images=[  "string"]' \  -F 'pages=1'
Example Response
{  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",  "width": 0,  "stripHeight": 0,  "cuts": [    {      "fraction": 0.1,      "stripY": 0,      "image": 0,      "y": 0    }  ],  "pages": [    {      "index": 0,      "width": 0,      "height": 0,      "url": "string",      "expiresAt": "2019-08-24T14:15:22Z"    }  ],  "usage": {    "cost": 0,    "items": [      {        "item": "string",        "name": "string",        "unit": "BLOCK",        "quantity": 0,        "amount": 0      }    ]  }}