/
/OpenAI API
DocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Checked 37m ago · Updated 6h ago
Assistants23
Audio3
Audit Logs1
Batch4
Chat6
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](/docs/assistants/tools) for details. The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models. The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](/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
Projects19
Realtime1
Responses4
Uploads4
Usage9
Users4
Vector stores16
  • getList organization API keys
  • postCreate an organization admin API key
  • getRetrieve a single organization API key
  • deleteDelete an organization admin API key
Files

Returns the contents of the specified file.

get/files/{file_id}/content

Path parameters

file_idstring required

The ID of the file to use for this request.

Response

OK

string required

Changes