Nexus

Together AI

Use Together AI for fast open-source model inference and embeddings with Nexus.

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

Installation

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

Quick Start

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

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

Options

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

Capabilities

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsYes
VisionNo
ToolsYes
ThinkingNo

Models

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

On this page