provider Files GET /files/{file_id}/content
@utdk/openai /files/{file_id}/content
Returns the contents of the specified file.
file_id path required
The ID of the file to use for this request.
string

Try it

Authentication
Configure credentials for OpenAI API
downloadfile
GET/files/{file_id}/content

Parameters

required

The ID of the file to use for this request.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import openai from '@utdk/openai';

await openai.downloadfile()