Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/files.ts>Files#create

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
method Files.prototype.create
import { Files } from "https://deno.land/x/openai@v4.47.1/resources/files.ts";

Upload 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 for details.

The Fine-tuning API only supports .jsonl files.

The Batch API only supports .jsonl files up to 100 MB in size.

Please contact us if you need to increase these storage limits.

Parameters

optional
options: Core.RequestOptions

Returns

Core.APIPromise<FileObject>