The main billing models
| Billed | Formula | Typical for |
|---|---|---|
| Per training token | Tokens in the training file × epochs × price per token | Most managed fine-tuning services |
| Per GPU time | Runtime × hourly rate × number of GPUs | Jobs on rented GPUs, usually open models |
| Per training hour | Hours × a (high) hourly rate | Some hosted reinforcement fine-tuning |
| Per inference token | Input and output tokens × the model's price | Evaluations, judges, teacher models, test chats |
Per-token training
Managed fine-tuning services count the tokens in your training file and charge for every token the training processes. Every epoch processes the whole file again, so the bill is the file's tokens times the number of epochs times the price, usually quoted per million tokens. Read the price list closely: some services also charge for validation tokens, apply a minimum charge per job, price preference tuning higher than supervised training, or charge a monthly fee to store the trained model.
per training token: cost = tokens in the training file × epochs × price per token
per GPU time: cost = runtime in hours × hourly rate × number of GPUs- Data: 1,500 conversations averaging 1,200 tokens each after preparation: 1,800,000 tokens.
- Epochs: 3, so 5,400,000 training tokens are processed.
- Price: at an example price of $3.00 per million training tokens, 5.4 × $3.00 = $16.20.
- With Auto epochs: had the provider chosen 2 or 4 epochs, the same job would cost $10.80 or $21.60. That spread is why an up-front figure is an estimate.
- Token count: the provider counts with its own tokenizer, so an estimate made from text length can be a few percent off in either direction.
GPU-time training
When training runs on rented GPUs, which is typical for open models, you pay for time: the job's runtime times the GPU's hourly rate, times the number of GPUs. Runtime grows with model size, the number of tokens, the epochs and the method. Methods that generate text during training, such as on-policy distillation and reinforcement learning, spend much of their time writing answers token by token, which makes them slower per example than supervised training. A larger model may also need a bigger GPU, or several, at a higher hourly rate.
- Job: LoRA fine-tuning of a small open model that runs for 45 minutes on one GPU.
- Rate: at an example $1.20 per GPU-hour, 0.75 h × $1.20 = $0.90.
- A model twice the size may need a GPU with more memory at a higher rate, and also runs longer: the two factors multiply.
- Overhead counts: starting up, loading the model and saving the result are usually part of the billed time, which matters most on short jobs.
What else costs money
- Evaluation: generating answers from the base and tuned models, and a judge model scoring them, is billed per token.
- Teacher models in distillation: the teacher's answers are billed per input and output token, on top of the student's training.
- Serving: shared (serverless) capacity bills per token used; a dedicated deployment bills per hour while it exists, even when idle.
- Storage: some providers charge to keep trained models or uploaded files.
Every cost figure is only as good as what it rests on, which is why each one carries a state — Final, Estimated, Pending or Not billed — saying whether it is the provider's own figure, the estimate made at the start, a job still running, or a job stopped before anything was charged.
How to keep it down
- Clean before you train. Duplicates, error replies and over-long conversations all add billed tokens without adding signal.
- Start small. A first run on a subset, or with fewer epochs, shows whether the approach works before you pay for the full job.
- Use the smallest base model that passes your evaluation. Training and serving both get cheaper.
- Prefer LoRA on open models: less memory, smaller GPUs, faster runs.
- Delete dedicated deployments when testing is done; they bill by the hour.
Common mistakes
- Forgetting that epochs multiply the bill: four epochs cost four times one.
- Budgeting only for training, then leaving a dedicated deployment running for days.
- Comparing prices per token across providers without comparing their epochs, minimum charges and storage fees.
- Training on uncleaned data and paying for tokens that only teach noise.
- Treating an up-front estimate as a quote. The provider's own token count and chosen epochs decide the final figure.
References and further reading
External sources open in a new tab.
- 01Amazon Bedrock PricingAmazon Web Services · aws.amazon.comA provider price list that spells out tokens trained as corpus tokens × epochs, plus storage and hourly pricing.
- 02PricingTogether AI · together.aiPer-token fine-tuning prices by model size, with minimum charges and separate preference-tuning rates.
- 03GPU memory usageHugging Face Transformers docs · huggingface.coWhy model size decides which GPU, and so which hourly rate, a job needs.