Getting Started
Audit Logs
Datasets
- GETList datasets
- POSTCreate a new dataset
- GETGet dataset by ID or slug
- DELDelete a dataset
- PATCHUpdate a dataset
- POSTCreate a new prompt
- GETGet prompt by ID
- DELDelete a prompt
- PATCHUpdate a prompt
- GETGet prompt variation by ID
- DELDelete a prompt variation
- PATCHUpdate a prompt variation
- POSTCreate a new prompt variation
Evals
Runs
Templates
Runs
Get run usage statistics
Retrieve usage statistics for runs
GET
/
v1
/
runs
/
usage
curl --request GET \
--url https://api.lunary.ai/v1/runs/usage
[
{
"date": "<string>",
"name": "<string>",
"type": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"cost": 123,
"errors": 123,
"success": 123
}
]
Response
200
application/json
Successful response
The response is of type object[]
.
curl --request GET \
--url https://api.lunary.ai/v1/runs/usage
[
{
"date": "<string>",
"name": "<string>",
"type": "<string>",
"completion_tokens": 123,
"prompt_tokens": 123,
"cost": 123,
"errors": 123,
"success": 123
}
]