Overview
UsePOST /api/v1/ai-detection to run AI-text detection or plagiarism detection on a text input.
Endpoint
Authentication
An API key is required.Authorization: Bearer YOUR_API_KEYx-api-key: YOUR_API_KEY
Request Body
Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | Yes | - | Text to analyze. |
mode | string | No | ai | Detection mode. Allowed values: ai, plagiarism. |
Modes
| Mode | Description |
|---|---|
ai | AI-text detection. |
plagiarism | Plagiarism detection. |
Response
Example
Common Errors
| Code | Description |
|---|---|
missing_api_key | API key is required. |
invalid_json | Request body is not valid JSON. |
invalid_mode | mode is not ai or plagiarism. |
missing_text | text is required. |
model_not_allowed | Detection model is not available for the account or route. |
paid_features_disabled | Paid API features are disabled for the account. |
insufficient_balance | Account balance is too low for the request. |