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 --yesSubcommands
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 / Option | Description |
|---|---|
<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.
| Option | Default | Description |
|---|---|---|
--limit <N> | 20 | Maximum 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 / Option | Description |
|---|---|
<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 / Option | Description |
|---|---|
<BATCH_ID> | Batch job ID to cancel |
--yes | Skip interactive confirmation (required for non-interactive calls) |
Related
trio file- For the corresponding Python batch operations, see
RestClient