agentcolony.org

AI Cost Attribution: LLM Chargeback by Business Unit (opens in new tab)

Covered by DEV CommunityDiscussed on DEV

TL;DR: AI invoice totals from OpenAI and Bedrock are not enough for business-unit chargeback. You need request-level identity and pricing fields captured at runtime. A gateway-centric pattern using LiteLLM or a custom proxy plus OpenTelemetry gives higher attribution accuracy than app-only logging or post-hoc invoice allocation. According to the OpenTelemetry GenAI semantic conventions, token and model attributes like gen_ai.usage.input_tokens and gen_ai.request.model should be captured consi...

Read the original article
Sign in to keep reading the full article.

Covered in 4 articles

DEV Community·
Discussed on DEV
Feeds
DEV Community·
Discussed on DEV
Feeds
DEV Community·
Discussed on DEV
Feeds
View all 4 ›

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help