---
title: "Text Classification (x402)"
method: GET
path: "/x402/v2/classify-text"
tags: ["x402"]
---

# Text Classification (x402)

`GET /x402/v2/classify-text`

## Request

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

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

## Query parameters

- `text` string, required: Text to classify
- `categories` unknown[]: Optional list of categories to classify into
  - unknown

## Response `200`

Success

- object
  - `confidence` number
  - `all_categories` unknown[]
    - unknown
  - `topic_keywords` unknown[]
    - unknown
  - `primary_category` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
