Connect OpenAI API to AI Spend Management

Overview

Connect OpenAI API so Ramp can import your API cost and usage data into AI Spend Management. You can connect automatically with Ramp for Chrome or manually with an Admin API key.

Note: Provider setup is the same whether your business has a standalone AI Spend Management account or a core Ramp account. The screenshots below show an older connection name; in Ramp, look for OpenAI API.

Before you connect OpenAI API

You must belong to an OpenAI Platform organization. Personal accounts cannot connect.

Your Ramp role must allow you to connect providers. See roles that can connect providers for core and standalone accounts. If you do not have one of these roles, ask someone who does to connect the provider.

Connect automatically with Ramp for Chrome

This option is available only when automatic setup is enabled for your business, you use a supported browser with Ramp for Chrome installed, and you have permission to administer AI Spend Management. If you have permission to administer AI Spend Management but do not see Connect automatically, use the manual Admin API key instructions instead.

  1. Install Ramp for Chrome.
  2. Open Connect OpenAI API in Ramp.
  3. Select Connect automatically. If you are an OpenAI Platform admin, Ramp creates the API key. Otherwise, Ramp identifies your admins and emails them instructions.

Ramp Connect with Ramp Chrome extension card with the Connect automatically button highlighted

Connect manually with an Admin API key

  1. Open OpenAI Admin API keys and select Create admin key.

  2. Give the key a descriptive name and set its expiration.

    OpenAI dialog for naming an admin key and setting its expiration

  3. Copy the key, open Connect OpenAI API in Ramp, paste the key, and select Connect.

    Ramp manual connection form highlighting the Admin API key field

Troubleshoot connecting OpenAI API

Resolve an "Invalid credentials" error with a valid Admin API key

An OpenAI organization's IP allowlist can block Ramp even when the Admin API key is valid. This can appear as an "Invalid credentials" error rather than an IP restriction message.

  1. Ask your OpenAI or security administrator whether IP restrictions apply to the organization you are trying to connect.
  2. If IP restrictions are enabled, contact Ramp Support for the current approved Ramp outbound IP addresses. Ask your administrator to add them to that organization's allowlist.
  3. Retry the connection using that organization's Admin API key.

If it still fails, share the exact error text, the OpenAI organization you selected, and the date, time, and time zone of your retry with Ramp Support. Never send your API key.

Check whether you are an OpenAI admin

  1. Open OpenAI Admin API keys.
  2. If you are an admin, Admin keys appears in the left navigation and you can select Create new Admin key. This is different from the API keys page.

OpenAI Admin keys page confirming admin access

Get help from an OpenAI admin

  1. Open Settings in OpenAI Platform, then select Members.

  2. Find members with the Organization Owner label.

    OpenAI Platform Members page showing the Organization Owner label

  3. Open Connect OpenAI API in Ramp.

  4. Next to "Not the right person?", select Get help. Enter the OpenAI admin's email under Choose who to ask, then select Get help to send them the connection instructions. Get help appears only if you can manage users in Ramp; if you do not see it, ask someone who can to send the request.

    Ramp Connect OpenAI API page with the Get help option highlighted