Cost per million tokens is a starting point, not an answer
Every comparison of cheap LLM APIs collapses into the same unit: cost per million tokens. It's a useful unit, but it's a unit of price, not of your bill. Two startups looking at identical published rates can end up with very different monthly spend, because what you actually pay for is a blend — input tokens, output tokens, retried tokens, and, on reasoning-heavy work, thinking tokens that are billed like output.
Most comparison tables quietly assume a balanced input/output mix. Almost no MVP has that mix. A RAG support bot that stuffs a knowledge base into every prompt is input-heavy. A copywriting tool or chat assistant is output-heavy, and output is the expensive side on nearly every provider. An agent looping through six tool calls is retry-heavy.
So here's the honest version of this article: how to compare routes, which ones make sense at MVP stage, and a short script that tells you what your prompts cost. Live rates are always published at aicreditsapi.com/pricing — we'd rather you read them there than trust a number frozen into a blog post.
The cheapest API is the one you stop calling twice. Measure your retry rate before you shop on rates.
The four multipliers that decide your real bill
Input/output mix. Output tokens dominate on chat, generation, and agent workloads. Cap
max_tokens, and stop sending whole documents when three retrieved paragraphs will do.Cache hits. Reused prompt prefixes are cheaper than fresh tokens. Put the stable part of the prompt first — system instructions, output schema, retrieved boilerplate — and the user-specific part last, so the prefix can actually be reused.
Off-peak timing. Off-peak inference costs less. Nightly re-indexing, batch classification, and eval runs can all be shifted into those windows; interactive chat can't.
Retries and failures. A response you can't parse is a token you paid for and got nothing from. Request strict output shapes, validate before you trust, and log every retry — retry rate is usually a bigger lever than model choice.
Escalation. Running your strongest model for every request is the most common MVP overspend. Most traffic is easy; route only the hard slice upward.
How the main routes compare for an MVP
Rather than a price table that goes stale, here's what each route actually gives you — and what it costs you in a non-monetary sense.
| Route | What you're buying | Strength | What to watch |
|---|---|---|---|
| AiCredits — deepseek-v4-flash | DeepSeek inference credits, paid by card or PayPal, no Chinese phone number or bank account needed | Low per-token rates, OpenAI-compatible endpoint, easy to cache and batch | DeepSeek models only — no fallback to other vendors' models |
| AiCredits — deepseek-v4-pro | Same account, stronger model | Clean upgrade path for the hard minority of requests | Costs more than flash; keep it as an escalation tier, not the default |
| OpenRouter | One key across many upstream providers and models | Real breadth and failover; excellent for prototyping across vendors | You're one layer removed from the upstream; rates and behaviour vary by route |
| OpenAI direct | Frontier models plus a deep tooling ecosystem | Mature structured outputs, embeddings, and libraries | Priced at the premium end; best reserved for the feature that must not fail |
| Self-hosted / rented GPUs | Your own throughput | Predictable cost at sustained high volume, full data control | Ops burden and idle capacity — hard to justify before product-market fit |
For most early MVPs the practical split is: deepseek-v4-flash as the default for the bulk of traffic — classification, extraction, summarisation, short answers — deepseek-v4-pro for the minority that needs real reasoning, and a premium provider only where a customer-facing failure is genuinely expensive. OpenRouter's strength is breadth, and if your MVP truly needs several vendors at once, start there. If your workload is DeepSeek-shaped and you want a direct, OpenAI-compatible route with payment options that work internationally, one layer is simpler than two.
Measure your own prompt before you pick a provider
The script below sends three prompts in the shape a real MVP uses, prints token usage per call, and totals it. Run it once against your actual prompt templates, then multiply the totals by the live rates on the pricing page. It uses the OpenAI SDK pointed at the AiCredits endpoint.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AICREDITS_API_KEY"],
base_url="https://api.aicreditsapi.com/v1",
)
# Use the prompts your MVP actually sends, not "hello world".
PROMPTS = [
"Classify this support ticket as billing, bug, or feature_request: 'I was charged twice.'",
"Summarize in one sentence: our webhook retried a failed delivery six times overnight and the customer saw duplicate invoices.",
"Extract JSON with the keys name and email from: Hi, I'm Dana ([email protected]) and I need a copy of last month's invoice.",
]
def call(prompt, model="deepseek-v4-flash"):
resp = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": prompt}],
temperature=0,
max_tokens=200,
)
return resp.choices[0].message.content, resp.usage
if __name__ == "__main__":
prompt_tokens = 0
completion_tokens = 0
for p in PROMPTS:
text, usage = call(p)
prompt_tokens += usage.prompt_tokens
completion_tokens += usage.completion_tokens
print(f"in={usage.prompt_tokens} out={usage.completion_tokens} | {text[:70]!r}")
print(f"\nTOTAL in={prompt_tokens} out={completion_tokens}")
print("Multiply by the live per-million rates at https://aicreditsapi.com/pricing")
Read the output as a diagnosis. If completion tokens dwarf prompt tokens, you're output-bound: shop on output rates and trim max_tokens. If prompt tokens dominate, caching and retrieval trimming are your levers. Either way, these totals — not a generic comparison table — are what you multiply.
Two-tier routing: the cheapest architecture most MVPs miss
A two-tier router is the single highest-leverage change in most MVPs. Send everything to the fast, cheap model; let it decline. Escalate only on the requests it flags. The refusal has to be explicit and exact, or you'll escalate everything and gain nothing.
# Two-tier routing: fast model first, stronger model only on explicit refusal.
ESCALATE = "NEED_MORE_CONTEXT"
def answer(question, context):
first = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[
{
"role": "system",
"content": (
"Answer only from the context. If the context is not enough, "
f"reply exactly {ESCALATE} and nothing else."
),
},
{"role": "user", "content": f"Context:\n{context}\n\nQuestion: {question}"},
],
temperature=0,
max_tokens=400,
)
text = first.choices[0].message.content.strip()
if text != ESCALATE:
return text, "deepseek-v4-flash"
second = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[{"role": "user", "content": f"Context:\n{context}\n\nQuestion: {question}"}],
temperature=0,
max_tokens=400,
)
return second.choices[0].message.content.strip(), "deepseek-v4-pro"
if __name__ == "__main__":
text, used = answer(
"How long do refunds take?",
"Refunds are issued within 5 business days of approval.",
)
print(used, "->", text)
Log the returned model name on every request. Within a day you'll know your escalation rate. If the fast model is declining most requests, your context is probably too thin — fix retrieval before you start paying for reasoning.
Cheaper by default: a checklist
Default to
deepseek-v4-flash; reach fordeepseek-v4-proonly when the fast model declines.Keep the system prompt and output schema at the front of the message list so prefixes can be cached.
Set
max_tokenson every call — uncapped generation is the silent budget killer.Move batch work into off-peak windows, where inference costs less.
Trim retrieved context aggressively: three relevant chunks, not the whole document.
Log input and output tokens per request so a regression shows up in a dashboard, not an invoice.
Keep stable prompt sections byte-for-byte identical; a stray whitespace change can invalidate a cached prefix.
Buy credits the way you already pay. AiCredits takes card or PayPal, with no Chinese phone number or bank account required.
FAQ
No. A cheap model that needs two retries, or that escalates to a stronger model on a large share of requests, can cost more than a mid-tier model that gets it right the first time. Track retry and escalation rates alongside per-million rates.
Fix the unit, not the number. Compare the blended cost of one representative request — your prompt, your average output length, your retry rate — and re-check it against the current published rates at aicreditsapi.com/pricing. Any figure quoted in a static article is outdated by design.
Not through AiCredits. You pay by card or PayPal and point the OpenAI SDK at our base URL. No Chinese phone number, bank account, or local payment rail is required.
OpenRouter is genuinely good at breadth: one key, many providers, easy side-by-side experiments. If your MVP needs several vendors at once, that's a strong reason to start there. If your workload is DeepSeek-shaped and you want a direct OpenAI-compatible route with internationally friendly payment, AiCredits is one less layer.
When your logs show the cheap model failing on a specific, repeatable category — not when it occasionally writes something bland. Escalate by request type, not by mood.