AI Providers and Usage

Four AI features in Leed run on a model that someone has to pay for: the Leed Assistant, Ask about this view, campaign step runs and the review step’s critic. By default they run on Leed’s own model, hosted on Cloudflare, and each request counts toward your plan’s monthly AI allowance. An Administrator can instead add your company’s own API key for OpenAI, Anthropic, xAI (Grok) or Google (Gemini), and choose which provider each of those features uses. Requests on your own key never count toward the allowance.

Everything on this page is managed in one place: Settings → AI.

What counts as an AI request

The allowance counts requests, not tokens or words. One request is:

FeatureOne request is
Leed AssistantOne message you send in the assistant
Ask about this viewOne question you ask
Campaign runsOne campaign step run in Leed, whether started with Run in Leed, with leed campaign run or over the Operator MCP (refunded if the run fails to start)
Review criticOne run of the campaign Review step

A request is counted when it starts, before the model answers, so a request that later fails still counts. Tokens are recorded too, so you can see them in your usage, but the limit is on requests.

Other AI helpers are not counted: page summaries and keywords, alt text, feature image generation, the editor’s drafting shortcut, transcription, document text extraction, and search on your published documentation. They never count toward the allowance, and any plan gate they already had is unchanged.

Your plan’s monthly allowance

PlanAI requests a month on Leed’s model
Free50
Starter500
Growth2,000
EnterpriseUnlimited

The allowance covers the current UTC calendar month and resets at the start of the next one. Leed can set a different number for your company as part of a deal; your usage card always shows your company’s own number.

Some features also need a plan of their own. Ask about this view and campaigns need Growth, so on Free and Starter the allowance is used by the assistant alone. See Feature availability by plan.

When you reach the limit

The next request on Leed’s model is refused before anything runs. In the CMS you see a notice saying your company has used this month’s AI requests on Leed’s model, with how many of how many, and what you can do about it:

  • An Administrator is pointed to Settings → AI to add your company’s own key.
  • Someone with billing access is pointed to Plans & billing to upgrade.
  • Anyone else is asked to have an admin upgrade or add a key.

Every notice also says the same work can be done with the Leed plugin and your own AI tool, which does not use Leed’s model or its limit.

Behind the notice is the standard 402 upgrade body, with reason: "quota_exceeded" and feature: "aiRequests", carrying your allowance as quota and your usage as used. See When a feature is gated.

The AI screen

Settings → AI has four sections.

Usage this month

How many AI requests your company has made on Leed’s model this month, out of your allowance, with a bar and the date it resets. On an unlimited plan it says your plan has no monthly limit instead.

Below that, a table breaks the month down by feature, with one column for Leed’s model and one for Your keys, and a line counting the requests made on your own keys. Those never count toward the limit.

Providers

One row for Leed’s model, which is always available, and one for each provider you can add a key for:

ProviderStatus it can show
Leed’s modelAlways available
OpenAINot set up, Working or Failing
AnthropicNot set up, Working or Failing
xAI (Grok)Not set up, Working or Failing
Google (Gemini)Not set up, Working or Failing

A provider row has Add key, or Rotate and Remove once a key is set. A failing row shows the provider’s error.

Which provider the CMS uses

A Company default, used by every feature, and an optional choice for each feature: Assistant, Ask about this view, Campaign runs and Review critic. Each feature can be left on Company default. Only Leed’s model and providers whose key is working can be chosen. Press Save choices to keep your changes.

Use your own agent instead

A reminder that everything the assistant, Ask and campaign runs do here can also be done with the Leed plugin and your own agent or model, without Leed’s model or its limit.

Your own provider keys

flowchart LR
    A["Add key"] --> B{"Checked with<br/>the provider"}
    B -- "Valid" --> C["Saved as your<br/>company's secret"]
    B -- "Invalid" --> D["Refused with the<br/>provider's reason"]
    C --> E["Shown only as<br/>its last four characters"]
  • Checked when saved. Adding or rotating a key checks it with the provider first. An invalid key is refused with the provider’s reason and nothing is saved.
  • Write-only afterwards. After it’s saved, a key is shown only as its last four characters and when it was last updated. It is never returned in full again, by the CMS, the API, MCP or the CLI, and it is never written to a log.
  • Your company’s secret. A key is stored encrypted, as a secret that belongs to your company alone, and only your company’s requests can use it. It is removed along with your company’s other secrets.
  • Audited. Adding, rotating and removing a key are each recorded in your audit log.
  • Never counted. Requests on your own key are recorded so you can see them on the usage card, and never count toward Leed’s allowance.

When your key stops working

If your key is revoked or runs out of credit, the request fails with a message saying it was your company’s key, and the provider row shows Failing with the provider’s error. Leed never quietly falls back to its own model. Rotate the key, or switch the feature back to Leed’s model.

Campaign reviews on your own key

The Review step is meant to be independent: the critic should come from a different model family from the one that drafted the content. When drafting and reviewing run on one family, the review is not independent, and a person accepts it with Accept review on the Plan calendar. With your own OpenAI, Grok or Gemini key, drafting and reviewing use one model family, so expect to accept those reviews yourself. See Running a campaign’s steps.

ESC