files
Upload file
Upload a JSONL file for batch processing.
Each line must be a valid JSON object containing custom_id, method, url, and body fields. The model field in the body must reference a model your API key has access to.
post/files
Response
File uploaded and validated successfully.
Example response
{
"bytes": 12045,
"created_at": 1703187200,
"filename": "batch_requests.jsonl",
"id": "file-abc123",
"object": "file",
"purpose": "batch"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.