Feature · Bring your own API key

Write your book on your own API key

Connect one OpenRouter key and AIWriteBook runs your chapters, outlines, covers and images on it. Each action that runs on your key costs 1 credit, and OpenRouter bills you directly for the model. For chapters you can pick any of the 100+ text models on OpenRouter.

See the Ultra plan
  • 1 credit per action on your key
  • 100+ models for chapter writing
  • Key stored encrypted, shown only as a masked hint
Your Own API Keys
OpenRouterConnected

Keysk-o…c9d2

What this key covers

  • Writing chapters, outlines and everything else text-basedCovered
  • Running the reasoning models used for complex chaptersCovered
  • Creating chapter images, book covers and visual book imagesCovered
The settings page after a successful key check. The key itself is never shown again.

Most AI book tools make you choose: either you use the models they picked and pay their prices, or you manage raw API keys yourself and get a blank text box. AIWriteBook works without a key, on credits, with Gemini, Claude and Grok built in. The key is an option for authors who want more control over the model and the bill.

If you have used a key-first tool such as NovelCrafter, the difference is that here the key is optional and plugs into the full workflow: outline, story bible, chapters, cover, formatting and publishing. If you are still comparing tools, our guide to the best AI writing tools for authors covers how the options differ.

What runs on your key

One OpenRouter key covers the writing and the pictures. A separate, optional ElevenLabs key covers audiobook narration.

Chapters and outlines

Chapter drafts, rewrites, outlines and every other text action in the app run on your OpenRouter key.

Your model for each chapter

When you write or regenerate a chapter, open "All other models" and pick any text model in the OpenRouter catalog. The rest of the app keeps the models AIWriteBook chose, billed through your key.

Reasoning models

The reasoning models used for complex chapters also run on your key, so long, tangled chapters are billed to your OpenRouter account.

Covers and chapter images

Book covers and chapter images are generated through your key, at 1 credit each instead of the normal price.

Visual books

Character and world images, the style image, page illustrations, image edits, covers and translation each cost 1 credit when your key does the work.

Audiobook narration

Add an ElevenLabs key with Text to Speech access and your audiobooks are narrated on it. Without it, narration runs on our keys at the normal credit price.

Connect your key in four steps

Setup happens once, on OpenRouter and in Settings. After that, every action tries your key first.

1.OpenRouter account

Create an account and buy credits

Sign up at openrouter.ai with Google or email, open Credits and buy credits. Turn on Auto Top Up too, so a long book never stops halfway because the balance ran dry.

2.API key

Create a key and copy it straight away

In API Keys, click New Key, name it something like "AIWriteBook" and copy the key that starts with sk-or-v1-. OpenRouter shows it only once.

3.Settings

Paste it under Your Own API Keys

Save the key and AIWriteBook runs a live check against OpenRouter. You get a status for each thing the key is used for: covered, not covered, or not verified, with the reason and the fix when something is missing.

4.Chapter model

Pick a model and write

In the chapter model picker, open "All other models", search the catalog and click "Check and use this model". A quick live check confirms the model works with your key before the chapter is written.

Choose the model that writes like you want

The built-in picker offers Gemini, Claude and Grok. With your key, the same picker opens the whole OpenRouter catalog: families from Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek and more, filtered to models that produce text. You choose per chapter, so one chapter can try a new model while the rest of the book stays on the one you trust.

Model families on OpenRouter

ClaudeGPTGeminiLlamaMistralDeepSeek

Model for this chapter

GeminiClaudeGrok
All other modelsIn use
Search models, e.g. "llama" or "mistral"
Check and use this model

1 credit per chapter. You pay OpenRouter for the model itself.

The chapter model picker with a key connected.

When a model says no

  • Models set their own content rules. If the one you picked refuses a scene, the chapter tells you it was refused and suggests a more permissive model, so you can switch and run it again.
  • Some steps need structured output. If a model cannot produce it, you are told to pick a different model instead of getting a broken result.
  • If a model has been retired or your key is restricted from using it, the check fails before any writing starts, and you can open what OpenRouter said.

Credits only, or credits plus your key

Both ways write the same books with the same workflow. What changes is where the model cost lands and which models you can pick.

On AIWriteBook credits

  • Each chapter costs the normal credit price of the model you choose.
  • Chapter models: Gemini, Claude and Grok.
  • Covers and images are charged at their normal credit price.
  • Nothing to set up.
  • One bill: your AIWriteBook plan.

With your own key

  • Each action that runs on your key costs 1 credit.
  • Chapter models: any of the 100+ text models on OpenRouter, chosen per chapter.
  • Covers, chapter images and visual book images cost 1 credit each on your key.
  • A one-time setup: an OpenRouter account, some credits and a key.
  • Two bills: your plan, plus model usage at OpenRouter's rates.

The rules, in plain words

Six things worth knowing before you connect a key.

1

1 credit only when your key does the work

The 1-credit price applies when the action actually runs on your key. If an action includes a step that has to run on our keys, the whole action is charged at the normal credit price.

2

Your key is always tried first

Once the OpenRouter key is connected, every action that can use it runs on it.

3

A failing key stops the action

If OpenRouter rejects the key, it is disabled or it is out of credit, the action stops with an error instead of quietly running on our keys, and no credits are charged. Top up or re-enable the key, or remove it to go back to credits.

4

Every action costs at least 1 credit

A balance of 0 credits blocks actions even with a key connected, so keep a small credit balance on your plan.

5

The key is stored encrypted

After you save it, the key is never shown back to you, only a masked hint with its first and last characters. Replace or remove it at any time.

6

The check tells you what to fix

If the key cannot do something, the status says why, such as a key limited to certain models or an account with no credit, and what to change in the OpenRouter console.

Who connects their own key

Most authors write on credits and never need a key. These are the ones who do.

You already pay OpenRouter

You have credits there for other projects. Your book can use the same balance instead of a second model budget.

You have a favourite model

You found a model whose prose you like, or one that handles your genre better. Write your chapters with it inside the full book workflow.

You write a lot of books

Agencies, ghostwriters and series authors who run many chapters and rewrites. At 1 credit per action, the model cost sits on an OpenRouter bill you can watch and top up yourself.

Available on the Ultra plan

Bring your own API key is part of the Ultra plan. Everyone else writes on credits with the built-in models, and can move to Ultra when they want their own key.

sk-or-••••OpenRouter100+ models

What writers say about AIWriteBook

Real reviews left on AppSumo, Trustpilot and the other places our customers use.

4.7443 reviews onAppSumoCapterraTAAFTToolify

Questions about your own API key

How the key, the credits and the models fit together.

Still deciding whether a key is worth it for your book?Ask support

Start on credits, bring your key when you want it

Create a free account and write your first chapters with the built-in models. When you move to Ultra, connect your OpenRouter key and pick any model you like.

  • Free to start
  • Your key is optional
  • 1 credit per action on your key