docs(llm-analytics): Add cost calculation metadata properties documentation#15363
Merged
carlos-marchal-ph merged 1 commit intomasterfrom Feb 27, 2026
Merged
Conversation
…properties Documents $ai_model_cost_used, $ai_cost_model_source, and $ai_cost_model_provider properties added in PostHog/posthog#49219.
Contributor
Deploy preview
|
carlos-marchal-ph
approved these changes
Feb 27, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_usdand$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.