For the complete documentation index, see llms.txt. This page is also available as Markdown.
AI detections
Assess how likely a passage was machine-generated, sentence by sentence.
Endpoints
| Method | Path | Scope | Credits | Description |
|---|---|---|---|---|
| POST | /v1/detections | detections:write | 1 per 1,000 words | Analyze text or a document |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | one of | Input text, up to 15,000 words |
document_id | string | one of | An ingested PDF, up to 50 pages |
context | enum | no | scientific (default) — tunes the model to academic prose |
Response
json
{ "object": "detection", "id": "det_j2h1k0y86j", "context": "scientific",
"score": 100, "label": "ai", "confidence": 100,
"summary": "The text is almost entirely produced using AI, with tiny to no human contribution.",
"sentence_counts": { "high": 4, "moderate": 0, "low": 0, "total": 4 },
"sentences": [ { "text": "The nature of dark matter remains…", "level": "high",
"probability": 0.9948, "confidence": 99, "label": "ai" } ] }score0–100,label∈human | mixed | ai,level∈low | moderate | high.probabilityis the model's per-sentence estimate, not a p-value.
Do not use this to accuse anyone
Detection is probabilistic. Present it as a signal alongside the evidence, never as proof of misconduct, and never as the sole basis for an academic or employment decision. State the false- positive risk wherever you surface a score.
Cost is 1 credit per 1,000 words.
Related
Last updated