Quickstart
Create an API key in your dashboard, choose an endpoint, and send JSON over HTTPS. REST requests use the public base URL below.
https://api.detecting-ai.comcurl --request POST \
--url https://api.detecting-ai.com/api/detect/ \
--header "Content-Type: application/json" \
--header "X-API-Key: YOUR_API_KEY" \
--data '{
"text": "Paste the text you want to analyze.",
"version": "v3"
}'Authentication
REST endpoints and MCP use the same customer API key with two different standard header formats.
| Interface | Header | Example |
|---|---|---|
| REST API | X-API-Key | X-API-Key: YOUR_API_KEY |
| MCP | Authorization | Authorization: Bearer YOUR_API_KEY |
AI Detector API
Analyze supplied text for signals associated with AI-generated writing. Results are probabilistic and should support human review rather than replace it.
/api/detect/Request body
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to analyze. |
version | string | Yes | v1, v2, or v3. Use v3 for new integrations. |
curl --request POST \
--url https://api.detecting-ai.com/api/detect/ \
--header "Content-Type: application/json" \
--header "X-API-Key: YOUR_API_KEY" \
--data '{
"text": "Paste the text you want to analyze.",
"version": "v3"
}'Response
{
"success": true,
"data": {
"details": {
"result": "Detector analysis is returned here"
},
"version": "v3",
"words_processed": 8
}
}AI Humanizer API
Rewrite supplied text with a selected humanizer model while returning the processed word count and model name.
/api/humanize/Request body
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to rewrite. |
model | string | Yes | cognia, lexi, cognia_v2, or huma_v2. |
curl --request POST \
--url https://api.detecting-ai.com/api/humanize/ \
--header "Content-Type: application/json" \
--header "X-API-Key: YOUR_API_KEY" \
--data '{
"text": "Paste the text you want to rewrite.",
"model": "cognia"
}'Response
{
"humanized_text": "The rewritten text is returned here.",
"words_processed": 8,
"model_used": "cognia"
}Plagiarism Checker API
Submit text for plagiarism analysis. The response contains the checker result and the number of processed input words.
/api/plagiarism/curl --request POST \
--url https://api.detecting-ai.com/api/plagiarism/ \
--header "Content-Type: application/json" \
--header "X-API-Key: YOUR_API_KEY" \
--data '{
"text": "Paste the text you want to check."
}'Remote MCP server
Connect Detecting AI to Claude, Codex, or another Streamable HTTP MCP client. MCP exposes focused detector and humanizer tools through the public endpoint below.
https://api.detecting-ai.com/api/mcp| Tool | Purpose | Default |
|---|---|---|
detect_ai_text | Analyze text for AI-writing signals and passage-level detail. | v3 |
humanize_text | Rewrite supplied text in a more natural style. | cognia |
Codex
# Set the key in your shell
export DETECTING_AI_API_KEY="YOUR_API_KEY"
# Add this to ~/.codex/config.toml
[mcp_servers.detecting_ai]
url = "https://api.detecting-ai.com/api/mcp"
bearer_token_env_var = "DETECTING_AI_API_KEY"
tool_timeout_sec = 180Claude Code
claude mcp add --transport http --scope user \
--header "Authorization: Bearer YOUR_API_KEY" \
detecting-ai https://api.detecting-ai.com/api/mcpOther MCP clients
{
"mcpServers": {
"detecting-ai": {
"type": "streamable-http",
"url": "https://api.detecting-ai.com/api/mcp",
"headers": {
"Authorization": "Bearer ${DETECTING_AI_API_KEY}"
}
}
}
}Errors
| Status | Meaning | What to check |
|---|---|---|
400 | Invalid request or insufficient word balance. | Validate fields, model names, versions, and available words. |
401 | API key is missing or invalid. | Check the correct authentication header. |
403 | No active subscription for the requested feature. | Review the API subscription in the dashboard. |
500 | The request could not be processed. | Retry once, then contact support with the request time and endpoint. |
Usage and limits
Detector, humanizer, and plagiarism usage is measured from the input word count. MCP uses the same subscription balance as the REST API.
- Check remaining usage in the API dashboard.
- Avoid automatic retries after a successful response.
- Split very large documents into meaningful sections.
- Use a server-side timeout that fits the selected operation.
Ready to integrate?
Create an API key, select a plan, and test your first request from a secure server environment.