Dev.to AI 🤖 Ai 👁 0 📖 7 min read

Official API vs a reseller API: what the invoice actually covers

Two weeks after the integration went live, our operations lead forwarded the bill with a question I had not prepared for: which entity is this, and is it this month's? Nothing about the model had changed: latency was fi

Two weeks after the integration went live, our operations lead forwarded the bill with a question I had not prepared for: which entity is this, and is it this month's?

Nothing about the model had changed: latency was fine, the prompts were identical. What had changed was the paperwork — a card receipt now had to become a ledger line with a period, a tax treatment and a counterparty.

That is the gap this article is about: two teams call the same model, get the same output, and end up with two different records — a card statement, and a document set.

Buying AI tokens through a reseller means purchasing metered model access from a party that holds the commercial relationship — contract, invoice, settlement, support and incident response — while inference still runs on the same upstream models you would otherwise call directly from your own account.

The tokens are not different. The invoice is.

Two bills for the same million tokens

Start with what each route produces when the month closes.

With an official API, you pay the model vendor. The charge lands on a card or a prepaid balance. You get a receipt. If your company is small enough and the amount is small enough, that receipt is the whole story, and nobody asks a second question.

With a reseller, you pay a company in your own commercial relationship. What comes back is shaped by whoever handles your accounts payable: a contract with a named counterparty, an invoice with a currency and a tax treatment, an acceptance act that ties delivery to the amount, and a settlement channel that does not require someone to personally guarantee a card.

The third route — self-hosting — produces almost no invoice at all, because you are buying hardware and electricity instead of tokens. That is a different article, and it is the right answer for a narrower set of cases than the internet usually admits.

Here is the comparison that matters when procurement asks why the payee is not the model vendor.

Official API (direct) Reseller Self-hosted
Who signs the contract The model vendor, under their standard terms A named entity with a negotiated agreement Your own hardware supplier; no model contract
Who issues the invoice The vendor, usually in their currency The reseller, in the currency you can book Nobody — you book capex and power
Who carries cross-border settlement You do, including any withholding and reporting The reseller, as the contracting party Not applicable
Who you call when it breaks Vendor support queue, ticket-based The party that signed; one relationship for billing and incidents Your own team, at 2 a.m.
What you are actually buying Metered access Metered access plus the commercial wrapper Capacity you must keep utilised

Read the last row twice. The reseller is not selling a different model. It is selling the wrapper that makes the model bookable, and the wrapper is what finance is actually paying for.

Why the reseller costs more, stated plainly

This is the part most vendor content skips, and skipping it is why engineers stop trusting the rest of the page.

If the coefficient is above 1, you are paying more per token than the upstream list price. That is arithmetic, not opinion. The honest version of the argument is not "we are somehow less expensive" — it is a description of what the coefficient purchases.

Four things, in the order they usually matter:

A contracting counterparty. Someone with a registration number, a jurisdiction and a liability position signs. When a purchase has no counterparty, the spend sits on a card and the risk sits on whoever owns that card.

An invoice you can book. Not a receipt. An invoice carries the entity name, the period, the currency and the tax treatment. Without it, the expense either cannot be booked in the right period or gets booked in a way your accountant will ask you about later.

An acceptance act. The document that says the service was delivered at the agreed volume and quality. It converts a prepayment from an advance into a delivered cost. In jurisdictions where prepayment is treated as an advance on the books, this is the document that closes the loop.

A settlement channel that works where you are. Which is the quiet one. A team can have budget approval, a signed contract and a working integration, and still stall for two weeks because the payment rail does not exist for their entity.

The coefficient is the price of those four things, expressed per token so it can be compared at all. You are allowed to decide the wrapper is not worth it. You are not well served by a supplier who pretends the wrapper is free.

AIO Keys publishes the coefficient rather than a rate card: vendor list price × 3.4, settled in the currency named in the contract. That is checkable against any public price list in about a minute, which is the point — a number you can reproduce is a number you can argue with internally.

The migration is one line, which changes the negotiation

Here is the part that makes this decision reversible, and reversibility is what procurement needs before signing anything.

With an OpenAI-compatible endpoint the migration is a configuration change: you point the base URL at the new host. The SDK, the prompts, the retry policy and the application code are untouched.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_KEY",
    base_url="<your-endpoint>/v1",   # the only line that changes
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Summarise this ticket in one sentence."}],
    max_tokens=120,
)

print(response.usage)  # prompt_tokens, completion_tokens — read these, not the invoice total

Two practical notes from having watched this go wrong.

First, run the same prompt against both endpoints and compare usage before you compare anything else. The token counts should match for the same model and the same input. If they do not, you are not comparing the same thing, and the invoice comparison is meaningless.

Second, keep the old configuration in version control. Rollback is restoring the previous URL. A migration whose rollback plan is "redeploy" is not reversible in the sense that matters to a finance approver.

AIO Keys keeps the endpoint OpenAI-compatible precisely so that this step stays a configuration change, not a project.

What to ask for before the first payment

Not a deck. Five questions, and a supplier who has done this before will answer them in one reply.

  1. Which entity signs, and what is its registration number?
  2. What does the invoice look like, in which currency, and in which period?
  3. Is there an acceptance act template, and what does it require me to confirm?
  4. Where does inference run, and does anything cross a border?
  5. What is the coefficient or formula, expressed against the upstream list price?

If those five arrive together and consistent, the purchase moves. If they arrive in pieces — entity in one email, invoice template "at contracting stage", formula "after a call" — expect the delay to land weeks later, once the integration is already live.

Keep the written reply. It becomes the reference document your finance team works from when the first invoice arrives, and it is the difference between a two-day booking and a two-week correspondence. Suppliers who answer in writing on day one tend to answer in writing on day ninety as well; the habit travels with the account.

There is a sixth question worth asking quietly: who answers when the endpoint breaks at 2 a.m.? With a direct vendor it is a ticket queue. With a card payment to an overseas platform it is often nobody you can reach. With a contracting reseller it should be the same party who signs the invoice, which is a structural advantage of the model that has nothing to do with price.

The decision, restated

If your scenario has no personal data, no procurement requirement and a card that works, the official API is a reasonable default and this article does not apply to you.

If finance has already asked who the payee is, or if the scenario touches customer records, or if the payment rail does not exist for your entity, then you are not choosing between two token prices. You are choosing whether to buy the wrapper that makes the purchase possible.

AIO Keys sends the document pack before any money moves, and that is the one claim here you cannot check from the outside. Everything else — the coefficient, the compatibility, the trial terms — is verifiable today.

Coefficient, trial terms and endpoint details referenced here are published at aiokeys.com/prices and were verified on 24 November 2026. Tax treatment and booking rules vary by jurisdiction; confirm them with your own finance team.

Baonty writes about the commercial side of AI infrastructure at AIO Keys, which supplies model access over an OpenAI-compatible endpoint with a published coefficient of 3.4 against vendor list price, and settles in the currency named in the contract.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.