
Together AI Has a Free API: Run Open-Source LLMs 4x Cheaper Than OpenAI
What is Together AI? Together AI is an inference platform that lets you run open-source LLMs (Llama 3, Mixtral, DBRX, Qwen) through a simple API — at prices 2-4x lower than OpenAI. They also offer a free tier with $5 credits to get started. Why Together AI? $5 free credits — enough for ~5M tokens with smaller models OpenAI-compatible API — swap openai.OpenAI(base_url=...) and you are done 70+ open-source models — Llama 3 70B, Mixtral, CodeLlama, DBRX, Qwen Fine-tuning — fine-tune any model with your data, starting at $2/hour Serverless + dedicated — scale from prototype to production Quick Start pip install together from together import Together client = Together ( api_key = " your-api-key " ) # Free $5 at api.together.xyz response = client . chat . completions . create ( model = " meta-llama/Llama-3-70b-chat-hf " , messages = [{ " role " : " user " , " content " : " Explain container orchestration in 3 sentences " }] ) print ( response . choices [ 0 ]. message . content ) OpenAI-Compa
Continue reading on Dev.to Python
Opens in a new tab


