Detect AI-sounding prose
This endpoint analyzes a documentation page for AI-generated prose and returns flagged passages with suggested human rewrites.
Authenticate with an admin API key.
Credits
- Consumes 1 AI credit per checked page.
- The endpoint skips pages under 50 words and does not charge for them. The response returns
skipped: "too_short"withcreditsCharged: 0. - If detection is temporarily unavailable, the endpoint returns
503and doesn’t consume a credit. - The endpoint accepts up to 30 requests per minute per client IP address.
Response
Checked pages return a verdict (predictionShort), AI and human fractions, and a windows array of flagged passages. Each window includes a line range and can include one to three suggested rewrites.
Usage
curl -X POST https://api.mintlify.com/v1/deslop/{projectId} \
-H "Authorization: Bearer mint_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"path": "guides/quickstart.mdx",
"content": "# Quickstart\n\nWelcome to our comprehensive documentation..."
}'Was this page helpful?Suggest editsRaise issue