batch
Upload a batch input file
Upload a JSONL file of chat-completion requests, one BatchInputLine per line, with purpose: batch. Up to 100 MB and 50,000 lines. Files are deleted 30 days after upload unless you set expires_after, or 24 hours on zero-data-retention accounts. Returns the file id to pass as input_file_id.
post/v1/files
Response
The stored file.
Example response
{
"id": "file_9c2c1c3e-5b6a-4f0e-8d0f-2a1b3c4d5e6f",
"object": "file",
"bytes": 48211,
"created_at": 1780000000,
"expires_at": 1782592000,
"filename": "requests.jsonl",
"purpose": "batch",
"status": "uploaded"
}Changes
Changed in 1 of the 3 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○