curl --request POST \
--url https://api.openai.com/v1/uploads/{upload_id}/parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form data='@example-file'{
"id": "<string>",
"created_at": 123,
"upload_id": "<string>",
"object": "upload.part"
}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.
curl --request POST \
--url https://api.openai.com/v1/uploads/{upload_id}/parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form data='@example-file'{
"id": "<string>",
"created_at": 123,
"upload_id": "<string>",
"object": "upload.part"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the Upload.
"upload_abc123"
The chunk of bytes for this Part.
OK
The upload Part represents a chunk of bytes we can add to an Upload object.
The upload Part unique identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Part was created.
The ID of the Upload object that this Part was added to.
The object type, which is always upload.part.
upload.part Was this page helpful?