Export model usage data
Usage Export API
Export Model Usage
API endpoint to export AI model usage data including request counts and token consumption
POST
Export model usage data
This endpoint exports AI model usage data including request counts and token consumption per model.Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.
Data Included
The model export contains:period_start,period_end— time rangeorg_id— workspace identifiername— model namerequests— number of requests- Token consumption per model (BYOK workspaces only)
Usage Analysis
Because BYOK workspaces supply their own model keys, Langdock can provide you with an export of your token consumption data. With it you can:- Calculate costs using your provider’s pricing
- Identify which models consume the most tokens
- Track usage trends over time
- Optimize model selection for different use cases
For details on prerequisites, rate limits, and export size limits, please refer to the main Usage Export API documentation.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json