---
title: "Fine-Tuning Cost Calculator"
method: POST
path: "/api/v1/tools/fine-tuning-cost-calculator"
tags: ["ai"]
---

# Fine-Tuning Cost Calculator

`POST /api/v1/tools/fine-tuning-cost-calculator`

## Request

- Base URL: `https://calcfleet.com`
- URL: `https://calcfleet.com/api/v1/tools/fine-tuning-cost-calculator`
- Auth: none declared

Estimate what a fine-tuning run costs: GPU-hours for a self-managed cluster versus per-token managed API pricing, with wall-clock time and the cheaper path.

## Request body

- object
  - `datasetTokensM` number, required
  - `epochs` integer, required
  - `method` 'lora' | 'full', required
  - `gpuId` 'h100-sxm-80gb' | 'a100-sxm-80gb' | 'a100-40gb' | 'l40s-48gb' | 'rtx-4090-24gb', required
  - `gpuHourlyUsd` number, required
  - `gpuCount` integer, required
  - `trainingTokensPerSecAggregate` number, required
  - `apiFineTuneId` 'together-sft-up-to-16b' | 'together-sft-70b', required

## Response `200`

Successful calculation result.

- object
  - `result` object, required: Structured calculation output (fields vary per calculator).

## Other responses

- `400`: Invalid input — the issues array contains Zod validation errors.
- `403`: Forbidden — an Authorization: Bearer cf_… key was supplied but is invalid.
- `404`: Unknown tool slug.

---

[API](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api.md) · [All operations](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcfleet/apis/calcfleet-financial-calculators-api/revisions/cd9abd595bbe?raw)
