メインコンテンツへスキップ

OpenAI Integration

Introduction

The Attribute platform can be integrated with various third-party cloud services to provide a consolidated cost view and complete cost attribution. This document describes the steps required to complete the integration with OpenAI billing.

Requirements

To obtain secure access to OpenAI billing information, Attribute needs an Admin API key with Usage API scope permissions.

Follow the steps below to generate this key and securely share it with Attribute.

Generating a New Admin API Key

  1. Sign in to your OpenAI account.

    注意

    You'll need billing permissions for your organization — typically the Admin role.

  2. Click the settings (gear) icon in the top-right corner, then navigate to Admin keys.

    OpenAI developer platform with the settings gear icon in the top-right corner highlighted by a red box and arrow

    OpenAI Organization settings page with the "Admin keys" item highlighted in the left sidebar

  3. Click Create new Admin key and configure the key:

    1. Choose Restricted permissions.
    2. Change Usage API Scope to Read.
    3. Click Create admin key.

    Create new admin key dialog with four numbered annotations: (1) the Create new Admin key button at top-right, (2) the Restricted permissions tab selected, (3) Usage API Scope set to Read, and (4) the Create admin key button

  4. Save your secret key in a safe place — you won't be able to view it again.

    Save your key dialog showing the new sk-admin-... key with the Copy button highlighted

  5. Verify the key has the correct permissions using the following command (replace YOUR_API_KEY with the key you just generated):

    curl --location 'https://api.openai.com/v1/usage?date=2025-06-22' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  6. Securely share the key with Attribute.

Contact

If you require any additional assistance, please contact Attribute's support at [email protected].

Alternatively, you can request to join a shared Slack channel for support. To request access, email [email protected] with your details.


Trademarks: OpenAI is a trademark of OpenAI. All other trademarks are the property of their respective owners.