ai

LLM Self-Host vs API Cost Calculator

Find the monthly token volume where self-hosting an LLM on rented GPUs beats paying per token for an API. Compare costs, GPUs needed, and breakeven point.

post/api/v1/tools/llm-self-host-vs-api-calculator

Request

  • Base URL: https://calcfleet.com
  • URL: https://calcfleet.com/api/v1/tools/llm-self-host-vs-api-calculator
  • Auth: none declared

Request body

monthlyInputTokensMnumber required
monthlyOutputTokensMnumber required
apiModelId'gpt-5.5' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'claude-opus-4.8' | 'claude-sonnet-4.6' | 'claude-haiku-4.5' | 'gemini-3.5-flash' | 'gemini-3.1-pro' | 'gemini-2.5-flash' | 'llama-3.3-70b-together' | 'llama-3-8b-lite-together' required
gpuId'h100-sxm-80gb' | 'a100-sxm-80gb' | 'a100-40gb' | 'l40s-48gb' | 'rtx-4090-24gb' required
gpuHourlyUsdnumber required
throughputTokensPerSecnumber required
utilizationPctnumber required

Response

Successful calculation result.

resultobject required

Structured calculation output (fields vary per calculator).

Changes

No recorded changes to this operation across all 1 revision of this API.