{
  "service": "NoJunk AI Text",
  "description": "Pay-per-call text intelligence for agents: summarize any text (paragraph, bullets or TL;DR, in any language), extract named fields into strict JSON (null for anything not in the text, nothing invented), or classify text into your own labels. Up to 24,000 characters per call. You are only charged when a valid result is returned.",
  "openapi": "https://nojunk-ai-text.mick8511.workers.dev/openapi.json",
  "endpoints": {
    "/summarize": {
      "method": "POST",
      "url": "https://nojunk-ai-text.mick8511.workers.dev/summarize",
      "price": "$0.005 USDC on Base per request (x402)",
      "description": "Summarize text as a paragraph, bullet points or a TL;DR, in any language, with a sentence limit.",
      "example_body": {
        "text": "Acme Corp reported third-quarter revenue of $4.2 billion on Tuesday, up 12% from a year earlier, and raised its full-year outlook. CEO Jane Doe said demand for its cloud products remained strong, while hardware sales fell 3%. Shares rose 5% in after-hours trading.",
        "style": "bullets",
        "max_sentences": 3,
        "language": "en"
      }
    },
    "/extract": {
      "method": "POST",
      "url": "https://nojunk-ai-text.mick8511.workers.dev/extract",
      "price": "$0.005 USDC on Base per request (x402)",
      "description": "Extract named fields from text into strict JSON; null for anything the text does not state, nothing invented.",
      "example_body": {
        "text": "Acme Corp reported third-quarter revenue of $4.2 billion on Tuesday, up 12% from a year earlier, and raised its full-year outlook. CEO Jane Doe said demand for its cloud products remained strong, while hardware sales fell 3%. Shares rose 5% in after-hours trading.",
        "fields": {
          "company": "Company name",
          "revenue": "Reported revenue as stated",
          "revenue_growth_pct": "Year-over-year revenue growth in percent, as a number",
          "ceo": "Name of the CEO",
          "headquarters": "City of the headquarters"
        }
      }
    },
    "/classify": {
      "method": "POST",
      "url": "https://nojunk-ai-text.mick8511.workers.dev/classify",
      "price": "$0.002 USDC on Base per request (x402)",
      "description": "Classify text into one (or several) of your own labels; the answer is always one of the labels you gave.",
      "example_body": {
        "text": "Acme Corp reported third-quarter revenue of $4.2 billion on Tuesday, up 12% from a year earlier, and raised its full-year outlook. CEO Jane Doe said demand for its cloud products remained strong, while hardware sales fell 3%. Shares rose 5% in after-hours trading.",
        "labels": [
          "earnings",
          "merger",
          "product launch",
          "lawsuit",
          "other"
        ],
        "multi": false
      }
    }
  },
  "models": {
    "primary": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
    "fallback": "@cf/qwen/qwen2.5-coder-32b-instruct"
  },
  "limits": {
    "max_text_chars": 24000,
    "max_fields": 20,
    "max_labels": 20,
    "max_request_bytes": 262144
  },
  "no_charge_on": [
    "400 invalid input",
    "413 text too long",
    "502 AI model unavailable or unusable result"
  ],
  "configured": true,
  "facilitator": "cdp"
}