HomeAPIs › Together AI

Together AI API — pricing, free tier & how to get a key

Together AI hosts open-source LLMs — Llama, Mixtral, Qwen, DeepSeek and more — behind a fast, OpenAI-compatible API, usually far cheaper than closed frontier models. If you want open weights without running your own GPUs, it's a top pick. Here's the pricing and setup.

Together AI API pricing (reference, June 2026)

ModelInput $/1MOutput $/1MBest for
Llama 3.1 8B cheapest$0.18$0.18High volume, cheap
Mixtral 8x7B$0.60$0.60Balanced quality
Llama 3.1 70B$0.88$0.88Strong reasoning
Llama 3.1 405B$3.50$3.50Frontier-class open model
⚠️ Reference prices, June 2026 — Together AI updates pricing regularly. Confirm on together.ai/pricing before budgeting. Output is billed separately and costs more than input.

→ Compare Together against GPT-4o, Claude and Gemini on the AI API cost calculator.

Is there a free tier?

Together AI gives new accounts free credit to start, then pay-as-you-go per token. There's no perpetual free tier, but open-model pricing is low enough that light use costs cents. For a genuine free quota, Gemini is the alternative.

How to get a Together AI API key (step by step)

1. Sign up at together.ai.
2. Open Settings → API Keys and create a key.
3. Add billing for usage beyond the starting credit.
4. The API is OpenAI-compatible — point the OpenAI SDK at Together's base URL.

Test it with a simple request:

# quick test (replace $TOGETHER_API_KEY)
curl https://api.together.xyz/v1/chat/completions \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"meta-llama/Llama-3.1-8B-Instruct-Turbo","messages":[{"role":"user","content":"hi"}]}'

Cheaper alternatives

For the cheapest closed models, DeepSeek-V3 and Gemini Flash compete hard. Other open-model hosts include Fireworks AI, Groq (fastest) and OpenRouter (one key, many providers).

FAQ

Is Together AI cheap?

Yes — open models like Llama 3.1 8B run around $0.18 per million tokens, far below frontier closed models. Larger models cost more but still undercut most closed APIs.

Does Together AI have a free tier?

Free starting credit, then pay-as-you-go. No perpetual free tier.

Is Together AI OpenAI-compatible?

Yes — change the base URL and key, and most OpenAI SDK code works unchanged.

How do I get a Together AI key?

Sign up at together.ai, open Settings → API Keys, create a key, and add billing.

Not affiliated with Together AI. Prices are reference estimates — always verify on the official pricing page.