Retrieve file
GET
https://api.openai.com/v1/files/{file_id}Returns information about a specific file.
Request
Path Params
file_id
string
required
The ID of the file to use for this request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
id
string
required
object
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
Example成功示例
{
"id": "file-XjGxS3KTG0uNmNOK362iJua3",
"object": "file",
"bytes": 140,
"created_at": 1613779657,
"filename": "mydata.jsonl",
"purpose": "fine-tune"
}
Last modified: a year ago