Skip to main content
POST
/
text
cURL
curl -X POST "https://api.antigenailabs.com/text" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "text": "<string>",
  "file": "<string>",
  "website": "<string>",
  "version": "<string>",
  "sentences": true,
  "language": "<string>"
}'
{
"status": 200,
"score": 0.9,
"attack_detected": {
"zero_width_space": true,
"homoglyph_attack": false
},
"readability_score": 82,
"sentences": [
{
"text": "This is a sample sentence.",
"score": 0.95
},
{
"text": "Another example sentence.",
"score": 0.85
}
],
"input": "text"
}

Authorizations

x-api-key
string
header
required

A unique key used for authentication to access the API.

Body

application/json

Provide either text, file, or website. If multiple are provided, priority = website > file > text.

  • Option 1
  • Option 2
  • Option 3
text
string
required

Text content to analyze.

file
string

URL to a .pdf, .doc, or .docx file.

website
string<uri>

Publicly accessible website URL.

version
enum<string>
default:2.0

Model version (3.0, 2.0, latest).

Available options:
3.0,
2.0,
latest
sentences
boolean
default:true

Include sentence-level scores.

language
enum<string>
default:en

2-letter language code.

Available options:
en,
fr,
es,
pt,
nl,
de,
pl,
it,
zh

Response

AI-generated text analysis result.

status
integer

HTTP status code (200).

score
number

Confidence (0-1) that the text is AI-generated.

attack_detected
object

Flags for adversarial attacks.

readability_score
integer

Readability score (0-100). Higher = easier to read.

sentences
object[]

Sentence-level AI confidence scores.

input
string

Source of input: text, file, or website.

I