Skip to main content
POST
/
v1
/
files
Upload file
curl --request POST \
  --url https://api.studio.nebius.com/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form purpose=batch \
  --form file=@example-file
{
  "id": "<string>",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "object": "file",
  "purpose": "<string>",
  "status": "<string>",
  "status_details": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

ai_project_id
string | null

Project ID to upload file to

Body

multipart/form-data
file
file
required
purpose
enum<string>
required
Available options:
batch,
fine-tune

Response

Successful Response

id
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
object
string
default:file
status
string | null
status_details
string | null