How toLog your application
Set up custom token pricing
Learn how to set up custom token pricing in Maxim for accurate cost reporting in AI evaluations and logs, ensuring displayed costs match your actual expenses.
Configure your negotiated token costs for accurate cost reporting in AI evaluations and real-time logs. Custom token pricing ensures that displayed costs match your actual expenses based on special pricing agreements.
How it works
Enter your custom input and output token costs
Apply costs to model configs and log repositories
System calculates actual costs for each evaluation
Standard pricing applies when no custom rates exist
Create custom pricing structures
- Navigate to Settings > Models > Pricing
- Enter a model name pattern (string or regex) that matches your model names
- Input your token usage cost (per 1000 tokens)

Configure model pricing
- Go to Settings > Models > Model Configs
- Select a model config to edit
- Locate the Pricing structure section
- Choose your pricing structure from the dropdown
Custom pricing supports OpenAI, Microsoft Azure, Groq, HuggingFace, Together AI, Google Cloud, and Amazon Bedrock models.

Set up pricing for log repository
- Open Logs from the sidebar
- Select the log repository you want to configure custom pricing for
- Find the Pricing structure section
- Choose your pricing structure from the dropdown
