# Getting Started

Integrate WalterAI humanizer and AI detection into your applications via a simple REST API.

Source: https://docs.walterwrites.ai/

## Overview

The WalterAI API lets you programmatically humanize AI-generated text, detect AI-written content in text, images, and voice recordings, scan text for plagiarism, and correct grammar. All endpoints are available over HTTPS and return JSON responses.

**Base URL:**

```
https://developer-portal.walterwrites.ai
```

## Quick Start

### 1. Get Your API Key

Sign in to the [Developer Portal](https://platform.walterwrites.ai/api-keys) and create an API key on the **API Keys** page. Select the scopes your key needs.

> **Warning:** The full API key is only shown once at creation. Copy and store it securely.

### 2. Make Your First Request

```bash
curl -X POST https://developer-portal.walterwrites.ai/api/humanizer/ \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "content": "Artificial intelligence has revolutionized numerous industries by automating complex tasks and improving business decisions. Organizations across healthcare, finance, and manufacturing now rely on machine learning models to analyze vast amounts of data, identify meaningful patterns, and generate accurate predictions. As these technologies continue to evolve, they are expected to deliver even greater efficiency, innovation, and value across the global economy."
  }'
```

### 3. Get the Result

```json
{
  "status": "success",
  "result": "AI has changed the way many industries work. It takes over complicated tasks and helps people make better decisions. Hospitals, banks, and factories now use machine learning to dig through huge amounts of data, spot useful patterns, and make solid predictions. As the technology keeps improving, it should bring even more efficiency, fresh ideas, and value to economies around the world.",
  "execution_time": 2.34,
  "word_count": 60,
  "credits_remaining": 1940,
  "user": {
    "id": 12345
  }
}
```

## Available Endpoints

| Endpoint                                                        | Method | Description                                                  |
| --------------------------------------------------------------- | ------ | ------------------------------------------------------------ |
| [`/api/humanizer/`](https://docs.walterwrites.ai/api-reference/humanizer.md)                   | POST   | Transform AI-generated text into natural, human-like content |
| [`/api/detector/`](https://docs.walterwrites.ai/api-reference/detector.md)                     | POST   | Analyze text to detect AI-generated content                  |
| [`/api/plagiarism/scan/`](https://docs.walterwrites.ai/api-reference/plagiarism-checker.md)    | POST   | Scan text for plagiarism against web sources                 |
| [`/api/grammar/correct/`](https://docs.walterwrites.ai/api-reference/grammar-checker.md)       | POST   | Correct grammar, spelling, and punctuation                   |
| [`/api/voice-detector/detect/`](https://docs.walterwrites.ai/api-reference/voice-detector.md)  | POST   | Detect AI-generated voices in audio                          |
| [`/api/image-detector/predict/`](https://docs.walterwrites.ai/api-reference/image-detector.md) | POST   | Detect AI-generated images                                   |
| [`/api/jobs/{task_id}/`](https://docs.walterwrites.ai/api-reference/async-jobs.md)             | GET    | Check status of an async processing job                      |

## Key Concepts

* **Authentication** — All requests require an `X-API-Key` header. See [Authentication](https://docs.walterwrites.ai/authentication.md).
* **Credits** — Most text endpoints consume credits by word count (1 credit = 1 word); the [Plagiarism Checker](https://docs.walterwrites.ai/api-reference/plagiarism-checker.md) costs a flat 2 credits per scan, the [AI Voice Detector](https://docs.walterwrites.ai/api-reference/voice-detector.md) costs 10 credits per second of audio, and the [Image Detector](https://docs.walterwrites.ai/api-reference/image-detector.md) costs a flat 10 credits per image. See [Credits](https://docs.walterwrites.ai/credits.md).
* **Sync & Async** — Most text endpoints support both synchronous and asynchronous processing (see [Async Jobs](https://docs.walterwrites.ai/api-reference/async-jobs.md)); the Plagiarism, Grammar, and Voice endpoints are synchronous only.
