← Back to Home

API Documentation

Detect AI-generated content with our powerful detection API

Quick Start

Get started with the wasitaigenerated API in minutes. All API requests require authentication using a Bearer token.

Get Your API Key

Your API key is available in your dashboard. Sign up to get 2,500 free credits to start testing the API immediately.

Authentication

All API requests must include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Text Detection

Detect AI-generated text from ChatGPT, GPT-4, Claude, and other language models.

Endpoint

POST https://www.wasitaigenerated.com/api/v1/detect/text

Request Body

{
  "content": "Your text content here..."
}

Example Request

curl -X POST https://www.wasitaigenerated.com/api/v1/detect/text \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Your text content here..."
  }'

Response

{
  "isAI": true,
  "confidence": 0.92,
  "patterns": ["AI patterns detected"],
  "analysis": {
    "likelihood": "AI-generated",
    "reasoning": "Overall AI score: 92.3%"
  },
  "sentences": [
    {
      "text": "The sentence that was analyzed.",
      "isAI": true,
      "confidence": 0.95,
      "scores": { "ai": 0.95, "human": 0.05 }
    }
  ]
}

Credits

Text detection costs 1 credit per word

Image Detection

Detect AI-generated images and synthetic media.

Endpoint

POST https://www.wasitaigenerated.com/api/v1/detect/image

Request

Send the image file as multipart/form-data with field name file

Supported formats: PNG, JPG, JPEG, GIF, WebP (max 10MB)

Example Request

curl -X POST https://www.wasitaigenerated.com/api/v1/detect/image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@/path/to/image.jpg"

Response

{
  "isAI": true,
  "confidence": 0.99,
  "verified": true,
  "patterns": ["ai_verified", "synthetic_artifacts"],
  "analysis": {
    "likelihood": "high",
    "reasoning": "AI-generated imagery detected with 99.0% confidence. Verified AI-generated via content credentials."
  },
  "detailed": {
    "scores": { "ai": 99.0, "human": 1.0 },
    "model": "v1.1"
  }
}

verified — When true, the image is cryptographically verified as AI-generated (100% certain). When false, the score is based on model analysis.

confidence — AI detection confidence from 0 to 1.

detailed.scores — AI vs Human probability breakdown as percentages.

Credits

Image detection costs 1,000 credits per image

Error Codes

400 Bad Request
Invalid request format or missing required fields
401 Unauthorized
Missing or invalid API key
402 Payment Required
Insufficient credits to process request
403 Forbidden
API access not included in your subscription plan
500 Internal Server Error
Server error — please try again or contact support

Credit Costs

View our pricing page for credit packages and unlimited API subscriptions.

1 credit/word
Text Detection
1,000 credits
Image Detection

Support

Need help or have questions about the API?