Skip to main content

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​

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters​

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be CONTENT_DETECTOR
modelstringYesAI model identifier. Must be winstonai
promptObjectobjectYesConfiguration object containing the content to check

Prompt Object Parameters​

ParameterTypeRequiredDescription
promptstringYes, unless document_url is setText to scan, 300–150,000 characters. Under 600 characters may give unreliable results.
document_urlstringNoInstead 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.
sentencesbooleanNoDefault true. false omits sentence scores while retaining the overall score.
versionstringNoWinston text model version. Default 5.2. Options: 5.2, 5.1, 5.0, 4.18 … 4.0, 3.1, 3.0.
languagestringNoDefault 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 path as document_url, once its processing has finished
  • Length: the text of the document must be 300–150,000 characters

Code Examples​

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"
}
}'

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/features
Text 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​

FieldTypeDescription
scorenumberLikelihood that a person wrote the text, from 0 (AI) to 100 (human)
sentencesobject[]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.
inputstringWhat was scanned: text, or file for an uploaded document
attack_detectedobjectzero_width_space and homoglyph_attack, each true when that kind of hidden-character manipulation was found in the text
readability_scorenumberFrom 0 to 100: how easy the text is to read in its language, higher is easier
versionstringThe detection model version that was used
languagestringLanguage code the text was scanned in. With auto, the language detected from the text.
statusnumberStatus 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.