/
/OpenAI API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 1h ago · Updated 2y ago
Assistants23
Audio3
Audit Logs1
Batch4
Chat1
Completions1
Embeddings1
Files5
  • getReturns a list of files.
  • postUpload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB. The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details. The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models. The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input). Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
  • getReturns information about a specific file.
  • deleteDelete a file.
  • getReturns the contents of the specified file.
Fine-tuning6
Images3
Invites4
Models3
Moderations1
Projects17
Uploads4
Users4
Vector stores13
    Files

    Delete a file.

    delete/files/{file_id}

    Path parameters

    file_idstring required

    The ID of the file to use for this request.

    Response

    OK

    idstring required
    object'file' required
    deletedboolean required

    Changes