Winston AI - Content Detector
Score text from 0 (AI-generated) to 100 (human) with Winston. You can scan text sent in the request or a PDF, DOC or DOCX you uploaded through the Asset API, and optionally get a score for every sentence.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be CONTENT_DETECTOR |
model | string | Yes | AI model identifier. Must be winstonai |
promptObject | object | Yes | Configuration object containing the content to check |
Prompt Object Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes, unless document_url is set | Text to scan, 300–150,000 characters. Under 600 characters may give unreliable results. |
document_url | string | No | Instead of prompt: the path (S3 key) of a PDF, DOC or DOCX you uploaded through the Asset API, once its processing has finished. It takes priority over prompt, which is then ignored. Its text must be 300–150,000 characters. |
sentences | boolean | No | Default true. false omits sentence scores while retaining the overall score. |
version | string | No | Winston text model version. Default 5.2. Options: 5.2, 5.1, 5.0, 4.18 … 4.0, 3.1, 3.0. |
language | string | No | Default auto. Options: auto, en, fr, es, pt, nl, de, pl, it, ro, id, tl, ru, bg, zh, uk, az, cs, sr, be, sk, hr, bs, mk. |
Document Requirements
- Formats: PDF, DOC, DOCX
- Upload: through the Asset API; use the returned
pathasdocument_url, once its processing has finished - Length: the text of the document must be 300–150,000 characters
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "CONTENT_DETECTOR",
"model": "winstonai",
"promptObject": {
"prompt": "Replace with 300–150,000 characters of content to scan.",
"sentences": true,
"language": "auto"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'CONTENT_DETECTOR',
model: 'winstonai',
promptObject: {
prompt: 'Replace with 300–150,000 characters of content to scan.',
sentences: true,
language: 'auto'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "CONTENT_DETECTOR",
"model": "winstonai",
"promptObject": {
"prompt": "Replace with 300–150,000 characters of content to scan.",
"sentences": True,
"language": "auto"
}
}
response = requests.post(url, headers=headers, json=data)
Scanning an uploaded document
Upload the file through the Asset API, then send its path as document_url instead of prompt:
{
"type": "CONTENT_DETECTOR",
"model": "winstonai",
"promptObject": {
"document_url": "<path-of-the-uploaded-file>"
}
}
Interactive Playground
API Playground
https://api.1min.ai/api/featuresText to scan, 300–150,000 characters
Return a score for every sentence
Language of the text, or auto to detect it
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "CONTENT_DETECTOR",
"model": "winstonai",
"promptObject": {
"prompt": "Replace with 300–150,000 characters of content to scan.",
"sentences": true,
"language": "auto"
}
}'
Response Format
The verdict is in aiRecord.additionalData.data[0].
{
"aiRecord": {
"uuid": "e40dd9ef-0944-4ce5-bc90-1edd2548619a",
"model": "winstonai",
"type": "CONTENT_DETECTOR",
"status": "SUCCESS",
"additionalData": {
"status": "SUCCESS",
"data": [
{
"status": 200,
"score": 18,
"sentences": [
{ "text": "First sentence of the scanned text.", "score": 12 },
{ "text": "Second sentence of the scanned text.", "score": 94 }
],
"input": "text",
"attack_detected": { "zero_width_space": false, "homoglyph_attack": false },
"readability_score": 64,
"version": "5.0",
"language": "en"
}
]
}
}
}
Result fields
| Field | Type | Description |
|---|---|---|
score | number | Likelihood that a person wrote the text, from 0 (AI) to 100 (human) |
sentences | object[] | The text and score of each sentence, on the same scale. Left out when sentences is false. Scores of short samples are less accurate than the overall score. |
input | string | What was scanned: text, or file for an uploaded document |
attack_detected | object | zero_width_space and homoglyph_attack, each true when that kind of hidden-character manipulation was found in the text |
readability_score | number | From 0 to 100: how easy the text is to read in its language, higher is easier |
version | string | The detection model version that was used |
language | string | Language code the text was scanned in. With auto, the language detected from the text. |
status | number | Status code of the Winston call, 200 on success |
Winston's account fields (credits_used, credits_remaining, cost, balance) are not included in the result. The credits charged are in the record's metadata.credit.