Python
Together AI SDK (Python)
from together import Togetherimport osclient = Together( api_key=os.environ.get("TOGETHER_API_KEY"),)file = client.files.retrieve(id="file-id")print(file)
{ "id": "<string>", "object": "file", "created_at": 1715021438, "filename": "my_file.jsonl", "bytes": 2664, "purpose": "fine-tune", "Processed": true, "FileType": "jsonl", "LineCount": 123 }
List the metadata for a single uploaded data file.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File retrieved successfully
The response is of type object.
object
Was this page helpful?