Python
from cheapestinference import CheapestInference import os client = CheapestInference( api_key=os.environ.get("CHEAPESTINFERENCE_API_KEY"), ) response = client.files.list() for file in response.data: print(file.id)
{ "data": [ { "id": "file-123", "object": "file", "created_at": 1715021438, "filename": "dataset.jsonl", "bytes": 2664, "purpose": "fine-tune", "FileType": "jsonl", "Processed": true, "LineCount": 1000 } ] }
Returns a list of files that belong to the user’s organization.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
Show child attributes