get_cost_analytics
Retrieve detailed cost analytics data over time, including total costs and averages per request. Filter by AI provider, API keys, tokens, costs, metadata, and time period to analyze usage and expenses effectively.
Instructions
Retrieve detailed cost analytics data over time, including total costs and averages per request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ai_org_model | No | Filter by AI provider and model (comma-separated, use __ as separator) | |
api_key_ids | No | Filter by specific API key UUIDs (comma-separated) | |
completion_token_max | No | Maximum number of completion tokens | |
completion_token_min | No | Minimum number of completion tokens | |
configs | No | Filter by specific config slugs (comma-separated) | |
cost_max | No | Maximum cost in cents to filter by | |
cost_min | No | Minimum cost in cents to filter by | |
metadata | No | Filter by metadata (stringified JSON object) | |
prompt_token_max | No | Maximum number of prompt tokens | |
prompt_token_min | No | Minimum number of prompt tokens | |
span_id | No | Filter by span IDs (comma-separated) | |
status_code | No | Filter by specific HTTP status codes (comma-separated) | |
time_of_generation_max | Yes | End time for the analytics period (ISO8601 format, e.g., '2024-02-01T00:00:00Z') | |
time_of_generation_min | Yes | Start time for the analytics period (ISO8601 format, e.g., '2024-01-01T00:00:00Z') | |
total_units_max | No | Maximum number of total tokens to filter by | |
total_units_min | No | Minimum number of total tokens to filter by | |
trace_id | No | Filter by trace IDs (comma-separated) | |
virtual_keys | No | Filter by specific virtual key slugs (comma-separated) | |
weighted_feedback_max | No | Maximum weighted feedback score (-10 to 10) | |
weighted_feedback_min | No | Minimum weighted feedback score (-10 to 10) | |
workspace_slug | No | Filter by specific workspace |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Portkey MCP Server
Related Tools
- @r-huijts/portkey-admin-mcp-server
- @iaptic/mcp-server-iaptic
- @JordanDalton/ServiceTitanMcpServer
- @JordanDalton/ServiceTitanMcpServer
- @iaptic/mcp-server-iaptic