> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorcost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI and Anthropic

> Connect an OpenAI or Anthropic organisation with an admin key so TensorCost can read usage and cost.

> [!NOTE]
>
> Admin only. Open **Connect › Sources**, then the **AI / LLM providers** tab.

Both connections read your organisation's usage and cost with an admin key. An admin key can't make model calls.

| | OpenAI | Anthropic |
| - | - | - |
| Key you need | Admin key, starts `sk-admin-` | Admin key, starts `sk-ant-admin` |
| Where to create it | platform.openai.com, Settings, Organization, Admin keys | console.anthropic.com, Settings, Admin keys (organisation owners only) |
| Also asked | Organization ID (optional) | Nothing else |
| Import cadence | Every 15 minutes | Every 15 minutes |

> [!WARNING]
>
> A standard API key (`sk-ant-api03-...` or an ordinary OpenAI key) is accepted, but it can't read usage or cost. The connection saves and shows no synced spend. The form checks the prefix and tells you when it looks wrong.

## What you do

**1. Create an admin key at the provider**

Use the page in the table above. Keep it somewhere safe; providers show it once.

**2. Add it in TensorCost**

Choose the provider card, paste the key, and save. The card reads "Checking access. The first usage import runs within 15 minutes."

**3. Check it worked**

Use **Check now** to re-run the access check. On success the console says the connection passed its check and imports start on the next run. **Settings › Connection status** shows whether it is syncing.

## What appears, and the limit

Usage and cost appear by model, every 15 minutes.

A new connection reads only from midnight UTC on the day you connect, so there is no history on day one. If a connection is down, it fills in at most the last 7 days when it recovers.

To see earlier months, download a usage export from the provider's organisation usage page and upload it in **Connect › Upload data**. Uploaded days are labelled as uploaded, and once the connected account holds a day, its data replaces the upload. See [Upload data](https://docs.tensorcost.com/connect/upload-data.md).

Spend counted through your SDK or proxy and spend read from the provider are matched so the same call is never counted twice; see [How TensorCost counts AI spend](https://docs.tensorcost.com/concepts.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.