# LLM API cost calculator — Y-API

> Enter a model and your monthly token volume to compare the bill on Y-API, the vendor's own API, OpenRouter, Together AI and DeepInfra — every figure dated.

This is the markdown representation of https://y-api.bestvirtualgoods.com/calculator. External prices verified 2026-09-18. Our own rates are synced from the live catalog at build time. Providers change prices without notice — follow the source links on the comparison page before committing spend. Generated by `scripts/generate-seo-assets.mjs` from the same copy the page renders — do not edit by hand.

## Summary

Pick a model, put in the input and output tokens you get through in a month, and this works out what that month costs in 5 places at once. Output tokens are billed at the output rate, not the input rate — that distinction is worth several times the bill on a chat workload. Each row shows the unit prices it used, so you can check the multiplication rather than take it on trust.

## Worked example

The page defaults to this scenario; change either number on the page to get your own.

- Model: `openai/gpt-6-luna`
- Input: 10,000,000 tokens per month
- Output: 2,000,000 tokens per month

| Where you call it | Per month | Unit price |
| --- | --- | --- |
| **Y-API** | $0.20 | $0.01 in · $0.05 out per 1M |
| OpenAI | $2.00 | $0.10 in · $0.50 out per 1M[1][2][3] |
| OpenRouter | $2.00 | $0.10 in · $0.50 out per 1M[1][3] |
| DeepInfra | Not in catalog | — |
| Together AI | Not in catalog | — |

Caveats referenced above:

1. a cheaper cache-hit tier also exists
2. standard tier; priority and flex tiers differ
3. cheapest input-length tier; a longer prompt costs more per token

The dearest of the priced rows costs $2.00 — 10× this bill. Priced against 2 of the 4 places we check for this model. Rows without a figure say which of the two reasons applies.

## How this bill is worked out

- **Input and output priced separately**: Output tokens cost two to four times input tokens on every provider in this table. A calculator that bills all tokens at the input rate understates a chat workload by a wide margin, so both counts are asked for and both rates are applied.
- **Our figure is cash, not credit**: Our rates are quoted in USD credit, and a $1 top-up becomes $10 of credit. Our row divides by 10 to get the dollars that actually leave your card, which is the only unit the other rows are in.
- **Their cheapest published tier**: Where a provider publishes several rates, this takes the cheapest one that applies to an ordinary real-time call — off-peak rather than peak, standard rather than priority, cheapest region, shortest input-length tier, at the list rate rather than a promotional one. Cached input is excluded everywhere, including ours. Every such choice is marked under the table and every one of them favours the other provider.
- **Nothing is estimated**: A row either has a price read off that provider's own pricing page, or it says so. No averages, no "approximately", no figures from third-party posts — for one DeepSeek model alone, three widely-cited posts quote three incompatible prices.

## What this number does not include

- **Prompt caching**: Vendor APIs bill cached input far below their cache-miss rate and we have no equivalent tier. If you replay a long, stable system prompt thousands of times, the vendor can come out cheaper than us — this calculator will not show that, because it prices every token as a cache miss on both sides.
- **Reasoning tokens**: On reasoning models, tokens that are billed but never appear in the response are not in your output count. One probed model billed 21.8× its output cap. If you are calling a reasoning model, treat the output figure you enter as a floor.
- **Everything that is not tokens**: No provider in this table charges a monthly fee, so the bill is tokens only. It also means the arithmetic here says nothing about rate limits, latency or which models a provider actually has — and those are what usually decide the choice.

## Questions about this calculation

### Why do I have to enter input and output tokens separately?

Because they are priced differently everywhere, usually by a factor of two to four. A single "total tokens" box would force an assumption about your input-to-output ratio, and the bill would be wrong by roughly that factor for anyone whose workload does not match it. The default scenario shown on load is 5:1, which is close to a typical chat or RAG load — your own log will tell you your actual ratio.

### Why is Y-API's bill so much lower?

Almost entirely the top-up rate. Read our credit rates as if they were dollars and they sit roughly on top of the vendors' own list prices; the gap you see is the 1:10 rate at which a dollar becomes credit.

### Why are some rows empty?

Two different reasons, and the table never merges them. One says the provider does not carry that model at all. The other means we have not verified a price on their own pricing page — not that the model is unavailable, and not that it is cheap. Filling either in from a secondary source would make the total look complete while making it wrong.

### How current are these prices?

The external figures were each read off that provider's own pricing page; the oldest of those readings is 2026-09-18, which is the date shown at the top. Our own rates come from the live catalog at build time, so they are never staler than the last deploy. Providers do change prices without notice, so for a decision that matters, open the source link and check.

## Where the prices come from

Every external figure in this calculator comes from the same dataset as the full market comparison, which lists one source link per provider alongside the date it was read.

## Token shorthand

Shorthand works: 10M, 250k, 1.5B. If you do not know your numbers, the usage log in the console reports both counts per request, and every provider dashboard has a monthly total. Anything above 10,000,000,000 tokens per month is rejected as a typo.

## Links

- HTML version of this page: https://y-api.bestvirtualgoods.com/calculator
- Site index for agents: https://y-api.bestvirtualgoods.com/llms.txt
- Full reference (single file): https://y-api.bestvirtualgoods.com/llms-full.txt
- OpenAPI 3.1 spec: https://y-api.bestvirtualgoods.com/openapi.json
- Model catalog (JSON, no key needed): https://y-api.bestvirtualgoods.com/models.json
- API base URL: `https://api.y-api.bestvirtualgoods.com/v1`
- Contact: support@bestvirtualgoods.com
- Full price comparison: https://y-api.bestvirtualgoods.com/compare/prices
- Structured prices (JSON, ours and vendor official): https://y-api.bestvirtualgoods.com/pricing.json
- Pricing (markdown): https://y-api.bestvirtualgoods.com/pricing.md
