Skip to main content
POST
zero-shot-classification

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for zero-shot-classification models

text
string
required
Example:

"One day I will see the world"

candidate_labels
string[]
required
Example:

Response

Successful zero-shot-classification response.

error
string | null
required

Null on success; otherwise an error message.

output
object
required

Successful response with text-classification sequence, labels, and scores

Example: