> ## 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.

# Blog Writer

> Generate complete undetectable blog articles with the /api/stealthify/articles endpoint

The `/api/stealthify/articles` endpoint generates complete, undetectable blog articles with relevant, high-quality images in markdown format, optimized for SEO.

## Request Parameters

<ParamField header="api-token" type="string" required>
  Your unique API authentication token. You can find this in your StealthGPT dashboard under the API Key tab.
</ParamField>

<ParamField body="prompt" type="string" required>
  The topic or subject for which you want to generate a blog article
</ParamField>

<ParamField body="withImages" type="boolean" default="true">
  When set to `true`, includes relevant images in the generated article
</ParamField>

<ParamField body="size" type="string" default="small">
  Controls the length of the generated article

  <Expandable title="Available size options">
    <ResponseField>
      <ResponseField name="small">
        Shortest article length, ideal for brief overviews
      </ResponseField>

      <ResponseField name="medium">
        Standard blog article length with moderate detail
      </ResponseField>

      <ResponseField name="long">
        Comprehensive long-form content with in-depth coverage
      </ResponseField>
    </ResponseField>
  </Expandable>
</ParamField>

<ParamField body="outputFormat" type="string" default="html">
  Format of the returned content. Options are "html" or "markdown"

  <Expandable title="Available output formats">
    <ResponseField>
      <ResponseField name="html">
        Returns the article as HTML content
      </ResponseField>

      <ResponseField name="markdown">
        Returns the article in markdown format
      </ResponseField>
    </ResponseField>
  </Expandable>
</ParamField>

## Response

<ResponseField name="result" type="string">
  The complete blog article in markdown or HTML format, depending on the requested outputFormat
</ResponseField>

<ResponseField name="remainingCredits" type="number">
  Number of prepaid words remaining in your account after this request
</ResponseField>

## Example Request

<CodeGroup>
  ```bash curl-example theme={null}
  curl --request POST \
    --url https://stealthgpt.ai/api/stealthify/articles \
    --header 'Content-Type: application/json' \
    --header 'api-token: YOUR_API_TOKEN' \
    --data '{
    "prompt": "Modern backend architecture trends in 2023",
    "withImages": true,
    "size": "medium",
    "outputFormat": "markdown"
  }'
  ```

  ```python python-example theme={null}
  import requests

  response = requests.post(
      'https://stealthgpt.ai/api/stealthify/articles',
      headers={
          'api-token': 'YOUR_API_TOKEN',
          'Content-Type': 'application/json'
      },
      json={
          'prompt': 'Modern backend architecture trends in 2023',
          'withImages': True,
          'size': 'medium',
          'outputFormat': 'markdown'
      }
  )

  print(response.json())
  ```

  ```javascript nodejs-example theme={null}
  const axios = require('axios');

  axios.post('https://stealthgpt.ai/api/stealthify/articles', {
      prompt: 'Modern backend architecture trends in 2023',
      withImages: true,
      size: 'medium',
      outputFormat: 'markdown'
  }, {
      headers: {
          'api-token': 'YOUR_API_TOKEN',
          'Content-Type': 'application/json'
      }
  }).then(response => {
      console.log(response.data);
  });
  ```
</CodeGroup>

## Example Response

```json theme={null}
{
  "result": "# Modern Backend Architecture Trends in 2023\n\n![Modern backend architecture visualization](https://example.com/image1.jpg)\n\n## Introduction\n\nThe landscape of backend development continues to evolve rapidly in 2023, with new paradigms and technologies reshaping how we build and deploy server-side applications...\n\n## Microservices Continue to Dominate\n\nWhile not new to the scene, microservices architecture continues to be refined and optimized in 2023...\n\n[Content continues with full markdown article]",
  "remainingCredits": 950000
}
```

## Usage Notes

* This endpoint consumes significantly more words than the standard `/api/stealthify` endpoint
* Each article generation costs the equivalent of 50,000 stealth words
* If prepaid words are insufficient, requests can bill to pay-as-you-go when PAYG is active
* The generated content is optimized for SEO and designed to be undetectable by AI content detection tools
