AI: Analysis 10 credits LLM

Summarize API

Summarize any text with Claude-powered AI via REST API. Submit an article, document, email, or meeting transcript and get a concise summary back. Configurable length (one sentence to full paragraphs) and format (prose, bullet points, TLDR).

Try it live →

How it works

POST your text and optional parameters: length (short/medium/long), format (prose/bullets/tldr), and focus (what aspects to emphasize). The API sends your text to Claude with a carefully engineered prompt and returns a clean summary.

Use cases

API Reference

POST https://slopshop.gg/v1/llm-summarize
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
text string required The text to process with AI
options object optional Optional configuration (format, length, etc.)

Example response

{
  "data": {
    "result": "AI-generated result based on your input.",
    "model": "claude-3-5-sonnet",
    "tokens_used": 150
  },
  "meta": {
    "credits_used": 10,
    "engine": "real",
    "ms": 4
  }
}

Examples

Three real-world scenarios showing how developers use Summarize in production.

Example 1
Summarize a news article
Extract the key points from a long news article.
curl -X POST https://slopshop.gg/v1/llm-summarize \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "BRUSSELS — European regulators on Tuesday announced sweeping new rules...", "length": "short", "format": "bullets"}'
Example 2
Summarize meeting transcript
Condense a 1-hour meeting into action items.
curl -X POST https://slopshop.gg/v1/llm-summarize \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Alice: Let's discuss the Q4 roadmap. Bob: I think we should prioritize...", "length": "medium", "format": "bullets"}'
Example 3
TLDR for documentation
Generate a one-sentence TLDR for a long technical doc.
curl -X POST https://slopshop.gg/v1/llm-summarize \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "This library provides a comprehensive set of utilities for...", "length": "short", "format": "tldr"}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/llm-summarize \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "your data here"}'

Python

import requests

response = requests.post(
    "https://slopshop.gg/v1/llm-summarize",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"input": "your data here"}
)
result = response.json()
print(result["data"])

Node.js

const response = await fetch("https://slopshop.gg/v1/llm-summarize", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);

CLI

# Install the Slopshop CLI
npm install -g slopshop

# Set your API key
export SLOPSHOP_KEY=your_api_key

# Call llm-summarize
slop llm-summarize '{"input": "your data here"}'

Pricing

Credits per call
10
credits
Cost per call
$0.01
at Starter tier
Tier
LLM
Requires LLM key

Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 10 credits per call — that's $0.01. See all pricing tiers.

Related APIs in AI: Analysis

View the full API catalog · Try in playground · Documentation