OpenAI Integration

Upload file (OpenAI format)

Uploads a file for use with batch processing or other features.

Note: This endpoint also works without the /v1 prefix (e.g., /openai/files).

post/openai/v1/files

Request

Request body multipart/form-data

filestring binary required

File to upload

purpose'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'fine-tune' | 'fine-tune-results' | 'vision' | 'user_data' | 'evals' required

Purpose of the file

providerstring

Provider for file storage

Response

Successful response

idstring
objectstring
bytesinteger
created_atinteger
filenamestring
purpose'batch' | 'assistants' | 'fine-tune' | 'vision' | 'batch_output' | 'user_data' | 'responses' | 'evals'
status'uploaded' | 'processed' | 'processing' | 'error' | 'deleted'
status_detailsstring
expires_atinteger
storage_backendstring
storage_uristring

Changes

No recorded changes to this operation across all 1 revision of this API.