GET
/
models
from together import Together
import os

client = Together(
    api_key=os.environ.get("TOGETHER_API_KEY"),
)

response = client.models.list()

for model in response:
    print(model.id)
[
  {
    "id": "Austism/chronos-hermes-13b",
    "object": "model",
    "created": 1692896905,
    "type": "chat",
    "display_name": "Chronos Hermes (13B)",
    "organization": "Austism",
    "link": "<string>",
    "license": "other",
    "context_length": 2048,
    "pricing": {
      "hourly": 0,
      "input": 0.3,
      "output": 0.3,
      "base": 0,
      "finetune": 0
    }
  }
]

Authorizations

Authorization
string
header
default:default
required

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

Response

200
application/json

200

The response is of type object[].