Skip to main content

Direct model inference

Production Batch workloads normally execute a published Function with batch_run_function(). Use infer() when you intentionally want to call an available model ID directly and supply the prompt, schema, and runtime settings yourself.
infer() returns a job ID. In attached mode it also streams progress and prints a result preview.

Run multiple models

infer_per_model() submits one job per model and returns their job IDs. It accepts the same data, column, schema, sampling, prompt, priority, estimate, seed, truncation, and ID options as infer(), plus optional parallel names and descriptions lists.
Batch cannot search the web or call tools. Inputs must include all required context.