Switching from Together AI

Together AI alternative.
Frontier + open-weight under one key — not just open-source.

Together is a hosted open-source inference platform. AIgateway adds Anthropic, OpenAI, Google, xAI frontier models to the same catalog so you ship one integration instead of two.

Get your key →See pricingClaim credit match
Migration

One-line diff.

Change the base URL and the key. Every other line of your integration stays the same.

Before — Together AI
from together import Together

client = Together(api_key="...")

r = client.chat.completions.create(
    model="meta-llama/Llama-4-Scout-17B-16E-Instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
After — AIgateway
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

r = client.chat.completions.create(
    model="meta/llama-4-scout-17b-16e-instruct",
    messages=[{"role": "user", "content": "Hello"}],
)
Why switch

What AIgateway ships that Together AI doesn't.

WINS
  • Frontier AND open-weight on one key — Claude Opus 4.7, GPT-5.4, Gemini 3.1 Pro, Kimi K2.6, Llama 4 together.
  • Every modality beyond text — image, video, voice, audio, music, embeddings.
  • Eval-driven routing to pick the cheapest frontier-quality option.
  • Sub-account API — mint keys per end user with spend caps.
  • Edge latency — 47ms p50 overhead globally vs Together's regional cold start.
HONEST
What Together AI does better, per their public docs.
  • Together can host fine-tuned custom weights we don't yet support; fine-tuning is on the Enterprise roadmap.
Credit match

Send your last Together AI invoice.
We match it.

Forward last month's Together AI invoice to switch@aigateway.sh and we apply matching AIgateway credit (up to $1,000) within 24 hours. Same base URL change. No migration tax.

Other migrations

Switching from something else?

Switch from OpenRouterSwitch from PortkeySwitch from HeliconeSwitch from LiteLLMSwitch from Fireworks AISwitch from RequestySwitch from Braintrust