检索文件内容

获取 https://api.openai.com/v1/files/{file_id}/content

返回指定文件的内容。source

路径参数

用于此请求的文件的 ID。source

返回

文件内容。source

示例请求
1
2
curl https://api.openai.com/v1/files/file-abc123/content \
  -H "Authorization: Bearer $OPENAI_API_KEY" > file.jsonl