Slice a strip into pages
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.
apiKeyAuthorizationBearer <nlk_… (team API key)>Idempotency-Key?stringUp to 255 characters, e.g. a UUID. A repeat with the same key is not done: 409 DUPLICATE_REQUEST.
length <= 255multipart/form-data- body
images*array<>pages*integerTarget number of pages.
1 <= value <= 500cut?booleanAlso return the cut pages (paid).
falsewidth?integerStrip width the images are scaled to. Default — the most common image width.
100 <= value <= 4000responseFormat?string"url""url""base64"Cuts, and pages when cut=true.
application/json- response
requestId?stringRequest id — the same as the X-Request-Id header.
uuidwidth?integerStrip width the cuts were computed at (and pages were cut at).
int32stripHeight?integerStrip height at that width.
int32cuts?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.
curl -X POST 'https://api.neurolate.com/ext/v1/slicing' \ -F 'images=[ "string"]' \ -F 'pages=1'{ "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 } ] }}Get a logged request GET
Outcome, input summary and cost (usage). The log is kept for 90 days. Free. **Access:** Requests made with any key of the same team are visible.
Find text color and effects POST
Main text color and effects (stroke, glow, shadow, gradient) of every text block. **Color webtoons only**: on black-and-white manga the results are unreliable, and still charged. Blocks — your `masks`; for an image without masks we find them: on a BLOCK — the text inside it, on a PAGE — OCR blocks where text was read. Billing per block without `error`: `api_styles`. A block we found adds `api_ocr_mask`: 1 on a BLOCK image, 2 on a PAGE. Before the work a hold is charged, after it the actual cost (see Billing).