Skip to main content
An inference run serves the model a training job saved, on the GPUs of the cluster that trained it: try a fine-tune right after training, and download it (Checkpoints) only when it is good. A job’s model stays there for 7 days after training. Billed by its tokens, like an RL run’s sampling: prompt tokens read, cached prompt tokens and generated tokens, at the model’s token_prices (inference start without --yes prints them; an answer’s usage names its cached prompt tokens); loading the model and idle time are not billed. A run stops itself after --max-hours, or after --idle-timeout seconds without a request (default 1800). A run can also serve a base model with no training job, to measure it on your evaluation set before training: start it with --model (a model whose methods list inference) instead of --job.

Call it

Many prompts at once (an evaluation set): connect sends a whole batch in one request, as in an RL run.
Code written for OpenAI’s API works with the run’s base URL and your NexCloud key (uv pip install openai):
  • chat/completions, completions and models; any model name means the run’s model.
  • Chat prompts render with thinking off, as jobs train (Data). Ask for it with extra_body={"chat_template_kwargs": {"enable_thinking": True}}.
  • A model that reasons before it answers (muse-glimmer-30b) returns the answer as the content and the reasoning apart: reasoning_content in a chat completion, reasoning on a sample. Give max_tokens room for both.
  • qwen4-35b-a3b with thinking on returns its reasoning apart as well (the message’s reasoning), and takes how much to think beside it: extra_body={"chat_template_kwargs": {"enable_thinking": True, "reasoning_effort": "low"}} (low, high or xhigh; high when unset).
  • stream=True streams the answer as it is generated; a long answer should stream. Without it, one call must finish in about 90 seconds through the public API: keep max_tokens moderate, and send large batches with connect instead (it polls, so it has no such limit).
The models that can be served list inference in client.models()[i].methods.

Images and videos

A job trained on images or videos is served with them when the run starts with images=True (CLI --images): prompts then hold image and video parts as in Images and videos (“Serve the trained model”). Videos are read with the frame settings the job trained with. A prompt’s images and videos count toward the run’s context (max_seq_len of the inference method). The run is billed from ready, and files it has not seen are uploaded and checked first, which can take minutes. For an evaluation set, check the files before the run starts and give them to it:
Reuse media for every run of the same set. Without it, each run uploads its files as a dataset of its own (images of inf_...), deleted once the run has ended; it counts toward the 50 datasets an account keeps meanwhile.