Uploads

Add upload part

Changed on

Adds a Part to an Upload object. A Part represents a chunk of bytes from the file you are trying to upload.

Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.

It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you complete the Upload.

post/uploads/{upload_id}/parts

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/uploads/{upload_id}/parts
  • Auth
    HTTP bearer

Path parameters

upload_idstring required
Example:upload_abc123

The ID of the Upload.

Request body multipart/form-data

datastring binary required

The chunk of bytes for this Part.

Response

OK

idstring required

The upload Part unique identifier, which can be referenced in API endpoints.

created_atinteger required

The Unix timestamp (in seconds) for when the Part was created.

upload_idstring required

The ID of the Upload object that this Part was added to.

object'upload.part' required

The object type, which is always upload.part.

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status