Download File
beta.files.download(strfile_id, FileDownloadParams**kwargs) -> BinaryResponseContent
/v1/files/{file_id}/content?beta=true
Download File
Parameters
file_id: str
ID of the File.
Returns
BinaryResponseContent
Download File
Python
from anthropic import Anthropic
client = Anthropic(
api_key="my-anthropic-api-key",
)
response = client.beta.files.download(
file_id="file_id",
)
print(response)
content = response.read()
print(content)