Skip to content
Start here

Model Aliases

List model aliases
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/model_aliases
Get a model alias
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/model_aliases/{id}
Create a model alias
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/model_aliases
Update a model alias
PUT/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/model_aliases/{id}
Delete a model alias
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/model_aliases/{id}
ModelsExpand Collapse
ModelAliasListResponse object { id, created_at, gateway_id, 4 more }
id: string
created_at: number
gateway_id: string
models: array of object { model, providers }
model: string
maxLength256
minLength1
providers: optional array of string
name: string
maxLength64
minLength1
updated_at: number
routing: optional object { algorithm, mode }
algorithm: optional "preferred" or "smart"
One of the following:
"preferred"
"smart"
mode: optional "cost" or "best"
One of the following:
"cost"
"best"
ModelAliasGetResponse object { id, created_at, gateway_id, 4 more }
id: string
created_at: number
gateway_id: string
models: array of object { model, providers }
model: string
maxLength256
minLength1
providers: optional array of string
name: string
maxLength64
minLength1
updated_at: number
routing: optional object { algorithm, mode }
algorithm: optional "preferred" or "smart"
One of the following:
"preferred"
"smart"
mode: optional "cost" or "best"
One of the following:
"cost"
"best"
ModelAliasCreateResponse object { id, created_at, gateway_id, 4 more }
id: string
created_at: number
gateway_id: string
models: array of object { model, providers }
model: string
maxLength256
minLength1
providers: optional array of string
name: string
maxLength64
minLength1
updated_at: number
routing: optional object { algorithm, mode }
algorithm: optional "preferred" or "smart"
One of the following:
"preferred"
"smart"
mode: optional "cost" or "best"
One of the following:
"cost"
"best"
ModelAliasUpdateResponse object { id, created_at, gateway_id, 4 more }
id: string
created_at: number
gateway_id: string
models: array of object { model, providers }
model: string
maxLength256
minLength1
providers: optional array of string
name: string
maxLength64
minLength1
updated_at: number
routing: optional object { algorithm, mode }
algorithm: optional "preferred" or "smart"
One of the following:
"preferred"
"smart"
mode: optional "cost" or "best"
One of the following:
"cost"
"best"
ModelAliasDeleteResponse object { id, created_at, gateway_id, 4 more }
id: string
created_at: number
gateway_id: string
models: array of object { model, providers }
model: string
maxLength256
minLength1
providers: optional array of string
name: string
maxLength64
minLength1
updated_at: number
routing: optional object { algorithm, mode }
algorithm: optional "preferred" or "smart"
One of the following:
"preferred"
"smart"
mode: optional "cost" or "best"
One of the following:
"cost"
"best"