API Documentation

API Usage Examples

These examples demonstrate how to use our API endpoints in different programming languages. Choose your preferred language from the tabs below.

AI Detection

This example shows how to detect AI-generated content.

curl -X POST https://api.example.com/api/analysis/analyze \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "text": "This is a sample text that needs to be analyzed for AI detection."
  }'

AI Humanization

This example shows how to humanize AI-generated content.

curl -X POST https://api.example.com/api/humanization \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "text": "Text to humanize"
  }'

Text Paraphrasing

This example shows how to paraphrase text using different modes.

curl -X POST https://api.example.com/api/paraphraser \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "text": "Text to paraphrase",
    "mode": "ACADEMIC"
  }'

Text Summarization

This example shows how to create concise summaries of longer content.

curl -X POST https://api.example.com/api/summarize \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "text": "Long text to summarize...",
    "mode": "general",
    "length": "short"
  }'

OCR Services

This example shows how to extract text from images using OCR.

curl -X POST https://api.example.com/api/ocr/process \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "key": "ocr/user_id/filename.jpg"
  }'

Image Generation

This example shows how to generate images using AI.

curl -X POST https://api.example.com/api/images/generate \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "prompt": "A detailed description of the image you want to generate"
  }'