OpenAI/createFile

Online calls unavailable · details below

OpenAIOpenAI API

POST/files

Manage create File.

Contract-preserving POST Endpoint for create File in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.

All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
createFile
Server
https://api.openai.com/v1
Authentication
ApiKeyAuth, AdminApiKeyAuth

Request parameters

No URL, query, or header parameters.

Request body

CreateFileRequestrequired

Content-Type: multipart/form-data

Properties: expires_afterfilepurpose

Responses

200

OpenAIFileapplication/json

Successful supplier response.

Properties: bytescreated_atexpires_atfilenameidobjectpurposestatusstatus_details

{
  "bytes": 0,
  "created_at": 0,
  "expires_at": 0,
  "object": "file",
  "purpose": "assistants",
  "status": "uploaded"
}