Skip to contentNow get 25M free tokens daily — after a single top-up of $5 or more

PRICING GUIDE

LLM API Pricing: How to Compare Multi-Model API Costs

LLM API cost is not a single price per token. Calculate it from input volume, output volume, each model's separate rates, failed attempts, and any gateway fee—then compare that result with the value and reliability the workload needs.

Reviewed by APInex EngineeringUpdated 2026-11-2910 min read
Compare plans
Technical visualization of input and output token costs flowing into a single API budget
Quick answer

Multiply input tokens by the model's input rate, multiply output tokens by its output rate, add both amounts, then add platform fees, retries, and any non-model services.

How do you calculate LLM API pricing?

Multiply input tokens by the model's input rate, multiply output tokens by its output rate, add both amounts, then add platform fees, retries, and any non-model services.

The formula is simple; the inputs are not. Tokenizers differ, reasoning models can produce hidden or billed tokens, and a retry can spend money without producing a successful answer. Measure a real workload before comparing vendors.

APInex publishes the same APInex rate for both input and output on each paid model while also showing the provider's official input and output rates. That makes the comparison unusually direct, but buyers should still verify whether reasoning, cached input, tools, or media are counted differently.

Write the formula into the same spreadsheet or finance model that tracks product gross margin. Input tokens, output tokens, and the number of successful requests are operational variables; payment fees, refunds, and customer price are business variables. Keeping them together shows whether an AI feature remains viable after retry and support costs.

A rate is only useful when the unit is identical. Some providers count cached input separately, some count reasoning as output, and some charge non-text tools by request or resolution. Normalize every component to the same workload before comparing the final amount.

estimated cost = (input tokens / 1,000,000 × input rate) + (output tokens / 1,000,000 × output rate) + gateway fees + retries

What do current APInex model rates look like?

The paid catalog starts at fractions of a dollar per million tokens, with the exact input and output rate visible for each model. The table below is generated from the same model configuration used by the pricing page.

Paid APInex model rates and public provider reference rates, generated from the current site catalog

ModelProviderOfficial inputAPInex rateOfficial outputContext
Claude Opus 5.5Claude$4.00$0.50$20.001M
Gemini 4 ArgonGemini$2.00$0.50$10.001M
Claude Sonnet 5.5Claude$2.00$0.40$10.001M
Deepseek V4.1 Flash 1017DeepSeek$0.15$0.06$0.601M
grok-4.7Grok$2.00$0.30$6.00500K
Gemini 3.8 FlashGemini$0.75$0.10$3.751M
Deepseek V4 FlashDeepSeek$0.15$0.05$0.601M
Deepseek V4 ProDeepSeek$0.66$0.07$1.981M
Gpt 6 LunaGPT$0.10$0.07$0.501M
GLM-5.3 FlashGLM$0.15$0.05$0.501M
GLM 5.3GLM$1.40$0.15$4.401M
Drex 2.0Jev Group$0.40$0.04$0.40131K
Jev 1.13Jev Group$0.42$0.04$0.4264K
Muse Spark 1.3Muse$1.25$0.30$4.251M
Tencent Hy4Tencent$0.83$0.30$2.501M
Kimi K3.1 ProKimi$3.00$0.30$15.001M

Rates are USD per 1M tokens. APInex currently applies the displayed APInex rate to both input and output for each paid model. Verify the live pricing page before purchase.

Why can output tokens dominate an LLM API bill?

Output tokens often carry a higher provider rate than input tokens, and coding or agent workloads can generate long structured responses, explanations, and reasoning.

A prompt with a large document may be input-heavy, while an autonomous coding session can be output-heavy. The same model can therefore produce very different economics across two applications. Aggregate “price per million tokens” marketing obscures this ratio.

Model a shortlist at three volumes: a pilot at 10 million tokens, an early production workload at 100 million, and a growth scenario at 1 billion. Split each into realistic input and output proportions. This exposes whether a discount matters at all.

Use a simple example. Suppose a coding feature reads 80,000 input tokens and generates 12,000 output tokens per task. At a uniform $0.50 APInex rate, the model cost is $0.046 per task before retries. If the same feature runs 20,000 tasks per month, the modeled token cost is $920. Add retry percentage, payment fees, infrastructure, and support before deciding the customer price.

The real workload should also include failures. If 8% of tasks need a second attempt, the average work per successful task rises. Instrument retry reason and cost so the team can distinguish model quality problems from network, quota, or application bugs.

Should you buy an AI subscription or pay per use?

Use pay-as-you-go for variable paid-model consumption and a timed token subscription when its included allowance, RPM, and eligible models match a predictable workload.

A timed subscription is not automatically cheaper just because it has a large token number. Compare the eligible model category, request rate, renewal period, and the probability that you will use the allowance before it resets.

A wallet is easier to reason about for paid models, but spend controls and alerts still matter. If a broken agent loops output tokens, the absence of a ceiling becomes a financial issue rather than an engineering inconvenience.

For an eligible workload, estimate the percentage of the subscription allowance that will be consumed before renewal. A plan at 70% utilization can be efficient; the same plan at 20% may cost more than a wallet. A mixed workload needs both budgets because paid models do not consume the free-category pool.

Set a daily request limit, a monthly wallet ceiling, and an alert threshold before launch. Include a human review path for unlocking more spend. These controls protect the business from an automated loop or a prompt that accidentally increases context size.

APInex buying models

ModelBest forWatch
Pay-as-you-go walletVariable paid-model trafficInput/output mix, retries, and monthly usage growth
Free-category subscriptionPredictable traffic on eligible free/* modelsIncluded token pool, RPM, renewal interval, and eligibility
Daily free-category allowanceEvaluation and low-volume developmentTop-up requirement, daily reset, check-in, and limits

Which hidden costs should an LLM API comparison include?

Include failed attempts, retries, platform fees, observability services, support, migration engineering, and the cost of maintaining a self-hosted gateway.

A cheap model can become expensive when it fails silently. Track task completion, retry count, human correction time, and downstream compute. A model that saves $40 in tokens but adds two support hours is not the low-cost option.

Payment processing, taxes, and refunds sit outside the token invoice but inside the customer economics. If a reseller sells prepaid balances, unspent liability and refund policy also need to be modeled explicitly.

  • Credit-purchase or platform fees charged outside the model rate.
  • Failed, fallback, and zero-token attempts where the vendor bills the request.
  • Cached input versus uncached input and whether the discount is passed through.
  • Pricing for reasoning tokens and tool invocations.
  • Monitoring, log storage, prompt evaluation, and security review.
  • Engineering time for deployment, upgrades, SSO, backups, and incident response.

Do tokenizers and prompt caching change the cost?

Yes. Tokenizers determine how text becomes billed units, and cached-input or prompt-caching policies can change the effective rate for repeated context.

A document that measures 20,000 words is not automatically 20,000 tokens. English text, code, JSON, punctuation, and non-Latin scripts tokenize at different rates. Measure the input through the provider's response usage object or a compatible tokenizer before promising an internal budget.

Prompt caching is most useful when a stable system prompt or long reference block repeats across requests. The saving depends on cache eligibility, retention, and whether the gateway passes the discount through. A cache is not free storage; every provider can define hit rules and expiration differently.

How should you compare two gateways for the same workload?

Replay the same prompts, capture provider-reported token counts, calculate each vendor's all-in charge, and repeat the test on several representative workloads.

Freeze one representative benchmark set before comparing vendors. The set should include a median request, a long-context request, a structured-output request, and a failure case. Replaying the same set prevents a favorable demo prompt from deciding the contract.

Record the all-in cost and the operational result together. If one gateway is $12 cheaper but returns invalid JSON in 4% more cases, the engineering correction may outweigh the invoice difference. Price is one output of the comparison, not the entire conclusion.

  • Use production-shaped prompts rather than a generic short question.
  • Record input, cached input, output, and reasoning tokens separately where possible.
  • Calculate the invoice after retries and failed requests, not only successful completions.
  • Test one outage or rate-limit scenario to see what a fallback costs.
  • Keep model version and tokenizer constant during the comparison.
  • Review the result monthly because provider prices and catalog entries change.

What are the key takeaways?

LLM API pricing becomes useful only when it reflects the exact model, input-to-output ratio, retry rate, and gateway fee for one workload.

  • Calculate input and output cost separately.
  • Compare models at your expected token mix, not at a generic 1:1 ratio.
  • Treat retries and include other platform services in the total.
  • Recheck the live catalog before purchase because models and rates change.

What are the key takeaways?

  • Use the formula input rate and output rate separately.
  • Model three usage volumes before committing.
  • Subscriptions only help when their eligible allowance matches the workload.
  • The catalog table is generated from APInex configuration to avoid duplicate pricing sources.

What sources support this page?

Product facts on this page are based on APInex configuration and first-party vendor pages. Competitor observations are dated and should be rechecked before a long-term procurement decision.

Frequently asked questions

What does cost per 1M tokens mean?

It is the charge for one million tokens. A complete comparison needs separate input and output rates because most providers price those directions differently.

Are LLM API prices per request or per token?

Most text-model prices are token-based. Image, audio, video, search, and tool services can use request, second, character, or resolution-based pricing.

Is the cheapest model always the lowest-cost choice?

No. A cheaper model that needs more retries or produces output that has to be reprocessed can increase total workload cost.

How often do LLM API prices change?

Provider catalogs and promotional rates change frequently. Treat this guide as a comparison method and verify live rates before a purchase decision.

Put the catalog behind one key.

Compare the live rates, choose a model, and test the workload before you move production traffic.

View the catalog

WELCOME TO APINEX

Sign in to continue

Use your Google account. No separate password is required.

By continuing, you agree to our Terms and Privacy Policy.