---
title: "Articles - Reference | SnowAI"
description: "Write a researched article with SnowAI: how content_write_article and content_get_article work, what they cost and how an article survives a closed chat."
url: "https://trysnow.ai/docs/reference/articles"
---

# Articles

> `content_write_article` writes a researched, SEO-structured article for your site in 2 to 4 minutes. It keeps being written on SnowAI if the chat closes.

## How it works

1. The call always asks for approval first: it answers 428 with a `confirmation_token`, and the agent asks you.
2. With the token, the call holds its price and starts the article. It waits up to `wait_seconds` (default 40, at most 45).
3. If the article is done by then, the answer has its Markdown and the price is charged.
4. If not, the answer is `status: "writing"` with an `article_id` and HTTP 202. Nothing is charged yet.
5. `content_get_article` returns the article later. It is free, and `wait_seconds` makes it wait.

The article is charged once, when it is done. An article that fails, or takes longer than 30 minutes, costs nothing. You can follow it on the [articles page](https://trysnow.ai/dashboard/articles).

## Price

The price depends on the length:

| Length | Words | Price |
| --- | --- | --- |
| `short` | 800 to 1,000 | 1,000 credits |
| `medium` | 1,800 to 2,000 | 2,000 credits |
| `long` | 2,800 to 3,000 | 3,000 credits |

> **Note:** Article prices are provisional until generation costs are measured. The price in the tool description and in the 428 answer is the one charged.

## Calls

**content_write_article: MCP**

```json
{
  "name": "content_write_article",
  "arguments": {
    "site": "acme.com",
    "title": "How to choose a CRM for your startup",
    "length": "medium",
    "type": "guide",
    "instructions": "Lead with the three questions to ask before a demo."
  }
}
```

**content_write_article: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/content_write_article \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "site": "acme.com",
  "title": "How to choose a CRM for your startup",
  "length": "medium",
  "type": "guide",
  "instructions": "Lead with the three questions to ask before a demo."
}'
```

**content_write_article: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/content_write_article", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "site": "acme.com",
    "title": "How to choose a CRM for your startup",
    "length": "medium",
    "type": "guide",
    "instructions": "Lead with the three questions to ask before a demo."
  }),
});
const result = await response.json();
```

**content_write_article: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/content_write_article",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "site": "acme.com",
        "title": "How to choose a CRM for your startup",
        "length": "medium",
        "type": "guide",
        "instructions": "Lead with the three questions to ask before a demo.",
    },
)
print(response.json())
```

**content_get_article: MCP**

```json
{
  "name": "content_get_article",
  "arguments": {
    "article_id": "art_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
    "wait_seconds": 30
  }
}
```

**content_get_article: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/content_get_article \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "article_id": "art_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
  "wait_seconds": 30
}'
```

**content_get_article: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/content_get_article", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "article_id": "art_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
    "wait_seconds": 30
  }),
});
const result = await response.json();
```

**content_get_article: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/content_get_article",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "article_id": "art_01939f2e-6b3c-7a41-9d58-3e7c1b0a4f26",
        "wait_seconds": 30,
    },
)
print(response.json())
```

## What an article looks like

| Field | Meaning |
| --- | --- |
| `article_id` | The article, as it appears on the articles page. |
| `status` | `writing`, `done` or `failed`. |
| `phase`, `progress` | What the writer is doing, and 0 to 100. |
| `title`, `word_count` | The title and the length. |
| `markdown` | The article. Only when `done`. |
| `meta` | The meta title and description. |
| `article_url` | The article's page in your dashboard. |
| `message` | What to do next, while it is writing or after it failed. |

## Rules

- The same arguments within 30 minutes return the article already being written, with nothing more charged. Pass `fresh: true` for a new one.
- 3 articles can be written at once per organization. One more answers 429 `rate-limited`.
- The `brand` you send is saved for the site and reused next time.
- Over REST, send `Accept: text/event-stream` to stream progress to the end. See [Tools](https://trysnow.ai/docs/tools).
- `GET /articles` and `GET /articles/<id>` read them over REST. See [REST API](https://trysnow.ai/docs/reference/rest).

Every docs page as Markdown: https://trysnow.ai/llms.txt
