Nexus
1.x
Docs/Nexus/Together AI
Open

Reading1 min
Updated31 Jul 2026
Sourcev1/providers/together.mdx

Together AI hosts popular open-source models with fast inference and embedding support. Uses an OpenAI-compatible API.

Installation01

import "github.com/xraph/nexus/providers/together"

Quick Start02

provider := together.New(os.Getenv("TOGETHER_API_KEY"))

gw := nexus.New(
    nexus.WithProvider(provider),
)

Options03

OptionDescription
together.WithBaseURL(url)Override the API base URL (default: https://api.together.xyz/v1)

Capabilities04

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsYes
VisionNo
ToolsYes
ThinkingNo

Models05

ModelContextMax OutputInput PriceOutput Price
meta-llama/Llama-3.3-70B-Instruct-Turbo131K4,096$0.88/M$0.88/M
meta-llama/Llama-3.1-405B-Instruct-Turbo131K4,096$3.50/M$3.50/M
meta-llama/Llama-3.1-8B-Instruct-Turbo131K4,096$0.18/M$0.18/M
togethercomputer/m2-bert-80M-8k-retrieval8,192$0.008/M