NeuroLate

Find text color and effects

POST
/ext/v1/styles

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

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<>
masks?string

Text blocks, JSON text (see the overview).

language?Language

Source language, not UND. Required when some image has no masks.

Value in"AR""AZ""BE""BG""BN""BS""CS""DA""DE""EL""EN""ES""ET""FA""FI""FR""HE""HI""HR""HU""HY""ID""IT""JA""KA""KK""KO""KY""LT""LV""MK""MN""MR""MS""NE""NL""NO""PL""PT""RO""RU""SK""SL""SQ""SR""SV""SW""TA""TE""TG""TH""TL""TR""UK""UND""UR""UZ""VI""ZH"
kind?string

Applies to every image; default — by size (see the overview).

Value in"BLOCK""PAGE"

Response Body

Blocks of every image with their color and effects.

application/json
  1. response
requestId?string

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

Formatuuid
images?array<>
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/styles' \
  -F 'images=[
  "string"
]'
Example Response
{
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "images": [
    {
      "index": 0,
      "width": 0,
      "height": 0,
      "kind": "BLOCK",
      "masks": "CLIENT",
      "blocks": [
        {
          "number": 0,
          "mask": [
            {
              "outer": [
                [
                  0
                ]
              ],
              "exclude": [
                [
                  [
                    0
                  ]
                ]
              ]
            }
          ],
          "bbox": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          },
          "textColor": "string",
          "effects": [
            {
              "kind": "STROKE",
              "color": "string",
              "color2": "string",
              "direction": 0,
              "size": 0
            }
          ],
          "error": {
            "code": "string",
            "message": "string"
          }
        }
      ],
      "error": {
        "code": "string",
        "message": "string"
      }
    }
  ],
  "usage": {
    "cost": 0,
    "items": [
      {
        "item": "string",
        "name": "string",
        "unit": "BLOCK",
        "quantity": 0,
        "amount": 0
      }
    ]
  }
}