DetectCodeAI

CODE-ONLY AI DETECTION API

AI Code Detector API — Built Strictly for Source Code

Detect AI-generated source code programmatically with explainable signals. Built exclusively for code—not essays or general prose. Plans start at $14.99/month.

Starting at $14.99/mo

  • 2,000 API calls/mo
  • Up to 100KB/request
  • 1 API key
  • Includes Web Pro access

Sample Request & Response

Example request

curl https://detectcodeai.com/api/v1/detect \
  -H "Authorization: Bearer ${DETECTCODEAI_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{"code":"def greet(name):\n    return name.strip()","language":"python"}'

Example response

{
  "code": 0,
  "message": "ok",
  "data": {
    "id": "e20a6a6f-53e7-4d42-9519-3d55065241bc",
    "verdict": "possibly_human",
    "confidence": 72,
    "confidence_band": "medium",
    "signals": [
      {
        "signal": "Task-specific structure",
        "explanation": "The loop is tailored to the booking schedule."
      }
    ],
    "language": "python",
    "route": "flash+sol",
    "partial": false,
    "disclaimer": "This result is a probability estimate, not proof. Never use it as the sole basis for academic or employment decisions. Detection is probabilistic — always review the signals yourself before acting."
  }
}

Built for Code, Not General Text

Designed for

  • Reviewing source code snippets and files
  • Screening code from technical interviews and assignments
  • Automating checks in engineering and compliance workflows, with signals for human review

Not designed for

  • Detecting AI-written essays, articles, or marketing copy
  • Making a decision based solely on an automated result

Three proprietary models scored 88–96% on the 100-snippet blind-test benchmark. Flash ran on a subset. See accuracy & evaluation methodology.

Simple, Predictable API Pricing

API plan

From $14.99 / month

  • 2,000 API calls / month
  • 100KB max per request
  • 1 API key
  • Includes Web Pro benefits

Web Pro includes 1,000 web checks per month, batch detection of up to 20 snippets, CSV and JSON export, and snippet highlighting.

Get API Access

Extra calls

Planned add-on

$9.99 for 5,000 extra calls

Valid for 90 days

Use detection results as a signal for human review.

Ready to Integrate?

  1. Get your API key

    Subscribe, then generate a key in your account.

  2. Send your first request

    Use the request and authentication instructions in the API docs.

  3. Read the verdict and signals

    Parse both fields and show the signals in your review workflow.

Go to API Documentation (/api-docs)

Frequently Asked Questions

Does this API detect general AI-written text or essays?
No. DetectCodeAI analyzes source code only. Use a text detector for prose or essays.
What is included in the $14.99/month API plan?
It includes 2,000 API calls per month, up to 100KB per request, and 1 API key. Web Pro includes 1,000 web checks per month, batch detection of up to 20 snippets, CSV and JSON export, and snippet highlighting.
What happens if I need more than 2,000 API calls in a month?
The planned add-on would provide 5,000 extra calls for $9.99, valid for 90 days. The add-on is currently unavailable for purchase.
What is the maximum code size per API request?
The limit is 100KB for the full JSON request body, including the code and any optional fields.
How do I integrate the API and test endpoints?
Visit our /api-docs page for authentication details, request and response schemas, and error handling.