- a NexCloud account with some credit. Accounts are by invitation: write to support@physionlabs.ai if you do not have one;
- a terminal on macOS or Linux, with uv installed (it installs Python for you).
1
Get an API key
Sign in to the console and open API keys. Create a key and copy it: it is
shown once. Only an owner of the organisation can create one.Put it in your terminal:
2
Install and make the first call
In an empty folder:You should see your organisation and its balance in US cents (An
"credits": 5000 is $50.00):invalid_api_key error means the key was not copied whole, or NEXTRON_API_KEY is not set in this terminal.3
Get the sample dataset
Download it, then split it into a training set and a small validation set:This writes
data/train.jsonl (112 samples) and data/val.jsonl (12 samples). Each line is one conversation:
a made-up support ticket, and the answer the model should learn to give, as JSON with a category, a priority and
a reply.4
Upload it
"id": "ds_...") and that "state" is "ready".5
See the price
Put your two dataset ids in place of This starts nothing. It prints the estimate; the part to read:
ds_TRAIN and ds_VAL:credits is the price in US cents: 3 cents here. steps is how many training steps the job will take. The
FEW_STEPS warning is expected for a dataset this small.6
Start the job
The same command with Note the job’s id (
--yes:"id": "job_...").7
Watch it
phase goes from queued to starting, loading, training and saving. Once the job starts, it
takes about 4 minutes. While phase is queued, the job is waiting for free GPUs, and jobs_ahead says how many
jobs start before yours. The console’s Jobs page shows the same.8
Read the results
stateshould besucceeded.lossis how far the model’s answers were from the training answers at the last step, andbest_val_lossthe same on the 12 samples it never trained on. Lower is better. When we ran this page, the loss fell from 1.59 at step 1 to 0.29 at step 10, and the validation loss from 1.24 to 0.37.charged_creditsis what you paid, in US cents: 3 in our run.
Get the model
The trained model is kept for 30 days. This job trained a LoRA adapter, which is small (about 150 MB):The same in Python
Next
Train on your own data
The sample format, converting a CSV, and what the server checks.
Pick a model and settings
Models, parameters, cost and time, and how to plan a real run.
API reference
Every endpoint, with the matching Python and command-line call.
Cookbook
Tested recipes for chat, images, video, preference training and RL, with measured results.