> ## 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.

# Retrieve file

> Interactive playground for GET /v1/files/{file_id}.

Look up metadata for one file (`filename`, `bytes`, `purpose`, `status`) without downloading the body. Use [Download file](/api-reference/download-file) for the JSONL content.

Full reference: [Files API](/docs/batch/objects).


## OpenAPI

````yaml api-reference/openapi/batch.openapi.json GET /v1/files/{file_id}
openapi: 3.1.0
info:
  title: ZeroGPU Batch & Files API
  version: '1.0'
  description: >-
    JSONL file storage (`/v1/files`) and asynchronous batch inference
    (`/v1/batches`). Wire-compatible with OpenAI's files and batch APIs. Auth:
    `x-api-key` on every request; `x-project-id` is optional.
servers:
  - url: https://api.zerogpu.ai
    description: Production
security:
  - ApiKey: []
paths:
  /v1/files/{file_id}:
    get:
      tags:
        - Files
      summary: Retrieve a file
      description: File metadata without downloading the JSONL body.
      operationId: retrieveFile
      parameters:
        - name: x-project-id
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional project identifier. Scopes the request to a specific
            project when provided.
        - name: file_id
          in: path
          required: true
          schema:
            type: string
          example: file-abc123...
      responses:
        '200':
          description: File object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
        '404':
          description: File not found
components:
  schemas:
    File:
      type: object
      properties:
        id:
          type: string
          description: Prefixed with `file-`.
        object:
          type: string
          enum:
            - file
        bytes:
          type: integer
        created_at:
          type: integer
        filename:
          type: string
        purpose:
          type: string
          enum:
            - batch
            - batch_output
          description: Uploads use `batch`; batch results use `batch_output`.
        status:
          type: string
          enum:
            - uploaded
            - processed
            - error
        status_details:
          type: string
        expires_at:
          type: integer
        is_error:
          type: boolean
          description: ZeroGPU extension. `true` on batch error output files only.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````