81trust / 100

Text Summarize

by NetIntel in News & content

x402 APIPassing, checked 5 h ago

Text summarizer / summarization API — condense text, Markdown, or a URL into a TL;DR plus key bullet points using Claude Haiku. Accepts raw text or a URL (fetched and extracted), enforces an input cap, and returns a clean structured summary so agents can compress documents and articles in one call.

POST https://netintel.dev/text-summarize

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 187 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://netintel.dev/text-summarize" \
  -H "content-type: application/json" \
  -d '{"text":"The James Webb Space Telescope has captured its deepest infrared image of the universe to date, revealing thousands of galaxies in a tiny patch of sky. The image, known as Webb's First Deep Field, shows galaxy cluster SMACS 0723 as it appeared 4.6 billion years ago. The combined mass of this cluster acts as a gravitational lens, magnifying far more distant galaxies behind it. Astronomers say the image will help them understand galaxy formation in the early universe."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnetintel.dev%2Ftext-summarize
const res = await pay("https://netintel.dev/text-summarize", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"The James Webb Space Telescope has captured its deepest infrared image of the universe to date, revealing thousands of galaxies in a tiny patch of sky. The image, known as Webb's First Deep Field, shows galaxy cluster SMACS 0723 as it appeared 4.6 billion years ago. The combined mass of this cluster acts as a gravitational lens, magnifying far more distant galaxies behind it. Astronomers say the image will help them understand galaxy formation in the early universe."}),
});
console.log(await res.json());

Example input

{
  "text": "The James Webb Space Telescope has captured its deepest infrared image of the universe to date, revealing thousands of galaxies in a tiny patch of sky. The image, known as Webb's First Deep Field, shows galaxy cluster SMACS 0723 as it appeared 4.6 billion years ago. The combined mass of this cluster acts as a gravitational lens, magnifying far more distant galaxies behind it. Astronomers say the image will help them understand galaxy formation in the early universe."
}

Example output

{
  "compression_ratio": 0.67,
  "findings": [],
  "grade": "A",
  "key_points": [
    "Webb captured its deepest infrared image to date",
    "The image shows galaxy cluster SMACS 0723 as it appeared 4.6 billion years ago",
    "The cluster's mass acts as a gravitational lens magnifying distant galaxies",
    "It will aid the study of early-universe galaxy formation"
  ],
  "original_word_count": 78,
  "score": 100,
  "source": "text",
  "summary": "The James Webb Space Telescope captured its deepest infrared image yet, revealing thousands of galaxies. Known as Webb's First Deep Field, it shows galaxy cluster SMACS 0723 acting as a gravitational lens to magnify far more distant galaxies. The image will help astronomers study galaxy formation in the early universe.",
  "summary_word_count": 52
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402187 ms$0.005