Get Requests Usage
Get aggregated request statistics for your project, showing API usage patterns over time.Query Parameters
Page number for pagination (default: 1)
Start date for usage data (ISO 8601 format, e.g., “2024-01-01”)
End date for usage data (ISO 8601 format, e.g., “2024-01-31”)
Response
Array of daily request statistics
Get Threads Usage
Get conversation thread statistics showing how users interact with your agents over time.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of daily thread statistics
Get LLM Usage
Get detailed statistics about language model usage including token consumption and costs.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of LLM usage statistics
Get Rerank Usage
Get statistics about vector reranking operations used to improve search result quality.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of reranking usage statistics
Get Embeddings Usage
Get statistics about embedding generation for vector search and semantic operations.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of embedding usage statistics
Get Scraping Usage
Get statistics about web scraping operations performed for content extraction.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of scraping usage statistics
Get Web Search Usage
Get statistics about web search operations performed through integrated search tools.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of web search usage statistics
Get Speech-to-Text Usage
Get statistics about audio transcription operations performed using speech-to-text services.Query Parameters
Start date for usage data (ISO 8601 format)
End date for usage data (ISO 8601 format)
Response
Array of speech-to-text usage statistics
Register Speech-to-Text Usage
Register speech-to-text usage in the system. This endpoint is typically used by internal services to track transcription usage.Request Body
The transcription model used (e.g., “OPENAI_WHISPER”)
The service provider used for transcription
Number of audio bytes processed
ID of the project to attribute the usage to
Response
Returns a confirmation of usage registration.Usage Analytics Best Practices
1
Monitor Regularly
Check usage statistics regularly to track consumption patterns and optimize costs
2
Set Alerts
Implement usage monitoring and alerts to prevent unexpected cost overruns
3
Analyze Trends
Use time-based filtering to identify usage trends and plan capacity accordingly
4
Optimize Performance
Use detailed usage data to identify inefficient operations and optimize them
5
Budget Planning
Leverage historical usage data for accurate budget forecasting and planning
Understanding Usage Metrics
Token Consumption
Monitor prompt and completion tokens to understand LLM costs and optimize prompt engineering
Request Patterns
Analyze request timing and frequency to identify peak usage periods and scale accordingly
Service Distribution
Track usage across different services to identify your primary cost drivers
Thread Activity
Monitor conversation patterns to understand user engagement and agent effectiveness
Cost Optimization Tips
Usage Reporting Dashboard
Create comprehensive usage dashboards using the analytics data:Billing Integration
Usage statistics directly correlate with billing charges:
- LLM Usage: Charged per token (input + output)
- Embeddings: Charged per token processed
- Scraping: Charged per credit consumed
- Web Search: Charged per query + token usage
- Speech-to-Text: Charged per audio minute/byte
- Reranking: Charged per search unit