Skip to main content
GET
/
v1
/
files
/
{file_id}
Retrieve a file
curl --request GET \
  --url https://api.zerogpu.ai/v1/files/{file_id} \
  --header 'x-api-key: <api-key>' \
  --header 'x-project-id: <api-key>'
{
  "id": "<string>",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "status_details": "<string>",
  "expires_at": 123,
  "is_error": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.zerogpu.ai/llms.txt

Use this file to discover all available pages before exploring further.

Look up metadata for one file (filename, bytes, purpose, status) without downloading the body. Use Download file for the JSONL content. Full reference: Files API.

Authorizations

x-api-key
string
header
required
x-project-id
string
header
required

Path Parameters

file_id
string
required

Response

File object

id
string

Prefixed with file-.

object
enum<string>
Available options:
file
bytes
integer
created_at
integer
filename
string
purpose
enum<string>

Uploads use batch; batch results use batch_output.

Available options:
batch,
batch_output
status
enum<string>
Available options:
uploaded,
processed,
error
status_details
string
expires_at
integer
is_error
boolean

ZeroGPU extension. true on batch error output files only.