Create a sampler
Creates a standalone Loops sampler not linked to a run.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Body
ID of the Loops session this sampler belongs to.
Capacity the sampler runs on. 'spot' allows preemption when its GPUs are reclaimed. Defaults to 'dedicated' for standalone samplers. Paired samplers inherit their run's availability model; an explicit value must match it.
dedicated, spot Base model ID for a standalone sampler (for example, a baseline).
ID of an existing run to attach this sampler to. When set, the sampler is paired to the run and weight-syncs from its trainer, and base_model is inherited from the run. Omit to create a standalone sampler.
Maximum prompt length (in tokens) the sampler must handle. Set this to the longest prompt you plan to send.
bt:// URI of an existing sampler checkpoint to serve. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>.
"bt://loops:k4q95w5/sampler_weights/step-100"
Optional ID of a prior Loops session to reuse a trainer and/or sampler from. Deprecated.
Number of replicas the sampler runs, applied as both its minimum and maximum. Must be at least 1. If omitted, a new sampler uses the platform defaults and a paired sampler reused from an earlier run keeps its settings. A run that already has a sampler keeps it unchanged, and when a run ends, its sampler is scaled down.
x >= 1