Detect AI-sounding prose
Analyzes a documentation page for AI-generated prose and returns flagged passages with suggested human rewrites. Consumes one AI credit per checked page. Pages under 50 words are skipped and not charged.
Credits
- Consumes 1 AI credit per checked page.
- Pages under 50 words are skipped and not charged. The response returns
skipped: "too_short"withcreditsCharged: 0. - If detection is temporarily unavailable, the endpoint returns
503and no credit is charged.
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 a suggested rewrite.
Usage
Authorizations
The Authorization header expects a Bearer token. Use an admin API key. This is a server-side secret key. Generate one on the API keys page in your dashboard.
Path Parameters
Body
Response
The page was checked, or skipped because it was too short.
The path from the request.
Reason the page was skipped, or null when the page was checked. too_short means the page had fewer than 50 words of prose and was not charged.
too_short, null AI credits charged for this request (0 when skipped).
Overall verdict for the page. Present only when the page was checked.
AI, AI-Assisted, Human, Mixed Fraction of the page detected as AI-generated (0-1).
Fraction detected as AI-assisted (0-1).
Fraction detected as human-written (0-1).
Flagged (non-human) passages. Present only when the page was checked.