PhoenixAI.Store.CostTracking.PricingProvider.Static
(PhoenixAI.Store v0.1.0)
Copy Markdown
View Source
Default pricing provider that reads from application config.
Expects :phoenix_ai_store, :pricing to be a map with
{provider_atom, model_string} tuple keys and {input_string, output_string}
values. Strings are parsed to Decimal at lookup time.
Example config
config :phoenix_ai_store, :pricing, %{
{:openai, "gpt-4o"} => {"0.0000025", "0.00001"},
{:anthropic, "claude-sonnet-4-20250514"} => {"0.000003", "0.000015"}
}