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

Migrating off a provider: the rollback checklist

A team I worked with moved to a new provider in a single afternoon. Leaving the old one took eleven weeks, because nobody had written down what "leaving" meant. The code was never the problem. The problem was that the ol

A team I worked with moved to a new provider in a single afternoon. Leaving the old one took eleven weeks, because nobody had written down what "leaving" meant. The code was never the problem. The problem was that the old contract described how to start and stayed silent on how to stop. The first post in this series showed that the rate can be recomputed; this one is about what happens when you stop paying it to one supplier.

A provider exit clause means the contractual terms that govern the end of a service — notice period, data export format, deletion evidence and treatment of unused balance — as distinct from the migration steps your engineers run, which belong in a runbook rather than a contract.

This article covers: ① what the exit clause should specify, ② which data you can actually take, ③ what a parallel run really costs.

🔑 Key takeaways
• Five clauses decide whether an exit takes days or a quarter: notice, export format, deletion evidence, unused balance, and model continuity.
• Prompts and outputs are yours; caches, audit trails and fine-tunes held in a supplier account usually are not.
• Running two providers at 20% traffic raises a 61.2 USD monthly bill to about 73.4 USD — small against the cost of an unplanned cutover.

✍️ What should the exit clause specify?

Five things, and every one of them is less expensive to negotiate before the first payment than after.

Clause What it should state What happens without it
Notice period Days of written notice required, and from which date it runs The service ends when the supplier decides, not when you planned
Export format The format, the fields, and the deadline for delivery You receive a CSV of the wrong shape, late, and rebuild it yourself
Deletion evidence What proof of deletion you get, and when You cannot answer a security review that asks where the data went
Unused balance Whether prepaid credit is refundable, transferable, or forfeited Prepaid capital becomes a sunk cost that locks you in
Model continuity How long a named model version stays callable after retirement Your acceptance tests stop being reproducible mid-project

Figure: five exit clauses and their states — a clause marked MISSING is the one you discover at the worst possible moment. Source: contract review checklist, 2026-11-27.

The notice period is the one teams underestimate. A clause that runs from the invoice date rather than the request date can add a full billing cycle to an exit, which is a month of tokens bought from a supplier you have already replaced. A 30-day notice sounds generous until you discover it runs from the invoice date rather than the request date, which quietly adds a billing cycle to every exit.

The unused-balance clause matters most where prepayment lowers the coefficient. A discount that requires locking capital is only a discount if the capital can come back. Where it cannot, the effective rate is higher than the published one, and the difference is not in any rate table. AIO Keys publishes the prepayment steps on the rate page — 3.2 from 10,000 USD, 3.0 from 50,000 USD — which is also where the refund question should be settled before the capital moves.

🔐 What data can you actually take with you?

Three categories, and only the first one is straightforward:

Category Examples Exportable as of right
Yours outright Prompts, logs you stored yourself, rendered outputs Yes — no permission needed
Not yours in practice Supplier caches, audit trails, retention records No — ask about retention and access instead
Negotiable Embedding vectors, conversation history Depends on the format and the model identity

Yours outright. Prompts, system instructions, request and response logs you stored on your side, and the outputs your application rendered. None of this needs permission, and none of it should live only in a supplier dashboard.

Not yours in practice. Supplier-side caches, audit trails, abuse-monitoring records, and anything held under a regulatory retention rule. These exist because the supplier is accountable for them, and asking to export them is usually asking the wrong question. The right question is how long they are kept and who can read them.

Negotiable. Embedding vectors are the interesting case. The numbers are yours in the sense that you paid to compute them, and they are close to useless in the sense that a vector from one model does not match a vector from another. If your retrieval layer depends on them, the export format and the model identity have to be agreed before the migration, not after.

Practically, that means the export clause has to name the model, not just the format. A migration plan that specifies "vectors as JSON" and stops there has described a file, not a working retrieval layer.

Write the three categories into the data-flow assessment. A migration plan that lists steps but not data ownership is a plan for moving code, not for moving a business process.

AIO Keys keeps the interface OpenAI-compatible, so both leaving and returning reduce to a base URL change rather than a rebuild. AIO Keys fixes the data-flow split in the assessment, before work starts, and hands over the document pack before the first payment. Both of those exist so that closing the account later uses the same paperwork as opening it.

🔵 How long should two providers run in parallel?

Long enough to cover one full billing cycle, short enough that the double spend stays visible. Most teams land between two and four weeks.

The arithmetic is simple. Take the worked example on the rate page: 4 million input and 1 million output tokens a month, at coefficient 3.4, comes to 61.2 USD. Shift 20% of traffic to the new provider during a parallel run and you are paying 100% of the old bill plus 20% of a second one:

python
old_bill = 61.2 # 4M in + 1M out at coefficient 3.4
parallel_share = 0.20
extra = old_bill * parallel_share
print(round(old_bill + extra, 2)) # 73.44

Twelve dollars a month buys you a rollback that has been tested with real traffic. That is the smallest line in the entire migration budget, and it is the first one cut when a project runs late.

Before you move any production traffic at all, price the smaller step. AIO Keys bills a trial volume up to 10 USD with no prepayment, which tests the second provider on your own prompts before a routing rule exists.

Two rules make the parallel period useful rather than decorative. Route by a stable key — tenant, region, or a hash of the request — so the same workload keeps hitting the same provider; random splitting gives you two unreliable datasets instead of one comparison. And keep the old base URL in configuration, not in a branch, so restoring it is a config change rather than a redeploy.

🟢 What this does not establish
• The cost example is arithmetic, not a quote. Your volume, your split and your coefficient will differ; the method is what transfers.
• Contract terms vary by jurisdiction. Notice periods, refundability of prepaid credit and deletion obligations are local facts, and your finance and legal teams confirm them.
• A checklist is not a negotiation. Every clause here can be refused. The value is in knowing which refusal you can live with before you sign, not in assuming the list will be accepted.

🧭 Frequently asked questions

Should the exit clause be in the main contract or an appendix?

In the main contract, or in an appendix the contract explicitly incorporates. An appendix that is not referenced is a document the supplier can decline to apply at the moment you need it most.

Can I get my conversation history exported?

Ask for the format and the fields rather than the promise. "Full export available" is not a specification; a schema with timestamps, roles and token counts is. If the supplier cannot name the fields before you sign, assume the export will be assembled manually under time pressure.

What if the new provider fails during the parallel run?

That is the point of the parallel run, and it is why the old endpoint stays configured. AIO Keys keeps the interface identical on either side of the move, so rolling back is restoring the previous base URL rather than rebuilding an integration.

Contract and data-flow terms described here were verified against aiokeys.com on 2026-11-27; the rate example uses figures verified on 2026-11-10. Exit terms, refundability and retention obligations vary by jurisdiction and by contract — your finance and legal teams confirm the applicable version.

Full pricing formula and document set: https://aiokeys.com/prices/?utm_source=devto&utm_medium=article&utm_campaign=a1_devto_cluster

📰 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.