Get available models
GET/ai/models
This endpoint returns a list of Open Source and OpenAI models that are available for use.
Note: Model id
's will be in the form {source}/{model_name}
. For example openai/gpt-4
or mistralai/Mistral-7B-Instruct-v0.1
consistent with HuggingFace naming conventions.
Responses
200: Successful Response
- application/json
422: Validation Error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ai/models' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"object": "list",
"data": [
{
"id": "string",
"object": "model",
"created": 0,
"owned_by": "string"
}
]
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}