> ## Documentation Index
> Fetch the complete documentation index at: https://docs.physionlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Account and models

> Your organisation and balance, the models you can train, and the GPU setups they run on.

## Your organisation

`GET /v1/me` returns the organisation the key belongs to, its balance and the price list.

```bash curl theme={null}
curl https://nexcloud.physionlabs.ai/v1/me -H "Authorization: Bearer $NEXTRON_API_KEY"
```

```python Python theme={null}
me = client.me()
print(me.org.name, me.org.credits / 100)   # balance in dollars
```

```bash CLI theme={null}
nextron-cloud me
```

| Field | |
| - | - |
| `org` | `id`, `name`, `role` (yours), `credits` (the balance, US cents) |
| `orgs` | every organisation of a signed-in user |
| `billing.prices` | `{model: {method: cents per million tokens}}` |
| `billing.checkout`, `min_cents`, `max_cents` | top-ups on the website |

A response is shown in the [overview](https://docs.physionlabs.ai/nexcloud/api/overview.md#first-call).

## Models

`GET /v1/models` returns every model a job can train, live. Take model ids, limits and prices from here, not from a
copy.

```bash curl theme={null}
curl https://nexcloud.physionlabs.ai/v1/models -H "Authorization: Bearer $NEXTRON_API_KEY"
```

```python Python theme={null}
for m in client.models():
    print(m.id, list(m.methods), m.layouts)
```

```bash CLI theme={null}
nextron-cloud models
```

One entry of the list:

```json theme={null}
{
  "id": "qwen3.5-4b",
  "name": "Qwen3.5-4B",
  "maker": "Qwen",
  "params": "4B",
  "active_params": "4B",
  "architecture": "Dense; 8 full-attention + 24 linear-attention layers",
  "methods": {
    "full": {
      "max_seq_len": 65536,
      "layouts": ["1x8-h100"],
      "truncation_sides": ["left", "right"],
      "defaults": { "max_grad_norm": 1, "adam_beta1": 0.9, "adam_beta2": 0.999, "adam_epsilon": 1e-08 },
      "max_tokens_per_gpu": null,
      "price_per_mtok": 20
    },
    "lora": {
      "max_seq_len": 65536,
      "layouts": ["1x8-h100"],
      "truncation_sides": ["left", "right"],
      "defaults": {
        "max_grad_norm": 1, "adam_beta1": 0.9, "adam_beta2": 0.999, "adam_epsilon": 1e-08,
        "lora_rank": 32, "lora_alpha": 64, "lora_dropout": 0.05
      },
      "max_tokens_per_gpu": null,
      "lora_save": "adapter",
      "price_per_mtok": 20
    },
    "inference": { "max_seq_len": 65536, "layouts": ["1x8-h100"], "price_per_gpu_hour": 350,
                   "token_prices": { "prefill": 30, "cached_prefill": 6, "sample": 150, "train": 100 } }
  },
  "input": ["text", "image", "video"],
  "tools": true,
  "from_job": true,
  "resume": false,
  "batch_size": true,
  "validation_set": true,
  "layouts": {
    "1x8-h100": { "gpus": 8, "tokens_per_s_per_gpu": 12000, "available": true, "queued": 0 }
  }
}
```

| Field | |
| - | - |
| `methods` | what the model does: `full` and `lora` (supervised fine-tuning), `dpo`, `grpo`, `interactive` (Serverless RL), `inference` |
| `methods[m].max_seq_len` | the longest sample the method takes, in tokens |
| `methods[m].price_per_mtok` | US cents per million tokens trained (`full`, `lora`, `dpo`, `grpo`) |
| `methods[m].token_prices` | US cents per million tokens by kind (`grpo`, `interactive`, `inference`): `prefill` (prompt tokens read), `cached_prefill` (read before), `sample` (generated), `train` |
| `methods[m].price_per_gpu_hour` | what a run holds at its start, US cents per GPU-hour (`interactive`, `inference`); returned when it stops |
| `methods[m].defaults` | the optimizer settings a job trains with unless it sets them |
| `methods[m].layouts` | the GPU setups the method runs on, in the order `"auto"` tries them |
| `input` | `text`, and `image` / `video` where they are open to your organisation |
| `tools` | whether it trains on tool calls |
| `from_job`, `resume` | whether a job can start from another job's model, and whether a failed job can be resumed |
| `batch_size`, `validation_set` | whether `params.batch_size` and `params.val_dataset_id` are taken |
| `layouts[id]` | `gpus`, `tokens_per_s_per_gpu`, `available` (a job would start now), `queued` (jobs ahead) |

What each method's fields mean is in [All endpoints](https://docs.physionlabs.ai/nexcloud/api/endpoints.md#account) and
[Training](https://docs.physionlabs.ai/nexcloud/guides/training.md#choose-a-model).

## GPU setups

`GET /v1/layouts` returns every GPU setup: `id`, `name`, `nodes`, `gpus`, `models`, `tokens_per_s` (per GPU, per
model), `available`, `queued`, `coming_soon`. `GET /v1/models` gives the same per model and method, which is usually
what you want.

```bash curl theme={null}
curl https://nexcloud.physionlabs.ai/v1/layouts -H "Authorization: Bearer $NEXTRON_API_KEY"
```

```python Python theme={null}
client.layouts()
```

```bash CLI theme={null}
nextron-cloud layouts
```

## Usage and balance changes

| Call | Returns |
| - | - |
| `GET /v1/billing/usage` | this month's charges by day: `month_start`, `days` (`[{day, credits}]`), `held` (credits held for running jobs) |
| `GET /v1/billing/ledger` | every balance change: top-ups, grants, charges |

These two answer a signed-in console session only; an API key gets 403. With a key, read the balance from `GET /v1/me`
and each job's charge from its [billing](https://docs.physionlabs.ai/nexcloud/api/training-jobs.md#billing).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.