x402

Text Classification (x402)

Classify text into categories. Optionally provide custom categories. Returns primary category, confidence scores, topic keywords, and summary.

get/x402/v2/classify-text

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/classify-text
  • Auth: none required

Query parameters

textstring required

Text to classify

unknown

Response

Success

confidencenumber
primary_categorystring

Example response

{
  "summary": "A statement describing sample text used for validating automated testing capabilities and system functionality.",
  "confidence": 0.85,
  "all_categories": [
    {
      "category": "Software Testing",
      "confidence": 0.85
    },
    {
      "category": "Quality Assurance",
      "confidence": 0.72
    },
    {
      "category": "Technical Documentation",
      "confidence": 0.58
    },
    {
      "category": "Automation",
      "confidence": 0.65
    }
  ],
  "topic_keywords": [
    "test input",
    "automated testing",
    "capability testing",
    "QA"
  ],
  "primary_category": "Software Testing",
  "detected_language": "English"
}

Changes

No recorded changes to this operation across all 1 revision of this API.