> This page is for English.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tgnow.cc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tgnow.cc/_mcp/server.

# AI settings

This is where you connect language models for [Commenting](/en/modules/commenting), [Warmup](/en/modules/warmup), **AI scoring of matches** in [Parser](/en/modules/parser-audience), [Newsroom](/en/modules/newsroom) and the **AI profile generator**. Without a model, these features don't work. You get an API key from a provider and pay them at their rates.

## Add a model

**Add model** → **Provider** → **API key** → **Check** → choose a model → **Add**. TGNOW sends a test request and adds the model if it answers. The **Get a key** link takes you to the provider.

Good places to start are OpenRouter (one key for hundreds of models, some free) or Google Gemini (a free tier with limits). Free models are slower and are unlikely to be enough for constant work.

> **Note**
>
> **Custom address (OpenAI-compatible)** takes an address with `/v1`, for example `https://api.example.com/v1`. A model on `localhost` (LM Studio, Ollama) won't work: the address must be reachable from the internet.

## Several models

Up to 10 models. The order in the list sets the priority: the top one is **Primary**, the ones below are **Backup**. With **Automatic switching** on (the default), a request the model didn't answer goes to the next one. A model that refused is paused for a while. **Test** lifts the pause if the model answers.

## Limits

Model menu → **Limits**. Set them a little below the provider's limits.

| Field                   | Default |
| ----------------------- | ------- |
| **Requests per minute** | 28      |
| **Requests per day**    | 14,000  |
| **Tokens per day**      | 950,000 |

Daily counters reset at midnight UTC.

> **Warning**
>
> TGNOW limits don't replace a spending cap at the provider: set one in your provider account. Newsroom isn't bound by the limits on this page; its spending is shown in the "Spent on LLM" line. Tokens are spent even if the comment is never published.

## Tips

* Take the backup model from a different provider: an outage at one won't stop work.
* You need an API key; a ChatGPT Plus or Claude Pro subscription won't do.
* Only the last four characters of a key are shown. If a key leaked, revoke it at the provider and add the model again.
* A model doesn't answer: click **Test**, and the reason appears in the model's row.