token_prices): prompt, cached prompt and generated tokens. More in Inference.
Estimate and start
POST /v1/inference/estimate takes job_id or model, and max_hours, and returns the price, in the same shape as an
RL run’s estimate. POST /v1/inference starts the run.
The run object
GET /v1/inference/{id} returns one run; GET /v1/inference returns a list. The fields are an RL run’s, with the
job in params.job_id.
Call the model
The run speaks OpenAI’s API. The base URL is/v1/inference/{id}/v1 and the key is your NexCloud key. It serves
chat/completions, completions and models; any model name means the run’s model.
stream must finish in about 90 seconds: stream a long answer, and send large batches with
connect. Chat prompts render with thinking off, as jobs train.
Stop
POST /v1/inference/{id}/stop.
Images and videos
POST /v1/inference/{id}/images with {"dataset_id"} gives a run started with images a dataset’s files. The SDK’s
live.add_images(paths) does it for you; see Inference.