Back to API Store
Compute
Live
Paid API
Internal deterministic

Text Analyzer

Text Analyzer models a paid compute API. The buyer sends text, pays per request, and receives structured metadata that can feed another agent step, workflow, or dashboard.

Example use case

An agent pays for a quick text analysis step before saving structured notes into a larger workflow.

Agent reasoning hint

Use this service when the task needs deterministic text metadata and the price is lower than running a heavier model call.

cURL example

Unpaid direct requests to live paid services return HTTP 402 until an agent satisfies the x402 payment requirement.

curl -i -X POST https://veyra-hzipm5uyh-mioku50s-projects.vercel.app/api/premium/compute \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "Agents can buy tiny API calls when the result is worth the price."
}'

Input schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Text content to analyze."
    }
  },
  "required": [
    "text"
  ]
}

Output schema

{
  "type": "object",
  "properties": {
    "summary": {
      "type": "string"
    },
    "word_count": {
      "type": "number"
    },
    "sentence_count": {
      "type": "number"
    },
    "char_count": {
      "type": "number"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "summary",
    "word_count",
    "sentence_count",
    "char_count",
    "timestamp"
  ]
}

Example request

{
  "method": "POST",
  "endpoint": "/api/premium/compute",
  "body": {
    "text": "Agents can buy tiny API calls when the result is worth the price."
  }
}

Example response

{
  "summary": "Input contains 12 words across 1 sentence(s).",
  "word_count": 12,
  "sentence_count": 1,
  "char_count": 68,
  "timestamp": "2026-05-18T10:00:00.000Z"
}