HydraCore
API by router

Metrics

Get Instance Usage

GET
/v1/metrics/instances

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

days?Days
Range7 <= value <= 90
Default30

Response Body

Successful Response

application/json
  1. response

Instance-level usage breakdown.

"Get to the chopper!" — Dutch, Predator (about getting to the right instance)

instances*array<>
total_count*Total Count
Example Request
curl -X GET 'https://example.com/v1/metrics/instances'
Example Response
{  "instances": [    {      "estimated_cost_usd": "string",      "hostname": "string",      "instance_id": "string",      "request_count": 0,      "status": "string",      "total_tokens": 0    }  ],  "total_count": 0}

Get Model Breakdown

GET
/v1/metrics/models

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

days?Days
Range7 <= value <= 90
Default30

Response Body

Successful Response

application/json
  1. response

Model usage breakdown.

"Hasta la vista, baby." — T-800 (to the models you'll stop using after seeing these numbers)

models*array<>
total_requests*Total Requests
Example Request
curl -X GET 'https://example.com/v1/metrics/models'
Example Response
{  "models": [    {      "estimated_cost_usd": "string",      "model": "string",      "pct_of_total": 0,      "provider": "string",      "request_count": 0,      "tokens_in": 0,      "tokens_out": 0    }  ],  "total_requests": 0}

Get Metrics Summary

GET
/v1/metrics/summary

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

days?Days
Range7 <= value <= 90
Default30

Response Body

Successful Response

application/json
  1. response

High-level usage summary for the selected period.

active_instances*Active Instances
estimated_cost_usd*Estimated Cost Usd
period_days*Period Days
total_requests*Total Requests
total_tokens*Total Tokens
total_tokens_in*Total Tokens In
total_tokens_out*Total Tokens Out
unique_models*Unique Models
Example Request
curl -X GET 'https://example.com/v1/metrics/summary'
Example Response
{  "active_instances": 0,  "estimated_cost_usd": "string",  "period_days": 0,  "total_requests": 0,  "total_tokens": 0,  "total_tokens_in": 0,  "total_tokens_out": 0,  "unique_models": 0}

Get Usage Timeseries

GET
/v1/metrics/usage

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

days?Days
Range7 <= value <= 90
Default30

Response Body

Successful Response

application/json
  1. response

Time-series usage data with zero-fill.

period_days*Period Days
points*array<>
Example Request
curl -X GET 'https://example.com/v1/metrics/usage'
Example Response
{  "period_days": 0,  "points": [    {      "date": "string",      "estimated_cost_usd": "string",      "requests": 0,      "tokens_in": 0,      "tokens_out": 0    }  ]}