{"uid":"cap_WscCDBVx2aGzX52fkC3fn","slug":"glim-sh-ai-text-detection-38b3212a","name":"glim.sh AI Text Detection","description":"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","url":"https://glim.sh/api/v1/detect/ai","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","minLength":50,"description":"Text to analyze, plain text, 50+ characters, max 20,000. Detection reliability improves with length; very short texts return lower-confidence verdicts."}}},"responseSchema":{"type":"json","example":{"version":"4.0","cost_usd":0.12,"headline":"AI Detected","segments":[{"text":"I found the answer by the way...\nJust a simple wrong sequence of sentences in...","label":"Human","score":0.1847,"preview":"I found the answer by the way... Just a simple wrong sequence...","word_end":42,"end_index":232,"confidence":"High","word_count":42,"word_start":1,"start_index":0,"is_humanized":false,"token_length":56,"humanizer_score":0,"ai_assistance_score":0.1847},{"text":"Gives this answer:\nYes, I'm Claude 3.5 Sonnet.\nMy knowledge cutoff is April 2...","label":"AI-Generated","score":0.8038,"preview":"Gives this answer: Yes, I'm Claude 3.5 Sonnet. My knowledge...","word_end":179,"end_index":1081,"confidence":"High","word_count":137,"word_start":43,"start_index":233,"is_humanized":false,"token_length":205,"humanizer_score":0.0191,"ai_assistance_score":0.8038}],"tier_used":"premium","confidence":"High","prediction":"We believe that this text is a mix of AI and human-written content.","word_count":179,"fraction_ai":0.7854,"fraction_human":0.2146,"num_ai_segments":1,"prediction_short":"Mixed","num_human_segments":1,"fraction_ai_assisted":0,"num_ai_assisted_segments":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GAkN154kMJntzGNyouZlZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects AI-generated text with an overall verdict, confidence score, AI/human/AI-assisted fractions, and a segment-by-segment breakdown","exampleAgentPrompt":"Can you check whether this article was written by AI or a human? Use the premium tier so it also catches any humanized AI content — here's the text: [paste text]","exampleUseCases":[{"title":"Student essay AI screening","prompt":"I need to check if this student essay was AI-generated — run it through AI detection using the standard tier and tell me the overall verdict, confidence, and which sections look most AI-like."},{"title":"Humanized AI content detection","prompt":"This blog post looks suspicious — it might be AI-written then run through a humanizer tool. Can you analyze it with the premium tier so we can catch any AI-assisted tricks?"},{"title":"Content moderation pipeline check","prompt":"Before we publish this user submission, check what fraction of it is AI-generated versus human-written using standard detection and give me the breakdown."}],"resultDescription":"Returns an overall verdict (AI, human, or AI-assisted), a confidence score, fractions indicating how much of the text is AI-generated, human-written, or AI-assisted, and a segment-by-segment breakdown showing which parts of the text triggered the detection.","failureModes":["Text shorter than 50 characters returns an error or very low confidence verdict","Text exceeding 40,000 chars (standard) or 20,000 chars (premium) is rejected","Very short texts return lower-confidence verdicts due to insufficient signal","Network or payment failure results in no response","Invalid tier enum value returns a validation error"],"whenToPreferThis":"Use this endpoint when you need to determine whether a piece of text was written by AI, a human, or a combination — especially when you need per-segment granularity or want to catch humanized/paraphrased AI output (premium tier). Prefer the premium tier when robustness to evasion or humanizer tools matters; use standard for routine, cost-effective screening at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:31:45.810Z","isFirstParty":false}