files

Upload a file that can be used across - Assistants API, Batch API This is the equivalent of POST https://api.openai.com/v1/files

Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/create

Example Curl

curl http://localhost:4000/v1/files         -H "Authorization: Bearer sk-1234"         -F purpose="batch"         -F file="@mydata.jsonl"
    -F expires_after[anchor]="created_at"         -F expires_after[seconds]=2592000
post/v1/files

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/v1/files
  • Auth
    API key in header x-litellm-api-key

Query parameters

providerstring nullable

Request body multipart/form-data

purposestring required
target_model_namesstring
target_storagestring
custom_llm_providerstring
filestring binary required
litellm_metadatastring nullable

Response

Successful Response

unknown required

Changes

    • breaking

      the request property contentMediaType changed from to application/octet-stream

    • info

      the request property format was generalized from binary to no format

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status