Download File
GET/v1/files/{file_id}/content
Authorization
Authorizationstringrequired
Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`
Path Parameters
file_idstringrequired
The ID of the file to download
Request
GET/v1/files/{file_id}/content
from mixedbread import Mixedbread
mxbai = Mixedbread(api_key="YOUR_API_KEY")
response = mxbai.files.content("f47ac10b-58cc-4372-a567-0e02b2c3d479")
with open("document.pdf", "wb") as f:
for chunk in response.iter_bytes():
f.write(chunk)
print("File downloaded successfully")Last updated: January 7, 2026