> For the complete documentation index, see [llms.txt](https://tmniche-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tmniche-docs.keywordrush.com/account-and-licensing/byo-api-key.md).

# Premium models (BYO API key)

**This is completely optional.** By default, Too Much Niche generates everything with its own managed AI (**Too Much Niche AI**) — no API key, and the AI costs are fully covered by your subscription. You only need this page if you want to generate with **higher-quality models** using your own OpenAI or Claude key.

{% hint style="info" %}
Bringing your own key is available on the **Growth** and **Agency** tiers.
{% endhint %}

## Why bring your own key?

* **Higher quality** — generate with **Advanced** or **Premium** models.
* **More articles** — articles generated with your key cost **½ credit** each, so your monthly allowance goes twice as far.

## You choose a quality, not a model

In **AI Settings** you pick a provider and a **quality level** — not a specific model:

* **Advanced** — a stronger writing model; recommended for most plans and articles.
* **Premium** — a frontier-grade model for every plan and article (highest provider cost).

Behind each level, TMN uses the latest models (Opus / Sonnet, or the latest GPT) with an optimal mix of model and reasoning effort — the best quality without wasting tokens.

## You pay your provider directly

With your own key, your AI usage is billed by **OpenAI or Anthropic directly**, at their rates. TMN doesn't charge for it — the ½-credit cost is simply how it counts against your monthly limit.

## Security

Your API key is stored **encrypted** in WordPress. It's sent securely to the Too Much Niche server **only while a generation job is running**, and the server **purges it the moment the job completes**.

## Set it up

Open **Too Much Niche → AI Settings**:

1. Choose your **AI provider** — *Too Much Niche AI* (default, included), *My OpenAI API key*, or *My Claude API key*.
2. For OpenAI or Claude, **paste your API key** — create one in the [OpenAI dashboard](https://platform.openai.com/api-keys) or the [Anthropic Console](https://console.anthropic.com/settings/keys). TMN validates it with the provider and stores it encrypted.
3. Pick your **AI quality** — Advanced or Premium.

New plans and articles then generate with your key.

![AI Settings — provider, API key, and quality](/files/ZHHg9J7U5NQdHQFb3yTM)

## Next

* [**Plans & limits**](/account-and-licensing/plans-and-limits.md) — how credits and limits work.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tmniche-docs.keywordrush.com/account-and-licensing/byo-api-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
