Costs breakdown logs

Cost Breakdown

The Logs page provides users with comprehensive API call history and detailed billing information, enabling you to fully understand the resource consumption and actual costs incurred for each API call.

Each call record contains the following detailed information:

Basic Information

  • Call Time: Timestamp accurate to milliseconds

  • Request ID: Unique identifier for issue tracking

  • Model Name: Specific model version used

  • Call Status: Status information including success/failure/timeout

Token Usage Statistics

  • Input Tokens: Number of tokens in the input prompt

  • Output Tokens: Number of tokens generated by the model

  • Total Tokens: Total token consumption

  • Cached Tokens: Number of tokens served from cache

Compute Resource Consumption

  • Processing Duration: Actual computation time

Three-Tier Pricing Display

To ensure cost transparency, the system provides pricing information across three dimensions:

1. List Price (Original Price)

  • Cost calculated based on standard official pricing

  • Excludes any discounts or promotions

  • Serves as the baseline reference for cost calculation

2. Discounted Price

  • Price after applying account-level discounts

  • Includes bulk usage discounts, membership benefits, etc.

  • Shows specific discount percentage and savings amount

3. Cache-Optimized Price

  • Final price after leveraging Prompt Cache technology

  • Provides significant cost advantages for repeated or similar requests

  • Displays cache hit rate and savings percentage

Cost Calculation Explanation

Final Cost = (Input Cost + Output Cost) × Discount Factor × Cache Optimization Factor

Where:
- Input Cost = Input Tokens × Model Unit Price
- Output Cost = Output Tokens × Model Unit Price
- Cached portions are calculated at preferential rates

Additional Features

Export & Reporting

  • CSV Export: Download detailed logs for external analysis

  • Custom Reports: Generate reports for specific time periods or usage patterns

  • API Integration: Programmatic access to logs data for automated monitoring

Real-time Monitoring

  • Live Updates: Real-time refresh of call records

  • Alert System: Notifications for unusual spending patterns or errors

  • Dashboard Integration: Quick access to key metrics and trends

Last updated