Skip to main content
POST
Upload a file for use with OpenAI Batch API. The uploaded file is stored on OpenAI’s servers and can be used to create batch jobs for asynchronous LLM request processing.
Customer credentials required: This endpoint requires your own OpenAI API key configured in Keywords AI dashboard (Settings → Providers). Keywords AI passes the request through to OpenAI’s infrastructure.

Request body

The request must use multipart/form-data encoding.
file
required
The file to upload. Must be a valid JSONL (JSON Lines) file for batch processing.
string
required
The intended purpose of the file. For batch jobs, use "batch".Supported values:
  • "batch" - For use with the Batch API

Response

Returns a file object with metadata about the uploaded file.