Set up an optional AI provider

Save an AI-provider connection and check which models are available.

Before you begin
  • Sign in to your workspace with permission to edit the book.
  • A provider account and API key; provider usage can incur charges. AI setup is not required to write or import a book.
On this page

The easiest option

Don't have an API key? Choose Connect with OpenRouter at the top of AI Settings instead. It connects in one click with no key to copy. See the Connect AI with OpenRouter guide.

Watch the whole flow

  1. Open the connection form

    A real, unedited recording. There is no narration — on-screen captions describe each action, and a full transcript is provided beneath the player. No real API key is entered or saved.

    Opening the connection form for OpenRouter. Provider Name and Available Models default sensibly — paste a real key to finish.
    Transcript

    1. Starting on AI Settings with no providers configured. 2. Choosing Add Provider, then OpenRouter as the provider type. 3. Provider Name and Available Models default sensibly. 4. Focusing the masked API Key field — the only field you must fill in. 5. Reviewing Priority and checking Enable this provider. 6. Add Provider is not chosen here since no real key was entered.

  2. Verify a saved connection and sync live pricing

    A second real, unedited recording, picking up once a provider is already connected — start to finish, with on-screen captions describing each action and a full transcript beneath the player.

    Test confirms a saved connection still works. Sync From Providers pulls current per-model pricing straight from OpenRouter.
    Transcript

    1. Starting on AI Settings, with a provider already configured and enabled. 2. Choosing Test to verify the connection. 3. Scrolling to Model Pricing Overrides. 4. Choosing Sync From Providers. 5. Live per-model pricing is pulled in from OpenRouter.

Set up an optional AI provider

  1. Open AI Settings

    Use the workspace navigation to open AI Settings, then choose Add Provider.

    Choose the provider type first — OpenAI, Anthropic, OpenRouter, or a custom OpenAI-compatible endpoint.
    The Add AI Provider dialog listing OpenAI, Anthropic, OpenRouter, and Custom Provider options

    Choose the provider type first — OpenAI, Anthropic, OpenRouter, or a custom OpenAI-compatible endpoint.

  2. Select the provider

    Choose the provider that issued your key. Enter a connection name and paste the key into the masked API key field.

    The connection form. Provider Name and Available Models default sensibly — the API Key field is the only one you must fill in.
    The provider connection form showing Provider Name, a masked API Key field, Available Models, Priority, and an Enable this provider checkbox

    The connection form. Provider Name and Available Models default sensibly — the API Key field is the only one you must fill in.

  3. Save the connection

    Check Enable this provider and choose Add Provider. Use the connection test if available and review the models offered.

  4. Choose a model for a task

    Open the intended AI tool and select a currently available model. Read any cost estimate before running it.

Verify a connection and keep pricing current

  1. Test a saved connection

    On an existing provider's card, choose Test. This sends a small real request to confirm the key still works — useful after rotating a key or if requests start failing.

  2. Sync live model pricing

    In Model Pricing Overrides, choose Sync From Providers to pull current per-model input/output pricing directly from the provider (OpenRouter today; other providers stay manual unless they expose a stable pricing API). A summary reports how many models were synced and how many were skipped.

  3. Override a price by hand if needed

    Edit any Input $/1M, Output $/1M, Image $/gen, or Image $/ref field directly, then choose Save Pricing Overrides. Manual edits stay until the next sync overwrites them, or turn off Automatically sync model pricing daily to keep them permanently.

Check the result

The enabled connection is listed and the intended tool offers an available model. Model Pricing Overrides shows non-zero, current figures for models the sync covers.

Common problems

  • No models: check the provider, key validity, enabled status and current workspace.
  • Authentication failure: replace an invalid or revoked key through settings; never paste keys into manuscript text or screenshots.
  • A model's pricing stays at 0 after syncing: that model isn't in the provider's synced catalog yet — set its price manually, or choose a different model.