Files
anyllm-proxy/docs/providers/together_ai.md
whit3rabbitandClaude Sonnet 4.6 545bdbbbd3 feat: add bedrock native passthrough, generic passthrough, provider docs, and managed backend fixes
Adds bedrock_native.rs (Converse/InvokeModel with SigV4) and
generic_passthrough.rs catch-all for Translate mode. Adds comprehensive
provider reference docs (docs/providers/, docs/ENDPOINTS.md). Fixes
managed backend admin UI (BackendForm, ManagedBackendsSection) and
admin route/model handler issues. Adds automated model pricing update
workflow (scripts/update_pricing.py, .github/workflows/update-pricing.yml).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 16:36:16 -05:00

2.3 KiB

Together AI

Large open-source model catalog with serverless and dedicated endpoints.

LiteLLM prefix: together_ai/
Status: Stub — routes through OpenAI-compatible client
Docs: https://docs.together.ai/docs/openai-api-compatibility

Authentication

Variable Required Description
TOGETHER_API_KEY Yes API key from api.together.xyz (also accepted as TOGETHERAI_API_KEY)
TOGETHERAI_API_KEY Yes Alias for TOGETHER_API_KEY

Quick Start

Single-Backend (env vars)

BACKEND=together_ai TOGETHER_API_KEY=your-key cargo run -p anyllm_proxy
# Docker:
docker run -e BACKEND=together_ai -e TOGETHER_API_KEY=your-key -e PROXY_OPEN_RELAY=true -p 3000:3000 followthewhit3rabbit/anyllm-proxy

LiteLLM YAML Config

model_list:
  - model_name: llama-3.2-90b-vision
    litellm_params:
      model: together_ai/meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo
      api_key: "env:TOGETHER_API_KEY"

Usage Examples

Anthropic Messages API

curl http://localhost:3000/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $PROXY_API_KEYS" \
  -d '{"model": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

OpenAI Chat Completions API

curl http://localhost:3000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PROXY_API_KEYS" \
  -d '{"model": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo", "messages": [{"role": "user", "content": "Hello"}]}'

Capabilities

Feature Supported
Chat Completions
Streaming
Tool Use
Embeddings
Vision
Batch

Notable Models

Model ID Context Notes
meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo 131k Vision-capable Llama 3.2
mistralai/Mixtral-8x7B-Instruct-v0.1 32k Mixtral MoE
Qwen/Qwen2.5-72B-Instruct-Turbo 128k Qwen 2.5 72B

Notes

Together AI offers both serverless pay-per-token endpoints and dedicated GPU deployments. Model IDs follow the org/model-name pattern. The full catalog is available at https://api.together.xyz/models. Embedding models are served at the same base URL using the standard /v1/embeddings endpoint.