---
title: "Models | Docs | Private AI Workspace by R&D Copilot"
description: "Choose, load and update the model used by each team."
canonical: "https://private-ai.rdcopilot.com/docs/configuration/models/"
language: en
updated: 2026-11-22
---

# Models

Choose, load and update the model used by each team.

## Select a runtime

Read the model list and keep its id, revision, version, serverId and permitted teams. loaded accepts requests; idle does not serve them; updating holds the runtime out of service. Memory and context fields describe that runtime’s configuration.

## Change state

Send the current revision as expectedRevision and a new operationId. Update is possible only on a stopped model whose availableVersion differs from its version, so stop it first. The installation completes the update by itself: the state returns to idle and version equals availableVersion. Loading must fit the host allocation; insufficient\_memory leaves the previous state intact. Read the operation and then the model list to confirm the resulting state.

1.  Finish active requests before taking a loaded model idle, then send a new operation.
2.  For revision\_conflict, read the latest model state before deciding again.
3.  After loading, ask from an allowed team and test refusal from another team.

curl

```bash
curl "$RDC_BASE_URL/private-ai/v1/admin/models?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/private-ai/v1/admin/models?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/private-ai/v1/admin/models?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/private-ai/v1/admin/models?limit=20');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/private-ai/v1/admin/models?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 200

```json
{
  "items": [
    {
      "id": "model-primary",
      "name": "Primary model",
      "status": "loaded",
      "revision": 1,
      "version": "3.2.0",
      "availableVersion": "3.2.1",
      "memoryMiB": 6144,
      "contextTokens": 8192,
      "teams": [
        "warehouse"
      ],
      "serverId": "server-2"
    },
    {
      "id": "model-secondary",
      "name": "Secondary model",
      "status": "idle",
      "revision": 1,
      "version": "2.8.0",
      "availableVersion": "2.8.1",
      "memoryMiB": 8192,
      "contextTokens": 4096,
      "teams": [
        "finance"
      ],
      "serverId": "server-2"
    }
  ],
  "nextCursor": null
}
```

curl

```bash
curl -X PATCH "$RDC_BASE_URL/private-ai/v1/admin/models/model-primary" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "8a000001-0000-4000-8000-000000000001",
  "expectedRevision": 1,
  "status": "idle"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/private-ai/v1/admin/models/model-primary`, {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "8a000001-0000-4000-8000-000000000001",
    "expectedRevision": 1,
    "status": "idle"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'PATCH',
    f'{os.environ["RDC_BASE_URL"]}/private-ai/v1/admin/models/model-primary',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '8a000001-0000-4000-8000-000000000001',
        'expectedRevision': 1,
        'status': 'idle',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "8a000001-0000-4000-8000-000000000001",
  "expectedRevision": 1,
  "status": "idle"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/private-ai/v1/admin/models/model-primary');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'PATCH',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/private-ai/v1/admin/models/model-primary");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "8a000001-0000-4000-8000-000000000001",
  "expectedRevision": 1,
  "status": "idle"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 202

```json
{
  "operationId": "8a000001-0000-4000-8000-000000000001",
  "status": "accepted",
  "aggregateId": "model-primary",
  "aggregateRevision": 2
}
```
