Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
CLICommands

orl files upload

Upload a JSONL input file for the Batch API, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl files upload <path>

Uploads a JSONL file of batch requests and returns its file object: the file id, size in bytes, purpose, and an expiry time 30 days after the upload. Send multipart/form-data with a file part (the JSONL bytes, up to 200 MB and 50,000 records) and a purpose field set to batch. Each line is one request object with the BatchRequestRecord shape (including the optional openrelay.tool_config extension on chat bodies); the returned file id goes in input_file_id when creating a batch.

Flags

FlagTypeRequired
--purposestringnofile purpose; only "batch" is accepted

This wraps the uploadFile API operation.

On this page