files

Upload File Route

Upload a file.

post/v1/files

Request

  • Base URL: https://api.vlm.run (the document declares no server; this is the origin it was published from)
  • URL: https://api.vlm.run/v1/files
  • Auth: HTTP bearer

Query parameters

purpose'assistants' | 'batch' | 'fine-tune' | 'vision' | 'datasets'
generate_public_urlboolean

Whether to generate a public URL for the uploaded file

Response

Successful Response

idstring nullable

Unique identifier of the file

filenamestring nullable required

Name of the file

bytesinteger required

Size of the file in bytes

purpose'assistants' | 'batch' | 'fine-tune' | 'vision' | 'datasets' required

Purpose of the file

created_atstring date-time

Date and time when the file was created (in UTC timezone)

object'file'

Type of the file

public_urlstring nullable

Presigned URL of the file

Changes

No recorded changes to this operation across all 2 revisions of this API.