HydraCore
API by router

Model overrides

List Model Overrides

GET
/v1/model-overrides

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

customer_id?|null

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/model-overrides'
Example Response
[  {    "budget_daily_usd": 0,    "budget_monthly_usd": 0,    "created_at": "2019-08-24T14:15:22Z",    "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",    "embedding_model": "string",    "fallback_models": [      null    ],    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "max_tokens": 0,    "primary_model": "string",    "temperature": 0,    "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",    "updated_at": "2019-08-24T14:15:22Z"  }]

Create Model Override

POST
/v1/model-overrides

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
budget_daily_usd?|null
budget_monthly_usd?|null
customer_id?|null
embedding_model?string|null
fallback_models?array<string>|null
max_tokens?|null
primary_model?string|null
temperature?|null

Response Body

Successful Response

application/json
  1. response
budget_daily_usd*number|null
budget_monthly_usd*number|null
created_at*Created At
Formatdate-time
customer_id*|null
embedding_model*string|null
fallback_models*array<unknown>|null
id*Id
Formatuuid
max_tokens*integer|null
primary_model*string|null
temperature*number|null
tenant_id*Tenant Id
Formatuuid
updated_at*Updated At
Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/model-overrides' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "budget_daily_usd": 0,  "budget_monthly_usd": 0,  "created_at": "2019-08-24T14:15:22Z",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "embedding_model": "string",  "fallback_models": [    null  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "max_tokens": 0,  "primary_model": "string",  "temperature": 0,  "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",  "updated_at": "2019-08-24T14:15:22Z"}

Resolve Model Policy

GET
/v1/model-overrides/resolve/{customer_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

customer_id*Customer Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
budget_daily_usd*number|null
budget_monthly_usd*number|null
embedding_model*string|null
fallback_models*array<string>
max_tokens*Max Tokens
primary_model*Primary Model
source*Source
temperature*Temperature
Example Request
curl -X GET 'https://example.com/v1/model-overrides/resolve/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "budget_daily_usd": 0,  "budget_monthly_usd": 0,  "embedding_model": "string",  "fallback_models": [    "string"  ],  "max_tokens": 0,  "primary_model": "string",  "source": "string",  "temperature": 0}

Delete Model Override

DELETE
/v1/model-overrides/{override_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

override_id*Override Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

Example Request
curl -X DELETE 'https://example.com/v1/model-overrides/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty

Update Model Override

PUT
/v1/model-overrides/{override_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

override_id*Override Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
budget_daily_usd?|null
budget_monthly_usd?|null
customer_id?|null
embedding_model?string|null
fallback_models?array<string>|null
max_tokens?|null
primary_model?string|null
temperature?|null

Response Body

Successful Response

application/json
  1. response
budget_daily_usd*number|null
budget_monthly_usd*number|null
created_at*Created At
Formatdate-time
customer_id*|null
embedding_model*string|null
fallback_models*array<unknown>|null
id*Id
Formatuuid
max_tokens*integer|null
primary_model*string|null
temperature*number|null
tenant_id*Tenant Id
Formatuuid
updated_at*Updated At
Formatdate-time
Example Request
curl -X PUT 'https://example.com/v1/model-overrides/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "budget_daily_usd": 0,  "budget_monthly_usd": 0,  "created_at": "2019-08-24T14:15:22Z",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "embedding_model": "string",  "fallback_models": [    null  ],  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "max_tokens": 0,  "primary_model": "string",  "temperature": 0,  "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0",  "updated_at": "2019-08-24T14:15:22Z"}