Use your own API key

You pay the provider directly. A ChatGPT or Claude subscription doesn't include API access, and an API key is not your PDF Pals license key.

Get an API key

Most providers need billing or credits first. For Azure, see Azure OpenAI; for Ollama and LM Studio, see local servers.

Add a provider

  1. Open Settings ▸ AI Providers and click + (or Add Provider).
  2. Choose the provider and click Next.
  3. Enter a Name and paste the API key. Leave Base URL empty for the default.
  4. Click Next.
  5. Choose Automatically include all provider models or Use selected models only, then click Add Provider.
Settings, AI Providers listing Local Models, OpenAI, Mistral, OpenRouter and Google AI

Right-click a provider for Test Connection. On its page, Refresh updates the model list and Manage Models… picks which are shown.

Choose the model PDF Pals uses

  • All chats: Settings ▸ Models ▸ Answer model, or right-click a provider and choose Set as Default.
  • One chat: click the model button next to the question field.

Indexing uses the Embedding model in Settings ▸ Models. In the website edition, OpenAI text-embedding-3-small sends document text to OpenAI; the local search model doesn't.

Prompt caching

For OpenAI, Anthropic and OpenRouter, Prompt caching on the provider's page makes follow-ups cheaper; the first question can cost up to 25% more.