Connect OpenRouter Costs - Design Partner Brief
Overview
Finout's OpenRouter integration ingests the spend OpenRouter charges to your credits from OpenRouter's Analytics API, and shows it alongside your cloud and SaaS services in Finout. As a design partner, you get the integration first and shape what it exposes.
This brief covers what we need from you to connect and validate the integration:
A read-only Management key
A few details about your OpenRouter setup
A source of truth we can reconcile against
What you get
Costs are the amounts OpenRouter charges to your credits, net of any discounts OpenRouter applies.
The dimensions below reflect the current design and may be extended or renamed as development progresses.
Model
The model served, e.g. anthropic/claude-4.5-haiku
Model vendor
Who publishes the model (Anthropic, OpenAI, Mistral, Meta…)
API key
The OpenRouter key that made the request, by name
Cost type
Inference, cache, discount, web search, file parsing — OpenRouter's own cost components
Billing category
Credits (billed by OpenRouter) or BYOK (billed by your provider)
Usage
Tokens (prompt + completion) on inference rows
Step 1: Create a Management key
Finout reads OpenRouter's Analytics API with a Management key. A regular inference API key cannot access analytics and will fail validation.
Sign in to OpenRouter and open Settings → Management Keys.
Click New key.
Enter a Name with a clear identifier (e.g. Finout Integration).
Choose an expiration per your company policy.
Copy the key immediately and store it securely — it will not be shown again.
Step 2: Share Credentials with Finout
Provide the Management key using Finout's Credentials Vault - this ensures the credential is stored and accessed securely.
In Finout, navigate to the Settings page's Cost Centers tab.
Click Add cost center, select Credentials Vault, and click Next.
Name the JSON Key "OpenRouter Management Key".
Paste the key value you obtained in Step 1 into the Secret field.
Click Next to submit your credentials.
Step 3: Tell us about your setup
A few answers shape how we configure and validate your cost center. Please share your answers with Finout.
Plan: Pay-as-you-go, Business, or Enterprise? If Enterprise, does your contract include a committed spend or discounted model rates?
Billing mode: Will traffic run on OpenRouter credits, your own provider keys (BYOK), or a mix? For BYOK, which providers?
Organizations and workspaces: How many OpenRouter organizations do you use, and do you separate teams by workspace or by API key?
Step 4: Give us a source of truth
We validate the integration by reconciling what Finout shows against what OpenRouter shows you. Once you have at least one full month of traffic, share:
Activity page export for one closed calendar month, from OpenRouter → Activity. This is the primary comparison; Finout's daily totals should match it exactly.
Credit purchase history for the same month (OpenRouter → Credits). Purchases exceed usage by the platform fee; we confirm that is the only gap.
Security and data handling
The Management key is read-only for analytics. It cannot make inference requests or change your OpenRouter configuration.
Finout reads billing metadata only: cost, token counts, model, API key, workspace. No prompts or completions are ever read.
Removing the integration stops syncing. Revoke the key in OpenRouter yourself; Finout cannot do that on your behalf.
If your organization uses OpenRouter's IP allowlist (Enterprise plan, Settings → Security), add Finout's IP addresses to it before connecting; otherwise OpenRouter rejects Finout's requests. See Finout IP Whitelist for the current list.
Last updated
Was this helpful?