Per-token API or our own GPUs

Short answerStart on Lyceum's serverless API, billed per token with no base fee, so quiet hours cost nothing while you measure. Once traffic steadies, move it to a dedicated endpoint with reserved GPUs on the same OpenAI-compatible API. A gateway with a per-token fallback covers spikes. Free basics: log tokens per day for a month, estimate the GPU utilisation you would really reach and count the engineering hours.

01

Start on Lyceum's per-token API while you measure

Lyceum serves open models such as Kimi, GLM, DeepSeek and Qwen through one OpenAI-compatible API, billed per token with no base fee, so quiet hours cost nothing. In the OpenAI client you already use, you set the base URL, your API key and a model ID. Serverless models run in Paris and Finland, and Lyceum does not keep your prompts or outputs or use them for training.

Good if your traffic still comes and goes and you need real numbers first

Serverless and dedicated inference · Model library and inference pricing

Tool
Cost€
EffortLow
HelpsToday
02

Move steady traffic to a dedicated endpoint on the same API

Once traffic is steady all day, Lyceum can serve it from a dedicated endpoint: GPUs reserved for your endpoint, a model configuration agreed before launch and commitment pricing agreed per contract. You are billed for the time the replicas run, not per request, and the replica count scales between a minimum and maximum you set. A deployment with no requests for an hour scales to zero and stops billing; the first request after that pause is slower.

Good if your daily token log shows a steady load

Skip if traffic still has long quiet stretches

Lyceum · Lyceum Docs

Tool
Cost€€
EffortMedium
HelpsThis month
03

Keep a per-token fallback for spikes

Put a gateway in front of your model calls so a spike or a rate limit does not stop your app. LiteLLM is an open-source AI gateway with retry and fallback logic across deployments. Fallbacks run in the order you list them, and if every model in a group is rate limited, LiteLLM falls back to the model you named for that case.

Good if you move to reserved capacity but traffic can still jump

LiteLLM · LiteLLM Docs

Tool
CostFree
EffortMedium
HelpsThis week
04

Have someone with FinOps experience check the numbers

A FinOps practitioner takes AI spend in a fixed order: allocate it first, then right-size models, use tokens efficiently, and commit to capacity only once usage is stable. Ask for cost per successful outcome, reported as a range, not one number. The FinOps Foundation lays out this order in its FinOps for AI guide.

Good if the decision means signing a capacity commitment

FinOps Foundation

Expert
Cost€€
EffortMedium
HelpsThis month
05

Log tokens per day for a month before deciding

Pull your current provider's usage report every day. OpenAI's Usage API can group usage by project, model and API key, and Anthropic's Usage and Cost API returns daily usage buckets. Give each feature its own key so you can see which one drives the volume, and note the busy and quiet hours.

Good if you are guessing your volume from the monthly invoice

OpenAI · Anthropic

Do it yourself
CostFree
EffortLow
HelpsThis month
06

Work out the GPU utilisation you would really reach

Lay your daily token log over the hours of the day to see how many hours a reserved GPU would sit idle. If you already run a GPU, nvidia-smi reports utilisation as the percent of time one or more kernels was running.

Good if you have a month of usage data

NVIDIA · OpenAI

Do it yourself
CostFree
EffortMedium
HelpsThis week
07

Count the engineering hours of running inference yourself

Running your own GPUs means choosing and running the serving setup too. With vLLM, a model that fits one GPU runs there, a larger one needs tensor parallelism across the GPUs of a node, and one too large for a node also needs pipeline parallelism across nodes. Add the time for deployment with Docker or Kubernetes, upgrades and on-call, and price it next to the GPU cost.

Good if the GPU price alone makes self-hosting look cheap

vLLM Docs

Do it yourself
CostFree
EffortLow
HelpsThis week

When it's bigger than a quick fix

Get help before you sign a capacity commitment, or when the token bill keeps rising and you cannot tell which feature drives it. A FinOps practitioner can allocate the spend and check whether usage is stable enough to commit.

FinOps Foundation

Questions people ask

When does self-hosting an LLM make sense?

When your traffic is steady enough to keep reserved GPUs busy most of the day. Per-token billing follows your traffic, while reserved GPU replicas are billed for the time they run.

Is a local LLM cheaper than an API?

Only if you keep the GPUs busy and count the engineering time for serving, upgrades and on-call next to the GPU cost.

What is the difference between serverless and dedicated inference?

Serverless is billed per token with no reserved hardware. A dedicated endpoint runs your model on reserved GPU replicas and is billed for the time they run.

Do I have to rewrite my code to move from per-token to dedicated?

Not if both speak the OpenAI-compatible API. You change the base URL, the API key and the model ID.

How do I handle traffic spikes on reserved GPUs?

Let the replica count autoscale between a minimum and a maximum, and keep a per-token fallback behind a gateway for the rest.

Sources

  1. Lyceum: Serverless and dedicated inference
  2. Lyceum: Model library and inference pricing
  3. Lyceum Docs: Dedicated Inference
  4. LiteLLM: Open Source AI Gateway (GitHub)
  5. LiteLLM Docs: Fallbacks (Provider Failover)
  6. FinOps Foundation: FinOps for AI Overview
  7. OpenAI: Usage API reference
  8. Anthropic: Usage and Cost API
  9. NVIDIA: nvidia-smi documentation
  10. vLLM Docs: Parallelism and Scaling