Batch API input files
Each line defines one request. Required fields:custom_idmethodbody
url is not required in the JSONL line format Inference.net currently validates. The request type is inferred from the body shape on each line.
Source-backed Batch API line
This shape comes frominference/apps/relay/tests/e2e/utils/batch-test.utils.ts.
- large offline queues for chat completions or completions
- nightly processing jobs
- translation, extraction, or synthetic-data workloads at scale
Historical dataset uploads
Each line is one request or request/response record. Typical fields:request- optional
response
Source-backed historical upload line
This shape matches the upload processor tests ininference/apps/llm-ops-consumer/tests/unit/inference-upload.vitest.test.ts.
- importing logs from another provider
- backfilling Observe with historical traffic
- creating eval or training datasets from older request history
JSONL rules
- one valid JSON object per line
- no trailing commas across lines
- keep each line self-contained