Skip to content

CLI

trio batch

Create, list, inspect, download results for, and cancel batch inference jobs.

bash
trio batch create FILE_ID
trio batch create --file requests.jsonl --completion-window 24h --description "nightly evaluation"
trio batch list --limit 20
trio batch list --all
trio batch info BATCH_ID
trio batch download BATCH_ID -o ./results
trio batch cancel BATCH_ID --yes

Subcommands ​

create ​

bash
trio batch create <FILE_ID> [--completion-window <WINDOW>] [--description <TEXT>]
trio batch create --file <PATH> [--completion-window <WINDOW>] [--description <TEXT>]

Submit a new batch inference job. Pass a published FILE_ID, or use --file to upload a local file before submitting the job.

Argument / OptionDescription
<FILE_ID>ID of a published file (from trio file upload)
--file <PATH>Upload a local file first and submit the job with it
--completion-window <WINDOW>Set the completion window, such as 24h
--description <TEXT>Add a description for the job

list ​

bash
trio batch list [--limit <N>] [--all]

List batch inference jobs. Supports the global --format json / --format csv option.

OptionDefaultDescription
--limit <N>20Maximum items per page
--all—Automatically retrieve every page

info ​

bash
trio batch info <BATCH_ID>

Inspect status and details for the specified batch job. Supports the global --format json / --format csv option.


download ​

bash
trio batch download <BATCH_ID> [-o <DIR>]

Download published output and error JSONL files to the specified directory. If one result download fails, files already saved remain in place. Uses text output only.

Argument / OptionDescription
<BATCH_ID>Batch job ID
-o <DIR>Output directory path

cancel ​

bash
trio batch cancel <BATCH_ID> [--yes]

Cancel the specified batch job. Asks for confirmation on an interactive terminal; non-interactive calls must pass --yes (otherwise exits with status 2). Uses text output only.

Argument / OptionDescription
<BATCH_ID>Batch job ID to cancel
--yesSkip interactive confirmation (required for non-interactive calls)