Skip to main content

Get usage summary

GET https://llm.orchid.ac/v1/usage
Returns token usage and cost for the current billing period.

Query parameters

ParameterTypeDefaultDescription
daysinteger30Number of days to include

Example

curl "https://llm.orchid.ac/v1/usage?days=30" \
  -H "Authorization: Bearer orchid-your-key-here"
{
  "client":        "Fund A",
  "period_days":   30,
  "requests":      1842,
  "input_tokens":  2400000,
  "output_tokens": 800000,
  "total_tokens":  3200000,
  "avg_latency_ms": 843,
  "cost_usd":      8.16
}

Response fields

FieldDescription
requestsTotal number of API calls
input_tokensTotal prompt tokens consumed
output_tokensTotal completion tokens generated
total_tokensSum of input and output tokens
avg_latency_msAverage response latency in milliseconds
cost_usdTotal cost in USD for the period