Fine-tune a smaller, cheaper model on outputs from a larger model to get near-identical quality at a fraction of the DA cost.
Not yet available. Fine-tuning and model distillation are tracked to be built — today, use prompt engineering and cheaper live models via
POST /v1/chat/completions. This page describes the intended workflow.
Distillation is the process of training a smaller model to mimic the outputs of a larger "teacher" model on your specific task. Once distilled, the student model handles that task with comparable quality but at a significantly lower per-token DA cost and faster latency.
Distillation pays off when:
It is not worth it for highly varied, open-ended tasks where the teacher's generalization ability is the whole point.
Use the best model available for your task to generate a large, labeled dataset:
Aim for at least 500–1,000 examples for classification tasks; 2,000–5,000 for generation tasks.
Convert examples to the fine-tuning JSONL format:
This endpoint is not yet available — the example below is the intended design. Once fine-tuning ships, you will submit jobs via the API:
Once the fine-tuned model is ready, compare its outputs against the teacher on a held-out evaluation set:
A match rate above 90% on your task distribution is typically acceptable for production use.
Assume 10,000 requests/day on a classification task, ~500 tokens each:
| Approach | Model | Approx. daily cost |
|---|---|---|
| Teacher model always | anthropic/claude-opus-4.8 | ~2,500 DA/day |
| Distilled student | Fine-tuned llama-4-maverick | ~150 DA/day |
The one-time cost of generating the training data (1,000 examples × 500 tokens on the teacher model) is roughly 250 DA. At the daily savings above, payback is less than 3 hours of production traffic.