Python
import requests url = "https://api.opper.ai/v2/models/aliases/by-name/{name}" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "fallback_models": [ "<string>" ], "description": "<string>" }
Get a model alias by its name.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The name of the model alias to get
Successful Response
The ID of the model alias
The name of the model alias
Ordered list of model names to try as fallbacks
Optional description of the model alias