Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.38.5/resources/files.ts";

Upload a file that can be used across various endpoints. The size of all the files uploaded by one organization can be up to 100 GB.

The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See the Assistants Tools guide to learn more about the types of files supported. The Fine-tuning API only supports .jsonl files.

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

Parameters

optional
options: Core.RequestOptions

Returns

Core.APIPromise<FileObject>