---
title: "Get File"
method: GET
path: "/v1/files/{file_id}"
tags: ["Files & Batches"]
---

# Get File

`GET /v1/files/{file_id}`

## Path parameters

- `file_id` string, required

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Response `200`

Successful Response

- OpenAIFile
  - `id` string, required
  - `object` 'file', required
  - `created_at` integer, required
  - `filename` string, required
  - `bytes` integer, required
  - `purpose` 'batch' | 'batch_output' | 'fine-tune', required
  - `expires_at` integer, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
