---
title: "文件内容"
method: GET
path: "/paas/v4/files/{file_id}/content"
tags: ["文件 API"]
---

# 文件内容

`GET /paas/v4/files/{file_id}/content`

## Request

- Base URL: `https://open.bigmodel.cn/api`
- URL: `https://open.bigmodel.cn/api/paas/v4/files/{file_id}/content`
- Auth: HTTP bearer

获取文件内容。只支持 `batch` 文件类型。点击 **Try it** 按钮可快速试用。

## Path parameters

- `file_id` string, required

## Response `200`

请求成功，返回文件字节流。

## Other responses

- `default`: 请求失败。

---

[API](https://skmtc.dev/bigmodel/apis/zhipu-ai-api.md) - [All operations](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bigmodel/apis/zhipu-ai-api/revisions/f2be7c0fcbb9?raw)
