API by router
Model overrides
GET
HTTPBearerheader
AuthorizationBearer <token>customer_id?|nullX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?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" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
budget_daily_usd?|nullbudget_monthly_usd?|nullcustomer_id?|nullembedding_model?string|nullfallback_models?array<string>|nullmax_tokens?|nullprimary_model?string|nulltemperature?|nullSuccessful Response
application/json- response
budget_daily_usd*number|nullbudget_monthly_usd*number|nullcreated_at*Created AtFormat
date-timecustomer_id*|nullembedding_model*string|nullfallback_models*array<unknown>|nullid*IdFormat
uuidmax_tokens*integer|nullprimary_model*string|nulltemperature*number|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -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"}GET
HTTPBearerheader
AuthorizationBearer <token>customer_id*Customer IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
budget_daily_usd*number|nullbudget_monthly_usd*number|nullembedding_model*string|nullfallback_models*array<string>max_tokens*Max Tokensprimary_model*Primary Modelsource*Sourcetemperature*Temperaturecurl -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
HTTPBearerheader
AuthorizationBearer <token>override_id*Override IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/model-overrides/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
PUT
HTTPBearerheader
AuthorizationBearer <token>override_id*Override IdFormat
uuidX-Api-Key?string|nullapplication/json- body
budget_daily_usd?|nullbudget_monthly_usd?|nullcustomer_id?|nullembedding_model?string|nullfallback_models?array<string>|nullmax_tokens?|nullprimary_model?string|nulltemperature?|nullSuccessful Response
application/json- response
budget_daily_usd*number|nullbudget_monthly_usd*number|nullcreated_at*Created AtFormat
date-timecustomer_id*|nullembedding_model*string|nullfallback_models*array<unknown>|nullid*IdFormat
uuidmax_tokens*integer|nullprimary_model*string|nulltemperature*number|nulltenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -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"}