Build AI Agents with Together AI
Run leading open-source models via a unified API with competitive inference pricing.
Available Together AI Models
| Model | ID |
|---|---|
| Llama 3 70B | meta-llama/Llama-3-70b-chat-hf |
| Llama 3 8B | meta-llama/Llama-3-8b-chat-hf |
| Mixtral 8x7B | mistralai/Mixtral-8x7B-Instruct-v0.1 |
Why use Together AI for AI agents?
Open-source models
Competitive pricing
Fine-tuning support
Model variety
Best use cases
- Open-source deployments
- Fine-tuned models
- Cost optimization
- Model comparison
Quick start code
agent.py
from agno.agent import Agent
from agno.models.together import Together
agent = Agent(
name="My Together AI Agent",
model=Together(id="meta-llama/Llama-3-70b-chat-hf"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set TOGETHER_API_KEY