GET
/
v1
/
models
/
{id}
curl --request GET \
  --url https://app.premai.io/v1/models/{id}/
{
  "id": 123,
  "name": "<string>",
  "model_type": "text2text",
  "model_provider": "openai",
  "deprecated": true
}

Path Parameters

id
integer
required

A unique integer value identifying this Model.

Response

200 - application/json
id
integer
required
name
string
required
model_type
enum<string>
  • text2text - Text to Text
  • text2image - Text to Image
  • text2vector - Text to Vector
Available options:
text2text,
text2image,
text2vector
model_provider
  • openai - OpenAI
  • azure - Azure OpenAI
  • anthropic - Anthropic
  • prem - Prem AI
  • groq - Groq
  • proxy-prem-ai - Proxy Prem AI
Available options:
openai,
azure,
anthropic,
prem,
groq,
proxy-prem-ai
deprecated
boolean