AI Gateway

GET /ai/v1/files/{file_id}

Changed on

Request

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

Path parameters

file_idstring required

Provider file id, e.g. file-abc123

Response

File object

bytesinteger
created_atinteger
filenamestring
idstring required
objectstring required

Always file

purposestring

batch for uploads, batch_output for batch results

Changes