Skip to main content
If your calls are already traced with OpenTelemetry GenAI instrumentation, you can send those spans to TensorCost without the SDK. Each span becomes one observation: one call, with its model, tokens, status and attribution. TensorCost prices it.
Success returns 202 with { "accepted": <count>, "correlation_ids": [...] }.

Limits to know first

Authenticate

Exchange your SDK key for a token as described in Calling the proxy directly, then send it as the bearer token.

Send spans

What each span becomes

The environment is the token’s own, whatever the span says. Team comes from a team-bound key. A hard budget cap does not refuse a span; the response carries X-TensorCost-Budget-Exceeded and the span is still recorded. Fields are described in Attribution.