Skip to main content
Version: v0.3.0

Upload file.

POST 

/v1/openai/v1/files

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Upload file. Upload a file that can be used across various endpoints.

The file upload should be a multipart form request with:

  • file: The File object (not file name) to be uploaded.
  • purpose: The intended purpose of the uploaded file.
  • expires_after: Optional form values describing expiration for the file.

Request​

Responses​

An OpenAIFileObject representing the uploaded file.