# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
models = client.models.list()
for model in models:
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
}
}
]Lists all of Together’s open-source models
# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
models = client.models.list()
for model in models:
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
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
200
"Austism/chronos-hermes-13b"
"model"
1692896905
chat, language, code, image, embedding, moderation, rerank "chat"
"Chronos Hermes (13B)"
"Austism"
"other"
2048
Was this page helpful?