# List models

URL: https://docs.hanzo.ai/docs/openapi/train/get-train-models

> Answers each base the caller can train today, in one shape: the base, the methods it trains by (adaptations), where it runs (runs: Hanzo's devices or the org's machines) with what one device-second costs there in nano-USD, then the resources that run it (nouns), its executor and devices, and the protections, objective terms, outputs and dataset schemes it takes.

`GET /v1/train/models`

> [Train →](https://docs.hanzo.ai/docs/openapi/train) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                        |
| ------------- | -------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/train/models` |
| **Method**    | `GET`                                  |
| **Operation** | `get_train_models`                     |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY` |

Answers each base the caller can train today, in one shape:
the base, the methods it trains by (adaptations), where it runs (runs: Hanzo's
devices or the org's machines) with what one device-second costs there in
nano-USD, then the resources that run it (nouns), its executor and devices, and
the protections, objective terms, outputs and dataset schemes it takes. Bases
are ordered by name, a base's runs by place, then price. A create is validated
against the same rows, and a noun the caller cannot start is not listed: the
engine's clients are a SuperAdmin's.

## Request

`GET /v1/train/models` takes no parameters and no body — the credential is the whole request.

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | train.catalog   | ok      |
| `default` | problem-details | refused |

`200` body — 14 fields.

| Field                          | In   | Type            | Always | Description                                                                                                                                                  |
| ------------------------------ | ---- | --------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `data`                         | body | train.Family\[] | —      | Data is every base the caller can train, each with its methods, where it runs and what a device-second costs there.                                          |
| `data[].adaptations`           | body | string\[]       | —      | Adaptations are the methods it trains by: a create's adaptation.mode.                                                                                        |
| `data[].base`                  | body | string          | —      | Base is the base model: `kai`, or `engine` for the models the engine loads.                                                                                  |
| `data[].datasets`              | body | string\[]       | —      | Datasets are the dataset URI schemes it reads.                                                                                                               |
| `data[].devices`               | body | string\[]       | —      | Devices are the accelerator kinds it runs on, wherever it runs.                                                                                              |
| `data[].executor`              | body | string          | —      | Executor is what runs it.                                                                                                                                    |
| `data[].nouns`                 | body | string\[]       | —      | Nouns are the resources that run it: jobs, clients.                                                                                                          |
| `data[].outputs`               | body | string\[]       | —      | Outputs are the output kinds it produces.                                                                                                                    |
| `data[].protect`               | body | string\[]       | —      | Protect are the protections it runs: projection, distillation, capabilities.                                                                                 |
| `data[].runs`                  | body | train.Run\[]    | —      | Runs are where it runs, each with what a device-second costs there.                                                                                          |
| `data[].runs[].devices`        | body | string\[]       | —      | Devices are the accelerator kinds it runs on there; none is the executor's own.                                                                              |
| `data[].runs[].price_nano_usd` | body | integer (int64) | —      | Price is what one device-second costs there, in nano-USD: 0 on the org's machines.                                                                           |
| `data[].runs[].where`          | body | string          | —      | Where is hanzo, Hanzo's devices, charged by the device-second to the payer inside the job's budget; or machines, the org's linked machines, charged nothing. |
| `data[].terms`                 | body | string\[]       | —      | Terms are the objective terms it runs.                                                                                                                       |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

`hanzo` has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.

**SDK**

**.ts**

```ts
import { Configuration, TrainApi } from 'hanzoai';

const api = new TrainApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getTrainModels();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import TrainApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = TrainApi(client).get_train_models()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.TrainAPI.GetTrainModels(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, train_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = train_api::get_train_models(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.TrainApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new TrainApi(client).getTrainModels();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/train/models \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP declares no tool for **train** — `tools/list` on `https://api.hanzo.ai/v1/mcp` names the products it does reach. Use HTTP or an SDK.

---

[Train API](https://docs.hanzo.ai/docs/openapi/train) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
