files

Generate Presigned Url

Generate a presigned URL for file upload.

post/v1/files/presigned-url

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/presigned-url
  • Auth: HTTP bearer

Request body

filenamestring required

Name of the file to be uploaded

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

Purpose of the file

Response

Successful Response

idstring nullable

Unique identifier of the file

filenamestring required

The filename of the file

content_typestring nullable

Content type of the file

urlstring required

The presigned URL for uploading the file

upload_methodstring

HTTP method to use for uploading

public_urlstring nullable

URL for previewing the file after upload

created_atstring date-time

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

Changes

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