v2
latestOpenAPI 3.1.02026-08-07139158192.4 KBFiles
Upload a JSONL input file for the Batch API
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.
post/v1/files
Response
OK