Python
Together AI SDK (Python)
from together import Togetherimport osclient = Together( api_key=os.environ.get("TOGETHER_API_KEY"),)file = client.files.retrieve_content(id="file-id")print(file.filename)
{ "object": "<string>", "id": "<string>", "filename": "<string>", "size": 123 }
Get the contents of a single uploaded data file.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File content retrieved successfully
The response is of type object.
object
Was this page helpful?