Files
Upload file
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 usemultipart/form-data encoding.
file
required
The file to upload. Must be a valid JSONL (JSON Lines) file for batch processing.
Example JSONL format
Example JSONL format
string
required
The intended purpose of the file. For batch jobs, use
"batch".Supported values:"batch"- For use with the Batch API