ibl-data-manager (3.59.0-ai-plus)
API for iblai
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/model/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/costs/model/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/model/?end_date=2019-08-24T14%3A15%3A22Z&start_date=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "model": "string", "total_cost": 0.1 }
Request
Retrieve LLM usage costs aggregated by mentor.
This endpoint returns data on the total cost of LLM usage for each mentor within a specified date range, with pagination support. The costs are calculated by summing the costs of all observations associated with traces from the mentor's sessions.
Args: request: The HTTP request containing filter query parameters. org: Organization key identifier.
Returns: Response: Paginated list of mentors with their total LLM usage costs.
Raises: NotFound: If the specified organization does not exist. BadRequest: If the provided parameters are invalid.
Query Parameters: start_date (str): Start date for filtering (YYYY-MM-DD) - required. end_date (str): End date for filtering (YYYY-MM-DD) - required. limit (int): Number of results per page - default: 5. offset (int): Offset for pagination - default: 0.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/permentor/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/costs/permentor/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/permentor/?end_date=2019-08-24T14%3A15%3A22Z&start_date=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 15, "next": "https://api.example.com/analytics/llm-traces/cost/mentors/?limit=5&offset=5", "previous": null, "results": [ { … }, { … } ] }
Request
Retrieve LLM usage costs aggregated by user.
This endpoint returns data on the total cost of LLM usage for each user within a specified date range, with pagination support. The costs are calculated by summing the costs of all observations associated with traces from the user's sessions.
Args: request: The HTTP request containing filter query parameters. org: Organization key identifier.
Returns: Response: Paginated list of users with their total LLM usage costs.
Raises: NotFound: If the specified organization does not exist. BadRequest: If the provided parameters are invalid.
Query Parameters: start_date (str): Start date for filtering (YYYY-MM-DD) - required. end_date (str): End date for filtering (YYYY-MM-DD) - required. limit (int): Number of results per page - default: 10. offset (int): Offset for pagination - default: 0.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/peruser/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/costs/peruser/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/peruser/?end_date=2019-08-24T14%3A15%3A22Z&start_date=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 25, "next": "https://api.example.com/analytics/llm-traces/cost/users/?limit=10&offset=10", "previous": null, "results": [ { … }, { … } ] }