UploadFile:

An intermediate Upload object is created, allowing you to add Parts to it. Currently, an Upload size can be a maximum of 9 GB in total and will expire two hours after being created. After the Upload is completed a File object will be generated, containing all the uploaded parts. This File object can then be used across our platform just like any other file.

post/uploads

Query parameters

api-versionstring required

The requested API version.

Request body

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

The intended purpose of the uploaded documents. Use "fine-tune" for fine-tuning. This allows us to validate the format of the uploaded file.

filenamestring required
bytesinteger required
mime_typestring required

Response

The upload has been successfully created.

object'list' | 'fine_tuning.job' | 'file' | 'fine_tuning.job.event' | 'fine_tuning.job.checkpoint' | 'model' | 'upload' | 'upload.part' | 'batch' | 'wandb'

Defines the type of an object.

created_atinteger

A timestamp when this job or item was created (in unix epochs).

idstring

The identity of this item.

bytesinteger
filenamestring
purpose'fine-tune' | 'fine-tune-results' | 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'evals' | 'evals_output'

The intended purpose of the uploaded documents. Use "fine-tune" for fine-tuning. This allows us to validate the format of the uploaded file.

status'pending' | 'expired' | 'completed' | 'cancelled'
expires_atinteger

Changes

Changed in 3 of the 26 revisions of this API.23

  • 2022-03-01-previewb177dc430e3912See the full diff
    • added required request body

      request-body-added-required

    • added the media type application/json for the response with the status 200

      response-media-type-added

    • added the media type application/json for the response with the status default

      response-media-type-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 2022-03-01-previewdf4579cc5f4f1See the full diff
    • endpoint added

      endpoint-added

  • 2022-03-01-preview9d525b5caa311See the full diff
    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 149 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog