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>",
  "minimum": true,
  "page": 1,
  "pageSize": 100
}
'
{
  "success": true,
  "data": [
    {
      "_id": "<string>",
      "name": "<string>",
      "institution": "<string>",
      "model_use": "conversationModel",
      "description": "",
      "api_url": "https://api.openai.com/v1",
      "api_key": "<string>",
      "default_headers": {},
      "client_library": "openai_cli",
      "features": {
        "stream": false,
        "tools": false,
        "code": false,
        "vision": false,
        "mcp": false
      },
      "input_media": {
        "text": true,
        "image": false,
        "audio": false,
        "video": false,
        "pdf": false
      },
      "output_media": {
        "text": true,
        "audio": false,
        "video": false,
        "image": false
      },
      "max_input_tokens": 128000,
      "max_output_tokens": 64000,
      "reasoning_effort": null,
      "extended_context": false,
      "status": "active",
      "picture_url": "<string>",
      "created": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "hasMore": true,
  "page": 123,
  "pageSize": 123,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
institution
string

Filter by institution ID. When omitted, admins fall back to their own institution and supers see all.

account
string

Filter by account IDs (space-separated). Resolves to every non-deleted institution under those accounts, then filters by the caller's RAP.

minimum
boolean

When true, returns a flat list of { _id, name, model_use, status } with no pagination. Used by dropdown selectors.

page
integer
default:1

Page number (1-based, ignored when minimum=true).

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

Page size (also accepted as limitsearch; ignored when minimum=true).

Required range: 1 <= x <= 5000

Response

AI models retrieved successfully. Shape depends on the minimum flag in the request.

Paginated response (returned when minimum is false or omitted).

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