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
  }
]

Query Parameters

days
string
required
userId
string
daily
string

Response

200
application/json
Successful response
date
string
name
string
type
string
completion_tokens
integer
prompt_tokens
integer
cost
number
errors
integer
success
integer