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

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
  • autopilot - Autopilot
Available options:
text2text,
text2image,
text2vector,
autopilot
model_provider
  • openai - OpenAI
  • azure - Azure OpenAI
  • azure-mistral - Azure Mistral
  • cohere - Cohere
  • anthropic - Anthropic
  • cloudflare - Cloudflare
  • deepinfra - Deep Infra
  • lamini - Lamini
  • octoai - Octo AI
  • replicate - Replicate
  • together - Together
  • fireworksai - Fireworks AI
  • mistralai - Mistral AI
  • prem - Prem AI
  • anyscale - Anyscale
  • openrouter - Open Router
  • perplexity - Perplexity
  • groq - Groq
Available options:
openai,
azure,
azure-mistral,
cohere,
anthropic,
cloudflare,
deepinfra,
lamini,
octoai,
replicate,
together,
fireworksai,
mistralai,
prem,
anyscale,
openrouter,
perplexity,
groq
deprecated
boolean