RS Infer
Server Endpoints

/v1/classify/zero-shot

Identical to `POST /classify/zero-shot`.

POST
/v1/classify/zero-shot

Identical to POST /classify/zero-shot.

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/zero-shot" \  -H "Content-Type: application/json" \  -d '{    "input": "string",    "candidate_labels": [      "string"    ]  }'
{  "object": "classification",  "model": "string",  "labels": [    "string"  ],  "scores": [    0.1  ],  "usage": {    "prompt_tokens": 0,    "total_tokens": 0  }}