Your workspace id (the API calls it a tenant id) is on Connect › SDK setup. Keys are on Connect › API keys; creating them needs a workspace admin. Usage keys can also be made by finance, and revenue signing secrets by admins only.
Everything runs against
https://api.tensorcost.com. If TensorCost runs in your own cloud, see Pointing the SDK and API at your install.SDKs
Wrap an OpenAI, Anthropic, Bedrock or Vertex client in one line.
Control layers
Observe, govern, steer and route, and how to raise them safely.
Attribution
Tag calls with a customer, feature, team, agent and run.
Proxy over HTTP
Headers, token exchange and the refusals you can get back.
REST API
Read spend, budgets, decisions and recommendations.
MCP server
Connect an assistant that supports remote MCP servers.
Coding agents
Spend per developer, per-developer budgets, and the Claude Code gateway.
Revenue push
Send each customer’s monthly revenue with a signed request.
Usage pull
Read each customer’s daily cost and tokens into your billing job.
CLI
Estimate prompt cost and audit an invoice offline.
OpenTelemetry
Turn GenAI spans into TensorCost observations.