Skip to main content
GET
/
v1
/
files
/
{file_id}
Get File
curl --request GET \
  --url https://api.deepinfra.com/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "created_at": 123,
  "filename": "<string>",
  "bytes": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

xi-api-key
string | null
x-api-key
string | null

Path Parameters

file_id
string
required

Response

Successful Response

id
string
required
object
string
required
Allowed value: "file"
created_at
integer
required
filename
string
required
bytes
integer
required
purpose
enum<string>
required
Available options:
batch,
batch_output,
fine-tune