> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stealthgpt.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Start with https://docs.stealthgpt.ai/api-reference/quickstart.md for REST setup and https://docs.stealthgpt.ai/api-reference/models.md for Super, Standard and Lite model selection.
> For existing drafts, use the Writer & Humanizer endpoints; for research-to-draft generation, use the Stealth Agent guides. Choose polling, webhook callbacks or MCP with https://docs.stealthgpt.ai/api-reference/workflow-patterns.md.
> For bulk humanization and editorial review, use https://docs.stealthgpt.ai/api-reference/recipes/humanize-review.md. For fixed links, citations or other approved spans, use https://docs.stealthgpt.ai/api-reference/text-preservation.md and replace each protected span with a marker in your application.
> For assistant setup and verified client status, use https://docs.stealthgpt.ai/api-reference/integrations/mcp.md. Consult the Pricing and Data Handling references for API entitlements, word accounting and processing details; web subscriptions and API plans are separate.

# Advanced Usage

> Learn advanced techniques and best practices for getting the highest quality output from StealthGPT API, including optimization strategies and advanced configuration options

## Writing Mode

When generating content (`rephrase: false`), choose how the model interprets your prompt:

> [card] Writing Mode Options
>
> > [card] default
> >
> > Follows your prompt as written. Use for emails, lists, product copy, summaries, or any format you specify — does not force essay structure.
>
> > [card] essay
> >
> > Structures the output as an academic essay. Pair with `tone` (Standard, HighSchool, College, PhD) to set education level. Send `"writingMode": "essay"` to use it.

```json theme={null}
{
  "prompt": "Write a product description for a premium leather wallet",
  "rephrase": false,
  "writingMode": "default",
  "model": "super"
}
```

## Humanizer Model Selection

Use the `model` parameter to choose the humanizer pipeline. Each request is billed on **input words plus output words**. See [Models](https://docs.stealthgpt.ai/api-reference/models.md) for a full comparison of Super, Standard, and Lite.

> [card] Model Options
>
> > [card] super
> >
> > Flagship. Highest bypass rate, billed at **\$0.05 / 100 words**. The structural rewrite also strips invisible text watermarks, such as Claude's mark and Gemini's SynthID.
>
> > [card] standard
> >
> > Previous-generation full rewrite, billed at **\$0.20 / 1,000 words**. The structural rewrite also strips invisible text watermarks, such as Claude's mark and Gemini's SynthID.
>
> > [card] lite
> >
> > Fast AI-smell cleanup that keeps the text mostly unchanged. Billed at **\$0.20 / 1,000 words**. This mode is not designed to bypass AI detectors.

```json theme={null}
{
  "prompt": "Your text here",
  "rephrase": true,
  "model": "super"
}
```

## Humanize Input (Rephrase Mode)

When humanizing existing text (`rephrase: true` on `/api/stealthify` or `/api/stealthify/runs`), send **only the source text**. Do not wrap it with model instructions. Use `rephrase: false` on either endpoint to write from the prompt first.

| Do | Don't |
| - | - |
| `"prompt": "Renewable energy offers several advantages..."` | `"prompt": "Humanize the following text: Renewable energy offers..."` |
| `"prompt": "Students should sleep eight hours..."` | `"prompt": "Rewrite this to sound more human and undetectable:\n\nStudents should..."` |

Instruction prefixes such as "Humanize the following", "Make this undetectable", or "Rewrite in a natural tone" confuse the humanizer and degrade results. Use API parameters (`model`, `qualityMode`, `outputFormat`) for control instead. Parameters `tone` and `writingMode` only shape generation (`rephrase: false`).

The prompt-crafting tips below apply to **generation** (`rephrase: false`), not to humanize or rephrase requests.

## Crafting Effective Prompts

The quality of generated content depends significantly on the quality of your prompt. Here are some techniques to improve your prompts when `rephrase` is `false`:

> [accordion] Be Specific
>
> Instead of: "Write about cars"
>
> Try: "Write about the environmental impact of electric vehicles compared to traditional combustion engines"

> [accordion] Include Context
>
> Instead of: "Write a product description"
>
> Try: "Write a product description for a premium leather wallet targeted at young professionals who value both style and functionality"

> [accordion] Specify Format
>
> Instead of: "Write about climate change"
>
> Try: "Create a 5-point listicle about practical steps individuals can take to reduce their carbon footprint"

> [accordion] Define Voice and Tone
>
> Instead of: "Write about cryptocurrency"
>
> Try: "Explain cryptocurrency concepts in a conversational tone as if speaking to someone with no technical background"

## Output Format

Control the formatting of the returned content with the `outputFormat` parameter:

> [card] Output Format Options
>
> > [card] text
> >
> > Default format. Returns plain text without markdown formatting.
>
> > [card] markdown
> >
> > Returns formatted content with markdown syntax (headings, lists, bold, etc.).

```json theme={null}
{
  "prompt": "Write a summary of quantum computing",
  "rephrase": false,
  "outputFormat": "markdown",
  "model": "super"
}
```

## Long Texts

To humanize a long article, send the whole text in one request instead of splitting it. A piece humanized on its own reads like a separate article (a new introduction each time), and it is easier to detect than the same text humanized in one pass.

* [`POST /api/stealthify`](https://docs.stealthgpt.ai/api-reference/endpoints/stealthify) takes up to 3,000 words and turns texts over 1,500 words into a run (except with `lite`).
* [`POST /api/stealthify/runs`](https://docs.stealthgpt.ai/api-reference/endpoints/stealthify-runs) has no word limit when humanizing (`rephrase: true`). Poll the run or use a webhook for the result.

To write long-form content from a prompt, use [`POST /api/stealthify/agent`](https://docs.stealthgpt.ai/api-reference/endpoints/stealthify-agent).

## Using Templates

You can include templates in your prompts to guide the structure of generated content:

```json theme={null}
{
  "prompt": "Please write an email following this template:\n\nSubject: [Product] - New Features\n\nHello [Name],\n\nI'm excited to share the latest updates to [Product]...\n\nBest regards,\n[Your Name]",
  "rephrase": false,
  "model": "super"
}
```

## Iterative Rephrasing

For maximum undetectability, consider an iterative approach:

**1. Generate Initial Content**

Create the first version of your content with `rephrase: false`

**2. First Rephrasing**

Submit the generated content with `rephrase: true`

**3. Second Rephrasing**

For even higher undetectability, submit the rephrased content for another round

> [!WARNING]
>
> Too many rephrasing iterations may affect content coherence or meaning. Test and find the optimal balance.

## Multilingual Support

Non-English input is detected, humanized, and returned in the original language.

## Premium Quality with Stealth Agent

When undetectability and quality are paramount, send the prompt to `POST /api/stealthify/agent` instead. The Stealth Agent runs a multi-step pipeline (research → draft → optional fact-check → humanize → optional images) that consistently produces higher-quality, more grounded, and harder-to-detect long-form content than a single-pass humanizer can.

> [card] [Academic preset](https://docs.stealthgpt.ai/api-reference/stealth-agent/use-cases.md#academic)
>
> Essays, literature reviews, and research-style writing with auto-formatted citations.

> [card] [SEO preset](https://docs.stealthgpt.ai/api-reference/stealth-agent/use-cases.md#seo)
>
> Long-form blog posts grounded in keyword research and competitor analysis.

> [card] [Social preset](https://docs.stealthgpt.ai/api-reference/stealth-agent/use-cases.md#social)
>
> LinkedIn or Medium posts that match each platform's voice and structure.

See the [Stealth Agent overview](https://docs.stealthgpt.ai/api-reference/stealth-agent/overview.md), [usage guide](https://docs.stealthgpt.ai/api-reference/stealth-agent/guide.md), and [use cases](https://docs.stealthgpt.ai/api-reference/stealth-agent/use-cases.md) for details. Billing is `ceil(outputWords × 10)` Stealth API words per successful run; see [Pricing](https://docs.stealthgpt.ai/api-reference/pricing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.