Together AI
Read the one guide below that matches the task. Each guide covers the common path by itself and ends with an Open next menu saying what every reference and script contains, so you open a file only when it holds a detail you need. Paths are relative to this skill's directory.
Setup
- Auth:
TOGETHER_API_KEYin the environment. Python:uv pip install --upgrade "together>=2.0.0", thenclient = Together(). TypeScript:npm install together-ai, thennew Together(). The Python SDK and this skill's scripts use only the API key. From CLI 2.41,tg loginsigns in through a browser device flow (--no-browserprints the URL) andtg switchpicks a project; it is interactive, so ask the user to run it. The CLI also acceptsTOGETHER_API_KEY. - CLI:
uv tool install "together[cli]"givestg(aliastogether), used for dedicated inference, clusters, and fine-tuning. Iftg beta endpointsortg beta modelsis missing, the CLI is outdated:uv tool upgrade together. From 2.40,tgprints JSON by default when an AI agent runs it; pass--no-jsonfor tables.
Guides
| Guide | Use for |
|---|---|
domains/chat-completions.md | text generation, streaming, multi-turn chat, tool calling, JSON output, reasoning and vision models |
domains/images.md | text-to-image, image editing (Kontext), reference images |
domains/video.md | text-to-video, image-to-video, keyframes |
domains/audio.md | TTS (REST, streaming, WebSocket), transcription, translation, diarization, realtime STT |
domains/embeddings.md | embeddings, semantic search, RAG retrieval, reranking (not currently offered; read before building) |
domains/batch-inference.md | large offline jobs at lower cost (JSONL, batches.create) |
domains/evaluations.md | LLM-as-a-judge: classify, score, or compare outputs |
domains/fine-tuning.md | LoRA, full, DPO, VLM, function-calling, and reasoning tuning; BYOM upload |
domains/sandboxes.md | run code in isolated sandboxes with together-sandbox, which replaces the retired Code Interpreter (code_interpreter) |
domains/dedicated-model-inference.md | dedicated endpoints (tg beta endpoints, client.beta.endpoints): deploy, autoscale, traffic split, A/B, shadow, metrics, model/LoRA upload, v1 migration (HTTP 403 endpoints_v1_create_access_disabled) |
domains/dedicated-containers.md | your own Docker inference worker: Sprocket, Jig, queue jobs |
domains/gpu-clusters.md | H100/H200/B200 clusters, Kubernetes or Slurm, shared storage, credentials |
domains/kueue.md | quota-gated job queueing on a Together Kubernetes cluster |
domains/volcano.md | all-or-nothing gang scheduling on a Together Kubernetes cluster |
domains/togetherlink.md | TogetherLink (tlink, tclaude): run Claude Code, Codex, OpenCode, Pi Code, Claude Desktop, or ChatGPT Desktop on Together models; install, keys, --main pinning, headless runs, usage |
Close calls: a still image is images, motion is video. Hosting a model is
dedicated-model-inference, hosting your own container image is dedicated-containers, raw nodes
are gpu-clusters. Jobs that wait for quota use kueue; pods that must start together use
volcano. Running an existing coding agent or desktop app on Together models is togetherlink;
calling the API from the user's own code is chat-completions or images. A task spanning areas
(chat + images + audio, or tune, deploy, evaluate) reads each guide when it reaches that step.
Rules for every area
- Model IDs go stale. IDs in guides and scripts are examples, checked 2026-10-07. An error of
Unable to access non-serverless model,model_not_available, orendpoint_not_readymeans the model is not served serverless: do not retry it or try other IDs from memory. Choose from the serverless catalog and check the deprecations page for the named replacement; a chat request withmax_tokens=1confirms a model in one call.client.models.list()andtg beta models publiccannot confirm serverless availability: the first includes retired models, the second lists only a curated subset. - Do not retry errors that cannot succeed. 400 non-serverless model, 401, 402
insufficient balance(account-wide; another model will not help), 403, and 404 need a different input or a human. A 403third_party_data_sharing_blockedmeans the organization must enable third-party data sharing for that partner-hosted model (for example FLUX.2 or Qwen Plus). Retry only 429 and 5xx, with backoff, a few times, then report. - v2 SDK only. v1 names raise
AttributeError:create_batchisbatches.create,get_batchisbatches.retrieve,files.retrieve_contentisfiles.content,evaluation.createisevals.create,file_id=isinput_file_id=. - Finish what you start. Video, batch, evaluations, fine-tuning, queue jobs, and deployments are submit, poll to a terminal state, fetch. Do not end your turn while something you started is still provisioning, running, or being torn down: wait for the terminal state, or state exactly what is pending and the command that checks it.
- Billable resources. Dedicated endpoints, containers, and clusters bill while they run. Only a dedicated deployment can stop itself, and only if it was given an inactivity timeout; assume everything else keeps billing until stopped. Create them only when asked; delete what you created and confirm it is gone.
- Report only what you observed. Every claimed action, duration, count, or split must trace to a tool result or API response. Test the configuration you ship, not a test-only override.


