latestOpenAPI 3.1.02026-08-197104501.1 MB
8fbaab4fc7c5
files
Create File
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/{provider}/v1/files
Path parameters
providerstring nullable required
Response
Successful Response
{"stackTrail":"paths:/{provider}/v1/files:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}