Skip to content

docs(llm-analytics): Add cost calculation metadata properties documentation#15363

Merged
carlos-marchal-ph merged 1 commit intomasterfrom
docs-writer-ai-update-2026-02-27T09-11-06-361Z-d0ui8c
Feb 27, 2026
Merged

docs(llm-analytics): Add cost calculation metadata properties documentation#15363
carlos-marchal-ph merged 1 commit intomasterfrom
docs-writer-ai-update-2026-02-27T09-11-06-361Z-d0ui8c

Conversation

@inkeep
Copy link
Contributor

@inkeep inkeep bot commented Feb 27, 2026

Changes

This PR adds documentation for three new AI cost metadata properties that were added in PostHog/posthog#49219:

  • $ai_model_cost_used - The model identifier used for cost calculation (may differ from the requested model when a variant or alias is resolved)
  • $ai_cost_model_source - Where the cost data for this model was sourced from (openrouter, manual, custom, passthrough)
  • $ai_cost_model_provider - The provider used to look up the cost for this model (openai, anthropic, custom)

These properties help users debug cost discrepancies and understand which pricing was applied when using model aliases or custom configurations.

Note: The other two properties from the PR ($ai_request_cost_usd and $ai_web_search_cost_usd) were already documented on the calculating-costs page.

Related PR


This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

…properties

Documents $ai_model_cost_used, $ai_cost_model_source, and $ai_cost_model_provider
properties added in PostHog/posthog#49219.
@inkeep inkeep bot requested a review from carlos-marchal-ph February 27, 2026 09:12
@github-actions
Copy link
Contributor

github-actions bot commented Feb 27, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Feb 27, 2026 09:20AM

@carlos-marchal-ph carlos-marchal-ph merged commit 2257f98 into master Feb 27, 2026
17 checks passed
@carlos-marchal-ph carlos-marchal-ph deleted the docs-writer-ai-update-2026-02-27T09-11-06-361Z-d0ui8c branch February 27, 2026 16:29
sarahxsanders pushed a commit that referenced this pull request Feb 27, 2026
…properties (#15363)

Documents $ai_model_cost_used, $ai_cost_model_source, and $ai_cost_model_provider
properties added in PostHog/posthog#49219.

Co-authored-by: inkeep[bot] <257615677+inkeep[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant