Skip to content
Docs

Creating an Ollama Cloud API key

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Ollama’s own documentation: Authentication, Introduction, Cloud, Balance and Pricing. Retrieved 2026-10-25.

Ollama Cloud runs models on Ollama’s servers. Calling it directly at https://ollama.com needs an API key in an Authorization: Bearer <key> header, and no Ollama installation. A server you run yourself is a different connection: see the self-hosted guide.

  1. Sign in, or create an account, at ollama.com.
  2. Check that the account can use the models you want. A Free account gets starter usage credits for a smaller set of starter models. Buying usage credits, or a Pro, Max or Team plan, unlocks all cloud models (Pricing).
  3. Open your account settings and go to API keys (direct link).
  4. Create a key and copy it into a secrets vault. Keep it out of browser code and source control.
  5. Use the model names that GET https://ollama.com/api/tags returns, such as gemma4:31b. The :cloud suffix shown in the Ollama app and CLI is for requests that go through a local Ollama server, not for direct calls to ollama.com.

Operational notes:

  • Ollama’s API is at https://ollama.com/api, its OpenAI-compatible API at https://ollama.com/v1, and its Anthropic-compatible client base URL is https://ollama.com. All of them take the same Bearer header.
  • To check a key, call GET https://ollama.com/api/balance with it. A valid key returns the account’s included and purchased balances, and a rejected one returns 401. The endpoint allows 10 requests per minute per user.
  • Ollama API keys do not expire. To rotate one, create a new key, then revoke the old one on the same API keys page.
  • Usage is billed in tokens at each model’s rate, first from the plan’s included credits, then from purchased credits. Check it on the usage page.

Open Connections under Credentials, choose Ollama, and pick Ollama Cloud API key. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Ollama in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.