/together-pack:together-cost-tuningfrom together-pack
Guide to optimizing Together AI costs for inference, fine-tuning, and model deployment using model tier selection, batch inference (50% off), and response caching.
Ships in together-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Optimize Together AI costs with model selection, batching, and caching.
| Model Category | Price (per 1M tokens) | Example Models |
|---|---|---|
| Small (< 10B) | $0.10-0.30 | Llama-3.2-3B, Qwen-2.5-7B |
| Medium (10-40B) | $0.60-1.20 | Mixtral-8x7B, Llama-3.3-70B-Turbo |
| Large (40B+) | $2.00-5.00 | Llama-3.1-405B, DeepSeek-V3 |
| Image gen | $0.003-0.05/image | FLUX.1-schnell, SDXL |
| Embeddings | $0.008/1M tokens | M2-BERT |
| Fine-tuning | ~$5-25/hour | Depends on model + GPU |
| Batch inference | 50% off | Same models, async |
# 1. Use Turbo variants (faster, cheaper, similar quality)
# meta-llama/Llama-3.3-70B-Instruct-Turbo vs Llama-3.1-70B-Instruct
# 2. Batch inference (50% cost reduction)
batch_response = client.batch.create(
input_file_id=file_id,
model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
completion_window="24h",
)
# 3. Cache responses for identical prompts
from functools import lru_cache
@lru_cache(maxsize=1000)
def cached_completion(prompt: str, model: str) -> str:
response = client.chat.completions.create(
model=model, messages=[{"role": "user", "content": prompt}],
)
return response.choices[0].message.content
# 4. Use smallest model that works
# Test with 3B first, upgrade to 70B only if quality insufficient
| Issue | Cause | Solution |
|---|---|---|
| High costs | Wrong model tier | Downsize model |
| Batch failures | Invalid input format | Validate JSONL |
| Fine-tuning expensive | Too many epochs | Start with 1-2 epochs |
For architecture patterns, see together-reference-architecture.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
together-ai, cost-optimization, inference, model-tuning, batch-inference
18 skills in this plugin
/together-ci-integrationTogether AI ci integration for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together ci integration".
/together-common-errorsTogether AI common errors for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together common errors".
/together-core-workflow-aTogether AI core workflow a for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together core workflow a".
/together-core-workflow-bTogether AI core workflow b for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together core workflow b".
/together-debug-bundleTogether AI debug bundle for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together debug bundle".
/together-deploy-integrationTogether AI deploy integration for inference, fine-tuning, and model deployment.
Use when working with Together AI's OpenAI-compatible API.
Trigger: "together deploy integration".
npx claudepluginhub flight505/skill-forge --plugin together-packOther plugins' skills for the same job