# Together AI Chat Completions Skill for Claude Code > Skill that teaches Claude Code how to use Together AI chat completions API. Covers streaming, tool calling, JSON mode, and model selection with correct SDK patterns. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add togethercomputer/skills # Or copy to ~/.claude/skills/together-chat-completions/ ``` ## What is This Skill? This skill teaches AI coding agents (Claude Code, Cursor, Codex CLI) how to correctly call Together AI's chat completions API. It provides the exact SDK patterns, model IDs, and API parameters — so your agent generates working Together AI code on the first try without consulting docs. **Answer-Ready**: Together AI Chat Completions Skill gives coding agents knowledge of Together AI's OpenAI-compatible chat API. Covers streaming, tool calling, JSON mode, vision, and 200+ models. Part of Together AI's official 12-skill collection. MIT licensed. **Best for**: Developers using Together AI with AI coding agents. **Works with**: Claude Code, Cursor, Codex CLI, Gemini CLI. **Setup time**: Under 1 minute. ## What the Agent Learns ### Supported Features - Text generation with 200+ open-source models - Streaming responses (SSE) - Tool/function calling - JSON mode (structured output) - Vision (multimodal models) - System prompts and multi-turn conversations ### Key Models | Model | Use Case | |-------|----------| | meta-llama/Llama-3.3-70B-Instruct-Turbo | Best general-purpose | | Qwen/Qwen2.5-Coder-32B-Instruct | Best for coding | | meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo | Vision tasks | | deepseek-ai/DeepSeek-V3 | Complex reasoning | ### SDK Pattern ```python from together import Together client = Together() response = client.chat.completions.create( model="meta-llama/Llama-3.3-70B-Instruct-Turbo", messages=[{"role": "user", "content": "Hello"}], stream=True, ) for chunk in response: print(chunk.choices[0].delta.content, end="") ``` ## FAQ **Q: Is it OpenAI-compatible?** A: Yes, Together AI uses the OpenAI SDK format. Switch `base_url` to use Together AI models. **Q: How do I install all 12 Together skills?** A: `npx skills add togethercomputer/skills` installs all 12 at once. ## Source & Thanks > Part of [togethercomputer/skills](https://github.com/togethercomputer/skills) — Official Together AI skills collection, MIT licensed. ## 快速使用 ```bash npx skills add togethercomputer/skills ``` 让 AI 编码 Agent 掌握 Together AI 聊天补全 API。 ## 什么是这个 Skill? 教 Claude Code 等 AI Agent 正确调用 Together AI 的聊天 API,包含 SDK 模式、模型 ID 和参数。 **一句话总结**:Together AI 聊天补全 Skill,教 Agent 正确使用 200+ 开源模型的流式/工具调用/JSON 模式,官方出品。 ## Agent 学到什么 流式响应、工具调用、JSON 模式、视觉输入、200+ 模型 ID。 ## 来源与致谢 > [togethercomputer/skills](https://github.com/togethercomputer/skills) — MIT --- Source: https://tokrepo.com/en/workflows/e99e1db6-62ed-4ba1-8749-c64706c0ec1a Author: Skill Factory