Nebul Docs

Classify

POST
/v1/classify

Classify text against a classification model. The model in the body selects and authorizes the target model.

Authorization

X-API-Key<token>

Project-scoped Nebul API key. Also accepted as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/classify" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "input": "string"  }'
{  "data": [    {}  ]}