GET
/
files
/
{id}
/
content
from together import Together
import os

client = 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
}

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

200
application/json

File content retrieved successfully

The response is of type object.