OpenAI integration

Know what each OpenAI call costs—and who it serves.

Add the Grow or Die SDK to your backend. It records provider-returned usage facts from calls your application already makes, then prices those facts on the Grow or Die server.

Start with your product

What it reads

Usage facts, not conversation content

  • Requested and resolved model, operation, and provider request ID.
  • Uncached input, cached input, output, and reasoning tokens when OpenAI reports them.
  • Latency, stream completion, success, error, timeout, and cancellation state.
  • Opaque account, user, visitor, feature, and prompt-version labels you explicitly attach.

What stays private

Your OpenAI key and content never come to us

  • No prompts, messages, tool arguments, or generated responses.
  • No OpenAI API key; your own OpenAI client continues to make the call.
  • No token price is calculated in the SDK or trusted from the browser.

How to connect

Wrap one real server-side call

  1. Choose the JavaScript, Python, Ruby, Java, Go, .NET, or PHP server SDK.
  2. Generate a site-scoped, write-only Grow or Die ingest key.
  3. Wrap your existing OpenAI client, or use the typed observation helper around the call.
  4. Send one request and wait for one accepted usage event.
  5. Optionally attach stable account IDs so model cost can join payment revenue.

What it unlocks

From tokens to product economics

Priced events unlock AI cost per visitor, cost by model and feature, reliability signals, and cost-based Actions. Customer-level profit appears only after the same account is linked to observed payment revenue.

Current limits

Unknown remains unknown

Provider-internal retries are not visible unless you disable them and retry through application code. An interrupted stream may have partial or unknown usage. Unknown models remain unpriced until a trustworthy server-side rate is available, and SDK-priced cost is provisional until reconciled with provider billing.

Primary source

Check the provider contract

See the official OpenAI Responses API reference for response and usage fields.