---
title: "Get file content"
method: GET
path: "/openai/files/{file_id}/content"
tags: ["Files"]
---

# Get file content

`GET /openai/files/{file_id}/content`

## Request

- Base URL: `https://your-resource.openai.azure.com`
- URL: `https://your-resource.openai.azure.com/openai/files/{file_id}/content`
- Auth: API key in header `api-key`

Downloads the content of a file, including training data or result metrics

## Path parameters

- `file_id` string, required

## Query parameters

- `api-version` '2024-02-01' | '2023-12-01-preview' | '2023-10-01-preview', required

## Response `200`

Successfully retrieved file content

## Other responses

- `404`: The requested resource was not found

---

[API](https://skmtc.dev/azure/apis/azure-openai-fine-tuning-api.md) - [All operations](https://skmtc.dev/azure/apis/azure-openai-fine-tuning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-openai-fine-tuning-api/revisions/562c2630055c?raw)
