Retrieve file
GEThttps:/api.openai.com/v1/files/{file_id}
Returns information about a specific file.
Path parameters
file_id
string
Required
The ID of the file to use for this request.
Response
The File object matching the specified ID.
Example request
1 curl https://api.openai.com/v1/files/file-abc123 \2 -H "Authorization: Bearer $OPENAI_API_KEY"
Example response
1 {2 "id": "file-abc123",3 "object": "file",4 "bytes": 120000,5 "created_at": 1677610602,6 "filename": "mydata.jsonl",7 "purpose": "fine-tune",8 }
Built with