Together AI
Advertisement
Free Models
| Model ID | Context | Modalities | RPM | RPD |
|---|---|---|---|---|
meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo | 131K | text | — | — |
Quick Start
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.together.xyz/v1",
api_key="YOUR_API_KEY", # get at https://api.together.ai/settings/api-keys
)
response = client.chat.completions.create(
model="meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content) curl
curl https://api.together.xyz/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
"messages": [{"role": "user", "content": "Hello!"}]
}' Advertisement