Files

Returns information about a file.

Changed on
get/openai/v1/files/{file_id}

Request

  • Base URL
    https://api.groq.com
  • URL
    https://api.groq.com/openai/v1/files/{file_id}
  • Auth
    HTTP bearer

Path parameters

file_idstring required

The file to retrieve

Response

OK

idstring

The file identifier, which can be referenced in the API endpoints.

bytesinteger

The size of the file, in bytes.

created_atinteger

The Unix timestamp (in seconds) for when the file was created.

filenamestring

The name of the file.

object'file'

The object type, which is always file.

purpose'batch' | 'batch_output'

The intended purpose of the file. Supported values are batch, and batch_output.

Changes