Self-host or API?
Someone does the maths on a whiteboard. A rented GPU costs a few dollars an hour, it can produce millions of tokens an hour, so self-hosting must be ten times cheaper than the API. Six months later the GPUs average 25% busy, two engineers spend half their time on them, and the bill is higher than before. The maths wasn't wrong, it was missing terms.
In this lesson you'll learn to
- Calculate self-hosted cost per million tokens from GPU price, throughput and utilisation.
- Find the break-even volume against an API, including people and redundancy.
- Weigh the non-cost reasons, from privacy and control to latency, model access and operations.
- Choose between API, dedicated endpoints, self-hosting and a hybrid for a given workload.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.