OpenAI

Retrieve file content

Return the content of a file.

Upload a file first, then replace the example file ID with its returned ID.

GET /openai/v1/files/{file_id}/content● Supported

Official OpenAI docs ↗

Request parameters

  • file_idstring必填

    path: The ID of the file to use for this request.

Returns

200

Errors follow the OpenAI format — see error codes

Response

HTTP 200

OK

application/octet-stream

NameTypeDescription
$string (binary)