AI Gateway
post/ai/v1/files

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/v1/files
  • Auth: HTTP bearer

Response

Uploaded file

bytesinteger
created_atinteger
filenamestring
idstring required
objectstring required

Always file

purposestring

batch for uploads, batch_output for batch results

Changes