Get Usage Summary
Retrieve overall usage statistics for your account.Query Parameters
period
: Time period (1d
,7d
,30d
,90d
,180d
)timezone
: Timezone for date calculations (default: account timezone)
Response
Get Detailed Usage
Retrieve detailed usage data with timeline breakdown.Query Parameters
period
: Time period (1d
,7d
,30d
,90d
)granularity
: Data granularity (hour
,day
,week
)resources
: Filter by resource types (gpu
,storage
,transfer
)
Response
Get GPU Usage
Get detailed GPU usage statistics and performance metrics.Response
Get Endpoint Usage
Retrieve usage statistics for serverless endpoints.Response
Get Cost Breakdown
Get detailed cost breakdown by service, resource type, and time period.Query Parameters
breakdown
: Breakdown type (service
,resource
,region
,team
)currency
: Currency code (default:USD
)
Response
Get Usage Alerts
Configure and retrieve usage alerts and notifications.Response
Code Examples
Python SDK
JavaScript SDK
Error Responses
400 Bad Request
403 Forbidden
429 Too Many Requests
Best Practices
Cost Optimization
- Monitor usage trends to identify cost spikes
- Set up proactive alerts before reaching budget limits
- Use detailed breakdowns to identify optimization opportunities
- Track GPU utilization to right-size resources
Resource Management
- Analyze endpoint performance to optimize execution times
- Monitor storage usage and clean up unused data
- Track data transfer costs and optimize data flow
- Use projections for capacity planning
Monitoring and Alerts
- Set multiple alert thresholds (warning and critical)
- Configure alerts for different metrics (cost, hours, executions)
- Use webhooks for real-time notifications
- Regular review of usage patterns and trends
Use Cases
Budget Management
Performance Optimization
Cost Attribution
Capacity Planning
Authorizations
API key authentication. Use 'Bearer YOUR_API_KEY' format.
Query Parameters
Time period for usage data
Available options:
day
, week
, month
Response
200 - application/json
Account usage statistics
The response is of type object
.