Skip to main content
POST
/
api
/
admin
/
aimodels
Get list of AI models
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/aimodels \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "institution": "<string>",
  "account": "<string>",
  "provider": "<string>",
  "minimum": true,
  "page": 1,
  "pageSize": 100
}
'
{
  "success": true,
  "data": [
    {
      "_id": "<string>",
      "name": "<string>",
      "provider": "<string>",
      "modelId": "<string>",
      "description": "<string>",
      "maxTokens": 123,
      "inputPrice": 123,
      "outputPrice": 123,
      "status": "active",
      "institution": "<string>",
      "created": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "hasMore": true,
  "page": 123,
  "pageSize": 123,
  "message": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
institution
string

Filter by institution ID

account
string

Filter by account IDs (space-separated)

provider
string

Filter by provider

minimum
boolean

Return minimal data (bypasses pagination)

page
integer
default:1

Page number (1-based)

Required range: x >= 1
pageSize
integer
default:100

Number of results per page

Required range: 1 <= x <= 5000

Response

200 - application/json

AI models retrieved successfully

success
boolean
data
object[]
total
integer

Total number of matching AI models

hasMore
boolean

Whether more results are available

page
integer

Current page number

pageSize
integer

Number of results per page

message
string

Response message