πConnections
Connect AI providers for consolidated cost visibility, or integrate via SDK for real-time attribution and cost controls.
The Connections page is your central hub for managing how data flows into Revenium. There are two types of connections, each serving a different purpose:
Provider Connections: Link your AI provider accounts to see all costs in one place
SDK Integrations: Embed Revenium in your code for real-time visibility and deep attribution
Most organizations benefit from bothβprovider connections for the big picture, SDK integrations for actionable insights.
Two Ways to Connect
Provider Connections: Consolidated Cost Visibility
When you connect your AI provider accounts (OpenAI, Anthropic, AWS Bedrock, Google, etc.), Revenium pulls your usage and cost data directly from each provider.
The problem this solves:
Without Revenium, tracking AI costs means logging into multiple provider dashboardsβOpenAI's billing page, AWS Cost Explorer, Anthropic's usage console, Google Cloud billing. Each has different formats, different refresh rates, and different levels of detail.
What you get:
Single view of total AI spend across all providers
Consolidated cost tracking without switching between dashboards
Provider-level trends to see which providers are driving costs
Limitations:
Provider connections show you what you spent, but not where or why. You'll see that you spent $10,000 on OpenAI last month, but not which product, customer, or workflow drove that costβor whether those API calls accomplished anything useful.
SDK Integrations: Real-Time Attribution & Control
When you integrate Revenium's SDK or API into your code, every AI call is metered as it happensβwith full context about what triggered it.
The problem this solves:
Knowing your total AI spend isn't enough. You need to know which customers are driving costs, which agents are efficient vs. wasteful, and which workflows deliver ROI. You also need to catch runaway costs before they become a billing surprise.
What you get:
Real-time cost visibility as transactions executeβnot when the bill arrives
Deep attribution to products, customers, subscribers, agents, and internal business units
Immediate alerting the moment a cost threshold is exceeded
Per-transaction context including traces, prompts, and metadata
Example:
You set an alert for "notify me when average cost per transaction exceeds $1.25." With provider connections alone, you'd discover this problem on your next monthly billβafter 10,000 expensive transactions have already executed. With SDK integration, Revenium alerts you the first time it happens, giving you the chance to investigate and fix the issue before costs spiral.
Choosing Your Integration Approach
See total spend across all AI providers
β
β
Single dashboard for all provider costs
β
β
Real-time cost visibility
β
Attribution by customer/product/agent
β
Cost alerts that trigger immediately
β
Trace-level transaction analysis
β
Prompt capture for debugging
β
No code changes required
β
Recommendation: Start with provider connections for immediate visibility into your total AI spend. Add SDK integration to your highest-value or highest-cost workflows to unlock attribution and real-time controls.
Provider Connections
Connect your AI provider accounts to pull cost and usage data automatically.
Supported Providers
OpenAI
Anthropic
AWS Bedrock
Google (Vertex AI, Gemini)
Azure OpenAI
And more
Configuring a Provider Connection
Navigate to Connections in the sidebar
Find the provider card you want to connect
Click to configure and enter your credentials
AWS Bedrock:
Region
Access Key ID
Secret Access Key
LiteLLM:
API Base URL
API Key
PiAPI:
API Key
Environment
Provider credentials are encrypted at rest and are only used to retrieve your usage data. Revenium never makes API calls on your behalf.
Connection Status
Connected
Integration is active and syncing data
Pending
Configuration saved, awaiting first sync
Disconnected
No recent activity or configuration issue
SDK Integrations
Integrate Revenium into your code for real-time metering with full attribution.
API Credentials
Your Revenium API key authenticates SDK calls. View and manage your keys in the Connections page.
Name
A friendly name for the credential
Key
Your API key (partially masked for security)
Created
When the credential was created
Last Used
Most recent activity for this credential
Managing Credentials
Copy Key: Click the copy icon to copy the full API key
Regenerate: Generate a new key (invalidates the previous key immediately)
Regenerating a key immediately invalidates the old key. Update your SDK configurations before regenerating to avoid service interruption.
Getting Started with SDK Integration
See Integration Options for AI Metering for setup guides and code examples.
Why Both?
Provider connections and SDK integrations complement each other:
Provider connections give you the complete picture of AI spendβincluding costs from systems where SDK integration isn't practical (legacy code, third-party tools, vendor-managed services).
SDK integrations give you the actionable pictureβwho's driving costs, which workflows are efficient, and real-time alerts when something goes wrong.
Together, you get both comprehensive visibility and the detailed attribution needed to optimize AI ROI.
Troubleshooting
Provider Shows "Disconnected"
Verify Credentials: Re-enter your provider API credentials
Check Permissions: Ensure your credentials have billing/usage read access
Review Sync Status: Some providers sync daily; check when the last sync occurred
No Providers Showing
If no provider cards appear:
Send Test Data: Use the Quick Start guide to send a test metering event via SDK
Check API Key: Verify you're using the correct Revenium API key
SDK Data Not Appearing
Verify API Key: Ensure your code uses a valid Revenium API key
Check Network Access: Confirm your application can reach Revenium's metering endpoints
Review Transaction Log: Check the AI Transaction Log for recent events and any errors
Last updated
Was this helpful?