New Payhawk offices in Stockholm and Warsaw | Learn more

Connecting your AI providers to AI token spend

Prev Next

Connecting your AI providers to AI token spend adds the details a Payhawk payment can't show, such as models, tokens, projects, API keys, and people. You connect each provider with a read-only Administrator key from that provider.

What each provider needs

The following table lists what you need to connect each provider and who can create it.

Provider

What you paste

Who can create it

Anthropic API

Admin key

An organization admin, in the Claude Console

OpenAI API

Admin key

An organization owner

OpenRouter

Management key

An Org Admin

Fireworks AI

API key of an account administrator

An account administrator

Claude Enterprise

Analytics API key

The Primary Owner

ChatGPT Enterprise

Workspace Admin key and Workspace ID

A workspace Owner or Admin (Enterprise and Edu plans only)

Cursor

Admin API key

A team admin (Enterprise plans only)

GitHub Copilot

Token and the organization's login

An organization owner

AWS Bedrock

Access key ID and secret access key of a read-only IAM user

An AWS administrator. Cost Explorer must be on.

Google Cloud

Service account key (JSON) and the billing export table

A Google Cloud administrator. The BigQuery billing export must be on.

Azure OpenAI

Tenant ID, client ID, and client secret of an app registration, and the subscription ID

An Azure administrator. The app registration needs the Cost Management Reader role.

  • For Claude Enterprise, ChatGPT Enterprise, and Cursor, you can also enter what you pay per seat in Seat price per month ($), because these providers don't report seat fees.

  • Providers change their settings from time to time. For the current steps to create each key, see Setup process when you connect the provider.

Connecting a provider

To connect an AI provider:

  1. In the Payhawk Web Portal, open the app switcher in the top-left corner and go to AI token spend.

  2. Click on Connect a provider.

  3. Under Available providers, find the provider and click on Connect.

  4. Follow the Setup process to create the key with the provider. If someone else manages the provider, click on Copy the steps for them and send them the steps.

  5. Paste the key and any other details the provider needs.

  6. Optionally, enter the Seat price per month ($).

  7. Select the I have authority to connect this account for my company, and my company agrees checkbox.

  8. Click on Continue.

The first figures will show about a minute later. AI token spend reads the last 31 days first, and then the rest of the last 12 months.

Syncing the figures

The figures update when you click on Sync for a provider on the Providers page. Only the person who connected a provider can sync it. You can see when each provider was last synced under Your providers.

Each sync reads the last 62 days again, because providers settle their bills late, and any of the last 12 months that are not stored yet.

Sharing the figures with your company

By default, each person sees only the providers they connected. A Payhawk Administrator can share the figures with everyone who can open AI token spend. In a group, the group's Payhawk Administrator does this.

To share the figures with your company:

  1. In AI token spend, go to the Providers page.

  2. Under Who sees these figures, click on Share with your company.

Everyone who opens AI token spend then sees every connected provider and its figures. Spend per person and the owner of each key stay visible to Payhawk Administrators only. To stop sharing, click on Stop sharing.

Removing a provider and deleting your data

The person who connected a provider or a Payhawk Administrator can remove it. Removing a provider deletes its key and its figures, and can't be undone.

To remove a provider:

  1. In AI token spend, go to the Providers page.

  2. Under Your providers, click on Remove next to the provider.

To remove all of your keys and figures at once, click on Delete my data under Who sees these figures.

Useful resources