Openai

AI

OpenAI

AI API provider for GPT-4, o1, embeddings, and other foundation models used in production AI applications worldwide.

What gets synced

Roiva writes these metric observations on each sync. Reference the key in a value formula to use this data in your ROI calculations.

API Usage

openai.usage.spend Total Spend currency
openai.usage.cost_per_request Cost per Request currency
openai.usage.cost_per_million_output_tokens Cost per Million Output Tokens currency
openai.usage.input_tokens Input Tokens count
openai.usage.output_tokens Output Tokens count
openai.usage.total_tokens Total Tokens count
openai.usage.request_count Request Count count
openai.usage.model_input_tokens Per-model input tokens (one row per model, the model in the row's dimensions) count
openai.usage.model_output_tokens Per-model output tokens (one row per model, the model in the row's dimensions) count
openai.usage.model_total_tokens Per-model total tokens (one row per model, the model in the row's dimensions) count
openai.usage.model_request_count Per-model request count (one row per model, the model in the row's dimensions) count
Common use cases
  • Track API spend per initiative to measure the cost side of AI ROI
  • Monitor token consumption across models to identify efficiency opportunities
  • Measure request volume growth as a proxy for AI feature adoption
  • Compare cost-per-task before and after model or prompt optimizations
How to connect

You connect OpenAI from inside Roiva, so you need a Roiva workspace first. Sign in to connect it now. New to Roiva? Take the free assessment and create your workspace at the end, or request an invite.

  1. In OpenAI: Sign in as an organization owner and go to platform.openai.com/settings/organization/admin-keys
  2. In OpenAI: Create an Admin key (starts with sk-admin-) — a regular project or user API key cannot read usage or cost
  3. Back in Roiva: Paste the Admin key here and save the connection
  4. Back in Roiva: The connection page checks each step and says what's missing. Once it's all ticked, click Test Connection
  5. Back in Roiva: After connecting, link this connection to an initiative on the Initiatives tab
Tips for capturing value
  • Usage data is available for the past 90 days via the API — older data requires exporting from the OpenAI dashboard
  • Spend comes straight from OpenAI's billing, so it matches your invoice rather than being estimated from token counts
  • Cost-per-unit (per document, per call, per user) is more meaningful than total cost for ROI measurement
  • Pairing OpenAI cost data with outcome data from HubSpot, Zendesk, or Stripe gives you a complete ROI picture
  • If you also map OpenAI's invoice to the same initiative in QuickBooks, Xero, NetSuite, Brex or Ramp, the invoice is left out in any month this connection books, because it carries the whole OpenAI bill and this connection books OpenAI's own cost report, for the projects this link claims. An allocation rule for OpenAI, or a locked period, keeps the invoice instead, and this connection books nothing that month
Need help?

Email hello@roiva.ai with what you're seeing, and you'll hear back within one business day.

Openai
OpenAI

Start with the free AI ROI exposure assessment, then connect OpenAI once your workspace is set up.

Get your exposure report → Sign in to connect