Classify text into predefined categories
Classifies text content into one of the provided predefined labels.
Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
Request parameters for text classification. The model will analyze the text and assign it to one of the provided labels.
ID of the model to use for classification. You can use provider:model format or just the model name with a default provider.
1The text content to classify. Must not be empty.
1Array of possible classification labels. Must contain at least 2 labels. The model will choose one of these labels to assign to the text.
21Optional custom system prompt to guide the classification. Use this to provide additional context or instructions to the model about how to perform the classification.
Response
OK
Response from the text classification endpoint containing the classification result, confidence, and metadata.