EN ▾
Start now

apiinference.com/Notes

Inference API Providers: How to Compare Them

Picking among inference api providers is easier with a fixed list of questions than with a feature page. This is that list, with the answers for this text-only API filled in so you can judge the fit.

Last updated

Four glass doors to server corridors with a balance scale weighing a coin against chat bubbles

Summary

  • Compare on input and output price separately, then on context, limits, payment and content policy.
  • Test with your own prompts; published numbers rarely match your workload.
  • This API is text only: no images, audio, embeddings or fine-tuning.
  • It suits adult-use and uncensored text work, not every project.

Start with what you need to run

Before you open any pricing page, write down three things: the kind of job (chat, summaries, extraction, roleplay, code), the volume (calls per day and tokens per call), and any hard constraint such as payment method or content policy. Most comparisons of inference api providers go wrong because the buyer starts with a feature checklist instead of a workload.

A hosted inference API runs a model on the provider's GPUs and gives you an endpoint. What differs between providers is the model catalog, the price, the limits, how they handle your data, and what they refuse to answer. The rest of this page goes through each in order. If you are new to the term, the guide to the inference API for adult workloads covers the basics.

The comparison table

Use this as a template. The right column shows the facts for this API; fill in the same rows for each other candidate from their own docs.

CriterionWhat to look forThis API
PriceInput and output rates per 1M tokens$0.15 input, $0.50 output
BillingSubscription, minimum spend, expiryPrepaid, $20 minimum top-up, credit never expires
ContextPrompt plus completion size100,000 tokens
Rate limitsConcurrency and requests per minuteFull key: 8 concurrent, 300 per minute
CompatibilityOpenAI SDK supportChat completions, responses, models
PaymentCards, invoices, cryptoCrypto only: USDT on TRC20, USDC on Base
Content policyRefusals and acceptable useTuned to answer without content refusals for lawful adult use; no sexual content involving minors
DataTraining on your promptsPrompts are not used for training
ModalitiesText, image, audio, embeddingsText only

Price: look at the split, not the headline

Two providers can both say they are cheap and still differ by a lot on your workload. Input and output tokens are priced separately, and the mix decides the bill. A summarizer reads a lot and writes little, so input price dominates. A story writer does the opposite.

At $0.15 and $0.50 per 1M, a job that reads 10M tokens and writes 2M tokens costs $1.50 plus $1.00, which is $2.50. Run the same arithmetic with each provider's rates for your own mix. This page does not quote other providers' rates; check their current pricing pages, because they change.

Also check for hidden costs: minimum monthly spend, credit that expires, and whether failed requests are billed. Here, failed or refused requests are not charged.

Limits and context

Rate limits decide whether a provider works for a batch job. Look for both numbers: requests per minute and concurrent requests. A full key here gets 8 at once and 300 per minute, while a trial key gets 2 and 60. Going over returns HTTP 429 with a code that tells you which limit you hit, rate_limited or concurrency. A streamed request holds its slot until the stream ends, which matters if you stream long answers.

Context is the other limit. A 100,000-token window, shared by prompt and completion, fits a long document or a lengthy roleplay history. Remember that you pay for the whole history on every turn.

Content policy and data handling

This is the criterion people skip and then regret. Mainstream providers refuse some topics that are lawful for adults, such as dark fiction or frank medical and legal discussion. If your product depends on those, a refusal in production is a bug. This API runs one open-weight model, tuned to answer without content refusals for lawful adult use. The hard limit is no sexual content involving minors, and that is not negotiable.

On data, ask whether prompts are retained or used for training. Here they are not used for training. Read the privacy page for the details instead of relying on a summary.

Test them with your own prompts

A 30-minute test beats an hour of reading. Take ten to twenty real prompts, send them to each candidate, and record cost, time and your own rating of the answer. The script below does that for one provider; change the base URL and key for the next.

import time
from openai import OpenAI

# Run the same prompts against every provider you are comparing.
client = OpenAI(base_url="https://api.apiinference.com/v1", api_key="YOUR_KEY")
prompts = ["Summarize this paragraph in one sentence: ...",
           "Rewrite this text in a formal tone: ...",
           "Return a JSON object with keys name and mood for: ..."]

for p in prompts:
    t0 = time.time()
    r = client.chat.completions.with_raw_response.create(
        model="uncensored",
        messages=[{"role": "user", "content": p}],
    )
    data = r.parse()
    print(f"{time.time() - t0:.2f}s",
          data.usage.prompt_tokens, data.usage.completion_tokens,
          "balance:", r.headers.get("X-Balance-USD"))

If a provider on your list speaks the OpenAI format, only the base URL, key and model name change. That also keeps switching cost low if your first pick disappoints.

A weighted scoring worksheet

Numbers from the table are easier to use once you turn them into one score per provider. Give each criterion a weight that reflects your project, and score each candidate from 1 to 5. The scores below are invented to show the method; use your own.

CriterionWeightCandidate ACandidate B
Price on my token mix3043
Content policy fits my use2525
Rate limits for my peak2044
Payment method works for me1553
Features I need1053

Multiply each score by its weight and add up. Candidate A: 30 x 4 + 25 x 2 + 20 x 4 + 15 x 5 + 10 x 5 = 120 + 50 + 80 + 75 + 50 = 375. Candidate B: 30 x 3 + 25 x 5 + 20 x 4 + 15 x 3 + 10 x 3 = 90 + 125 + 80 + 45 + 30 = 370. The totals are close, so look at the single lines that could end the project. If your product cannot live with refusals, Candidate A's 2 on content policy is a blocker no matter what the total says. Use the score to organize the decision, and a gating question to finish it.

Repeat the exercise after a week of real use. Scores based on a test often shift when production traffic arrives, especially for limits.

Where this API is not the right pick

Be honest about fit. Choose another provider if you need image, audio or video generation, embeddings, or fine-tuning, because none of these exist here. Choose another if you must pay by card or invoice, since only crypto is accepted. And choose another if you need a specific vendor's model, because this is one independent open-weight model and not a router across vendors. If those do not apply, see the pricing page, then claim a trial on the key page.

One more point on switching. Since the OpenAI format is common, you can keep the base URL and model name in configuration and swap providers without a code change. Do that from the start. It turns a provider decision from a rewrite into an afternoon, and it lets you route different jobs to different services, such as this API for text that other providers might refuse.

01

Common questions

What is the most important factor when comparing inference providers?

It depends on the workload, but price per input and output token, rate limits and content policy decide most cases. Test with your own prompts rather than trusting published numbers.

Can I switch between providers easily?

Yes, if both use the OpenAI format. You change the base URL, key and model name and keep the rest of your code.

Does this API support images or embeddings?

No. It is a text-only API with no image, audio or video generation, no embeddings and no fine-tuning.

How is billing handled?

It is prepaid with no subscription. Top up any whole amount from $20 to $500 in crypto; credit never expires.

Generate your key now

Sign up, copy the key, update your base URL. That is the entire configuration.

apiinference.com

Start with trial credit

Email and password, key displayed immediately.

View documentation