G
$0.06
per call · USD Coin on Base
Detect AI-generated text: overall verdict with confidence, AI/human/AI-assisted fractions, and a segment-by-segment breakdown with per-segment humanizer flags. Price scales with length: $0.06 per 100 words, rounded up; minimum $0.06
Endpoint
POST https://glim.sh/api/v1/detect/ai12
Calls / 30d
3
Unique payers / 30d
Aug 29
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://glim.sh/api/v1/detect/ai", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"text": "Detection quality depends on length, so pass at least a paragraph of the text you want scored rather than a single sentence."
}),
});
const data = await res.json();cURL
curl -X POST \
"https://glim.sh/api/v1/detect/ai" \
-H "Content-Type: application/json" \
-d '{"text":"Detection quality depends on length, so pass at least a paragraph of the text you want scored rather than a single sentence."}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"confidence": "High",
"cost_usd": 0.12,
"fraction_ai": 0.7854,
"fraction_ai_assisted": 0,
"fraction_human": 0.2146,
"headline": "AI Detected",
"num_ai_assisted_segments": 0,
"num_ai_segments": 1,
"num_human_segments": 1,
"prediction": "We believe that this text is a mix of AI and human-written content.",
"prediction_short": "Mixed",
"segments": [
{
"ai_assistance_score": 0.1847,
"confidence": "High",
"end_index": 232,
"humanizer_score": 0,
"is_humanized": false,
"label": "Human",
"preview": "I found the answer by the way... Just a simple wrong sequence...",
"score": 0.1847,
"start_index": 0,
"text": "I found the answer by the way...\nJust a simple wrong sequence of sentences in...",
"token_length": 56,
"word_count": 42,
"word_end": 42,
"word_start": 1
},
{
"ai_assistance_score": 0.8038,
"confidence": "High",
"end_index": 1081,
"humanizer_score": 0.0191,
"is_humanized": false,
"label": "AI-Generated",
"preview": "Gives this answer: Yes, I'm Claude 3.5 Sonnet. My knowledge...",
"score": 0.8038,
"start_index": 233,
"text": "Gives this answer:\nYes, I'm Claude 3.5 Sonnet.\nMy knowledge cutoff is April 2...",
"token_length": 205,
"word_count": 137,
"word_end": 179,
"word_start": 43
}
],
"tier_used": "premium",
"version": "4.0",
"word_count": 179
}Payment details
Pay to
0xc751344ee09b5159160173f77d4a1169bcd386a1Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana, Monad
Schemesexact
Is this your API?
Pin it to the top of Search & Web and the homepage with a featured placement.
More from glim.sh & similar services
G
glim.sh · Twitter Search
glim.sh
Search tweets with advanced operators (recommended). Body param is `query` (not q), e.g. {"query":"from:elonmusk AI min_faves:100"}
POSTBaseSearch & Web
$0.005 / call4.1k calls / 30d
G
glim.sh · Amazon Search
glim.sh
Search Amazon by keyword or browse bestsellers by category slug
POSTBaseSearch & Web
$0.005 / call265 calls / 30d
G
glim.sh · WEB Search
glim.sh
Web search powered by Exa
POSTBaseSearch & Web
$0.01 / call209 calls / 30d