Skip to main content
POST
token-classification

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for token-classification models

text
string
required

The input text

Example:

"John Doe is a software engineer at Google"

Response

Successful token-classification response.

error
string | null
required

Null on success; otherwise an error message.

output
array
required

Successful response with classified tokens

Example: