← 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://wasitaigenerated.com/api/v1/detect/text

Request Body

{
  "content": "Your text content here...",
  "options": {
    "detailed": true  // Optional, default: true
  }
}

Example Request

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

Credits

Text detection costs 1 credit per word

Image Detection

Detect AI-generated images and synthetic media.

Endpoint

POST https://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://wasitaigenerated.com/api/v1/detect/image \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@/path/to/image.jpg"

Credits

Image detection costs 1,000 credits per image

Response Format

All successful detection requests return a JSON response with the following structure:

{
  "success": true,
  "type": "text",
  "result": {
    "isAiGenerated": true,
    "confidence": 0.92,
    "details": {
      // Additional detection details
    },
    "model": "detector-v1",
    "processingTime": "1.2s"
  }
}

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
500 Internal Server Error
Server error - please try again or contact support
501 Not Implemented
API key system configuration pending

Credit Costs

1 credit/word
Text Detection
1,000 credits
Image Detection
1,000 credits
Audio Detection
2,000 credits
Video Detection

Support

Need help or have questions about the API?