TTodAPI

Blog

Notes from running an LLM gateway

Short, specific posts about the parts that decide whether an integration holds up: what tokens cost, why a limit fired, and which error is worth retrying. Every price quoted is ours, in USD per 1M tokens.

DeepSeek vs GLM: the output price decides it

Same $0.0252 input, different output: $0.0756 vs $0.1008. On a million calls that is $68 vs $78.

What a million requests actually cost

One fixed request shape, eight models, a 47× spread. A method you can rerun on your own traffic.

429 vs 402: rate limit or empty balance

One clears in seconds, the other never will. How to tell them apart in logs — and stop retrying the wrong one.

Why streaming requests hit rate limits

Streaming does not add requests; it holds concurrency slots longer. The maths, and four fixes.

What is an LLM gateway?

One sentence definition, what it does, and what it is not — plus what to check before adopting one.

What “OpenAI-compatible” actually means

The wire format is shared; error bodies, tokenizers and rate limits are not. A migration checklist.

Is the DeepSeek API free?

Open weights, promotional quotas and hosted per-token billing are three different things. The maths on each.

What we publish here

No launch posts, no "10x your productivity". If a post does not help you decide something in twenty minutes, it does not belong here.

Price list

Every model, per 1M tokens.

DeepSeek pricing

83% below official list.

Get a key

One key for every model.