Notes / 17

An OpenRouter alternative for DeepSeek

2026-11-19Modelry notes

If more than nine out of ten of your calls are DeepSeek, a marketplace with hundreds of models is infrastructure you pay for in two currencies: money and attention. This page is a decision aid rather than a pitch. It shows what each option actually buys, puts the published rates side by side, gives the two-line code difference, and says plainly where a marketplace wins — it routes to cheaper upstreams than we do, and on these models it usually costs less per token. It ends with a three-question test you can run against last month's usage log, and a checklist for the day you switch.

What you are actually buying

| | Multi-vendor marketplace | Single-vendor gateway | |---|---|---| | Models | hundreds, one key | a handful, one key | | Price per token | varies by upstream, changes when they change | one published table you can quote in a budget | | Routing | picks a provider per request; can chase the cheapest | one channel, failover before the first token | | Code change | none if you already speak OpenAI | none if you already speak OpenAI | | Reconciliation | one invoice covering many sellers | one document per purchase, one counterparty | | Failure mode | a provider changes under you, silently | the vendor you can name |

Neither column is better in the abstract. The question is which column matches your traffic.

Cost per 1M tokens

Our published rates, per 1M tokens. Peak is 2× off-peak and runs UTC 01:00–04:00 and 06:00–10:00 on weekdays.

| Model | Window | Input | Cached input | Output | |---|---|---|---|---| | deepseek-chat | off-peak | $0.25 | $0.006 | $1.45 | | deepseek-chat | peak | $0.50 | $0.012 | $2.90 | | deepseek-chat-lite | off-peak | $0.20 | $0.006 | $0.85 | | deepseek-chat-lite | peak | $0.40 | $0.012 | $1.70 | | deepseek-reasoner | off-peak | $1.10 | $0.044 | $4.75 | | deepseek-reasoner | peak | $2.20 | $0.088 | $9.50 |

Relative to the model vendor's own list prices, we are 1.33× to 2.42× more expensive — chat input 1.67×, cached input 2.00×, output 2.42×. A marketplace that routes across providers is usually cheaper still on these ids. If per-token price is your only criterion, both are a better buy than we are, and this page will not pretend otherwise.

What you are paying the difference for is the right-hand column above: one counterparty, one document per purchase from a merchant of record that handles the tax side, a per-request ledger in whole micro-dollars you can reconcile line by line against your own logs, and failover before the first token — where a second channel is configured — rather than a silent model swap.

The code difference is two lines

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.tokenaimodels.com/v1",   # was: https://openrouter.ai/api/v1
    api_key=os.environ["MODELRY_KEY"],             # was: os.environ["OPENROUTER_API_KEY"]
)

Nothing else changes in the request. What does change is the model id — a marketplace namespaces ids (vendor/model, often with a :free suffix) and a single-vendor endpoint serves plain ids. Do not carry the old string across; ask /v1/models what exists and use what comes back.

Where a marketplace wins

Three cases, all of them real:

  1. You need many vendors. One key across Anthropic, OpenAI, Google and open-weight models is genuinely useful, and no single-vendor endpoint replaces it.
  2. You need surface we do not implement. Embeddings, image generation, batch jobs, file APIs — if any of your paths call those, they need a vendor that serves them.
  3. You want price discovery. Provider routing can find a cheaper upstream than a fixed table can offer, and on DeepSeek ids it usually does.

A three-question test on your own data

Run this against last month's usage log before you change anything:

  1. What share of requests went to DeepSeek models? Below 90%, the right-hand column buys you little — stay.
  2. Do you call embeddings, images, batches or /v1/responses? If yes, you need two vendors regardless; the only question is which one holds the DeepSeek traffic.
  3. Are you relying on provider routing to shave cost? If yes, a fixed table is a downgrade in price and an upgrade in predictability — decide which one your budget needs.

Two "stay" answers is a signal to stay. Three "switch" answers means the next step is mechanical.

If you switch

The migration itself is not hard, but it is not one line either: model ids differ, some body fields are marketplace-specific and get forwarded into a 400, and a few endpoints simply do not exist on a smaller gateway. The eight-point checklist in /blog/moving-off-openrouter-to-another-compatible-gateway-an-eight-point-che walks through the failure modes in the order they appear, and /compare/openrouter has the row-by-row comparison with dated sources.

Start with the $0.50 signup credits before you move traffic: accounts get $0.50 in credits at /signup, no card, which is enough to run the four sanity checks — /v1/models contains your id, a non-streaming call returns 200 with non-empty content, the same call with stream: true returns more than one chunk, and a deliberately wrong key returns 401. Rates are on /pricing; the reference is in /docs.

If those four checks pass and your usage log says DeepSeek is nearly all of your traffic, the two lines above are the whole migration. If they do not pass, you learned that for free — which is the point of the $0.50.

Modelry operates a platform that serves DeepSeek models behind one HTTP endpoint, with prepaid credits and tax handled by its merchant of record at checkout, and a documented data-retention policy. Start with $0.50 of trial credit: create a key.

All notes