v1

latestOpenAPI 3.1.02026-07-26132433.7 KB
Files

Upload a file

Upload a JSONL file with purpose=batch (max 100 MB). Use the returned id as input_file_id when creating a batch.

post/v1/files

Headers

x-project-idstring

Optional project identifier. Scopes the request to a specific project when provided.

Response

File uploaded

idstring

Prefixed with file-.

object'file'
bytesinteger
created_atinteger
filenamestring
purpose'batch' | 'batch_output'

Uploads use batch; batch results use batch_output.

status'uploaded' | 'processed' | 'error'
status_detailsstring
expires_atinteger
is_errorboolean

ZeroGPU extension. true on batch error output files only.