Loading...
Loading...
Compare models that support fine-tuning — hosted APIs (OpenAI, Google, Mistral, Cohere) and open-source (Llama, Mistral, Qwen, Phi) — with training costs, data format requirements, and supported features.
Data notice: Pricing and feature data is sourced from provider documentation and may change. Always verify current pricing with the provider before starting a training run. This information is provided for comparison purposes only.
Most cost-effective hosted fine-tuning. Best starting point for most tasks. Supports RLHF and direct preference optimization via OpenAI dashboard.
Min examples
10 (50+ recommended)
Data format
JSONL (messages)
Training cost
$3.00 / 1M tokens
Inference
From $0.15 / 1M input
Full GPT-4o capability with custom behaviour. Best for production workloads where base GPT-4o is close but not quite right.
Min examples
10 (100+ recommended)
Data format
JSONL (messages)
Training cost
$25.00 / 1M tokens
Inference
From $2.50 / 1M input
Lowest training cost among hosted models. Available via Google Cloud Vertex AI. Excellent for high-volume, latency-sensitive use cases.
Min examples
50
Data format
JSONL (messages) via Vertex AI
Training cost
$2.00 / 1M tokens
Inference
From $0.075 / 1M input
Fine-tune with 1M token context. Best for document-heavy tasks like legal, research, and long-form content. Requires Google Cloud.
Min examples
50
Data format
JSONL (messages) via Vertex AI
Training cost
$4.00 / 1M tokens
Inference
From $1.25 / 1M input
Best option for EU data residency requirements. Mistral hosts on European infrastructure. Strong multilingual fine-tuning.
Min examples
32
Data format
JSONL (messages)
Training cost
$4.00 / 1M tokens
Inference
From $2.00 / 1M input
Most affordable hosted fine-tuning on Mistral platform. Great entry point for European teams exploring customization.
Min examples
32
Data format
JSONL (messages)
Training cost
$0.50 / 1M tokens
Inference
From $0.04 / 1M input
Built for enterprise RAG pipelines. Cohere supports connector fine-tuning — model learns to cite your internal knowledge base correctly.
Min examples
32
Data format
JSONL (chat or generate)
Training cost
Custom (contact Cohere)
Inference
From $2.50 / 1M input
Top open-source choice for fine-tuning. Commercial use allowed under Llama 3 Community License. Excellent results with LoRA/QLoRA on a single A100.
Available via
Together AI, Replicate, Modal, self-host
Best small open model for fine-tuning. Fits in consumer GPU memory (24GB) and fine-tunes quickly. Great for edge deployment after fine-tuning.
Available via
Together AI, Replicate, Modal, self-host
Huge fine-tuning community. Thousands of public LoRA adapters on HuggingFace. Apache 2.0 license — fully unrestricted commercial use.
Available via
Together AI, Replicate, self-host
Best open model for multilingual fine-tuning. Exceptionally strong Chinese, Japanese, Korean. Apache 2.0 license.
Available via
Together AI, self-host
Punches above its weight on reasoning tasks. Fine-tunes quickly on a single GPU. MIT license. Good for math, science, and code specialization.
Available via
Azure AI Foundry, self-host
Widest model selection. 50+ models, managed training, LoRA support. Recommended for most teams.
Models: Llama, Mistral, Qwen, Falcon, and more
Pricing: From $0.50/1M tokens + GPU hours
Developer-friendly. Train and serve from one API. Good for quick experiments.
Models: Llama 3, Mistral, Stable Diffusion
Pricing: GPU time billed per second (A40: $0.001115/sec)
Serverless GPU infra. You bring your own training script. Most control, lowest cost at scale.
Models: Any model you can run in Python
Pricing: A100 80GB: $0.00139/sec; H100: $0.00165/sec
Optimized for fast inference after fine-tuning. Best when latency post-training matters.
Models: Llama 3, Mistral, FireFunction
Pricing: Training: $1.80/GPU-hour; inference from $0.10/1M
Enterprise grade. Native Azure integration, compliance, VNet support. Best for regulated industries.
Models: Phi-4, Llama 3, Mistral, Meta models
Pricing: Azure compute rates + model pricing
Most hosted APIs accept as few as 10 examples, but quality matters more than quantity. 50–200 well-curated examples typically outperforms 1,000 noisy ones. For open-source models, LoRA adapters are effective with 500–2,000 examples.
Most providers use JSONL files where each line is a JSON object with a "messages" array (system, user, assistant turns). OpenAI, Mistral, and Cohere all use this format. Some platforms also accept CSV for simpler completion tasks.
Anthropic offers limited fine-tuning for Claude through AWS Bedrock for certain enterprise customers. It is not available via the standard Anthropic API. Contact Anthropic for enterprise fine-tuning access.
Training GPT-4o mini on 1,000 examples (~500k tokens) costs roughly $1.50 once. The ongoing cost is the inference rate, typically 10–30% higher than the base model. At scale, fine-tuned models can be cheaper because shorter prompts offset the higher per-token rate.
Low-Rank Adaptation (LoRA) is a parameter-efficient technique that fine-tunes a small adapter layer instead of all model weights, reducing GPU memory and training time by 10–100×. QLoRA adds 4-bit quantization. Together they make fine-tuning a 70B model feasible on a single A100 80GB GPU.
Yes. GPT-4o and GPT-4o mini support image inputs in fine-tuning datasets. Llama 3.2 11B and 90B Vision, and Gemma 3 also support multi-modal fine-tuning. Most other models are text-only.