User
Get Usage
Get current user usage statistics and account information
GET
Retrieve current user usage statistics, account information, and billing details.
Response
Returns comprehensive usage information including subscription status, remaining credits, token usage, request history, and endpoint-specific usage statistics.
Example Response
Code Examples
Response Fields
subscription
Your current subscription plan (e.g., “free”, “starter”, “pro”, “enterprise”)
credits
Number of credits remaining in your account
usage
Token usage statistics:
input_tokens
- Total input tokens consumedoutput_tokens
- Total output tokens generated
history
Array of daily usage records showing request counts by date
endpoints
Usage breakdown by API endpoint:
chat.completions
- Chat completion requestsimages.generations
- Image generation requestsimages.edits
- Image editing requestsvideos.generations
- Video generation requests
Use Cases
- Monitor Usage: Track API consumption to manage costs
- Billing Information: Check remaining credits and subscription status
- Usage Analytics: Analyze patterns in API usage over time
- Endpoint Analysis: Understand which endpoints are used most frequently
Rate Limits
This endpoint is subject to standard rate limits. You can check usage information up to once per minute without impacting your request quota.
Authorizations
Enter your API key (starts with 'ek-')
Response
200 - application/json
Success
The response is of type object
.