In Part 1, I documented what happened to Translator Pro after the Railway security breach. This post is about the money—and the aftermath that dragged on for over a month.
Someone else spent CA$2,877.08 in a single day using my Gemini API key. Who should pay for that?
Ideally, the person who stole the key. Since that person cannot be found, only two parties are left: Google, which billed the usage, and Railway, where the key leaked. I asked both for compensation, and the weeks that followed took more turns than I expected.
The Numbers on the Bill
Here is what the damage looked like on day one:
| Item | Amount |
|---|---|
| Unauthorized usage (October 22) | CA$2,877.08 |
| Billed amount after Google automatic discounts | CA$1,516.61 + tax |
| Already charged to my card during the attack | CA$800.00 (across three charges) |
While the attack was underway, Google automatically billed my card CA$200, CA$100, and CA$500. Real money had already left my account before I even knew anything was wrong.
Google: A 75% Credit, a Partial Card Refund, and CA$27.48 Left Behind
On October 23, I opened a case with Google Cloud Billing Support. I explained that the usage was unauthorized, that our service had not called Gemini with that key since October 20, and that models we never use had been invoked. I attached the anomaly alert timestamps and usage breakdown.
Support submitted an adjustment request that same day for CA$1,517.35—the full usage total on the October invoice.
The decision arrived on October 27. As a one-time exception, Google approved a CA$1,138.02 (+ tax) credit to the billing account—roughly 75% of the requested amount. They cited shared responsibility as the reason for not covering 100%, which I took to mean that safeguarding API keys is partly the user's responsibility as well.
Subtracting the CA$1,138.02 adjustment from the October invoice usage of CA$1,517.35 left CA$379.33. Adding CA$18.97 in GST brought the final invoice total to CA$398.30.
Because the credit reduced the final bill below the CA$800.00 already charged to my card, the money split three ways:
- CA$374.22 was refunded to my card. Approved on October 28 and posted between November 2 and 3.
- CA$27.48 remained as a Google account credit. On November 13, I tried requesting a self-service refund, but the console only allowed CA$0.30, stating that the rest was held back to keep services running. I ended up leaving it in the account.
- CA$398.30 remained as my actual out-of-pocket loss. CA$800.00 charged minus CA$374.22 refunded minus CA$27.48 in remaining credit comes out to exactly CA$398.30.
Opening the case quickly and laying out exact timestamps, models, and request counts seemed to help.
Railway: Silence, Then "No Compensation in Any Form"
On October 24, I reported the abuse to Railway support. I documented which key was stored where, when and how much was abused, and what we had rotated. At the end, I asked whether Railway offered any assistance or compensation for the direct financial loss.
For five days, there was no reply.
In the meantime, Railway added an October 26 FAQ to its preliminary incident report. It included this sentence:
Railway is unable to refund customers for spend performed with compromised API keys.
Instead, the FAQ directed customers to contact their AI providers directly, adding that customers could submit evidence through Railway's support portal to have Railway escalate on their behalf. At the time, however, that portal—Central Station—was intermittently down.
On October 29, I followed up on the same email thread. This time, I asked Railway to reimburse the remaining CA$398.30 in cash—the exact portion Google had not covered. I laid out four points:
- The key existed only as a server environment variable.
- On October 23, Railway itself notified us that our workspace matched the attacker's search pattern.
- The abuse started hours after Railway's disclosure email.
- Google had already absorbed most of the loss; I was only asking Railway for the remainder.
A reply came back in 12 minutes. Support apologized for the delay and confirmed we had rotated credentials properly, but did not address the reimbursement request. They told me to claim model costs from the provider—pointing to my Google case as that exact path—and said they were not offering goodwill credits unrelated to model costs either. They also said they could not tell me which variables in our workspace were accessed or when.
I pushed back. Were they telling me to go back to Google for the remainder, and if so, would Railway verify the incident directly with Google? And if Google would not cover the rest, would Railway reimburse it—or were they saying we had to absorb the cost of Railway's breach ourselves?
The next reply took seven minutes.
They clarified they were not telling me to re-file with Google, only that any claim with Google—including asking for the remaining CA$398.30—was mine to pursue directly. Railway could not manage individual refund requests, escalate them to providers on a customer's behalf, or influence individual provider decisions. Instead, they were speaking with providers collectively across all affected cases, and suggested referencing the public preliminary report as evidence.
That contradicted what the FAQ had said about submitting evidence for Railway to escalate to providers.
On reimbursement, the answer was unambiguous: Railway would not compensate the remaining balance in any form—no cash refund, no bank transfer, and no Railway credits. They apologized for the unplanned cost, the four-day outage, and the effort spent responding.
Reading the Terms of Service
After that answer, I read Railway's Terms of Service from start to finish for the first time. Here is the gist of the dispute clauses:
- Disputes go to arbitration by default. Proceedings run under JAMS arbitration in San Francisco, with Railway covering arbitration fees for claims under US$75,000.
- Small claims court is an exception—with a geographic catch. It has to be in San Francisco County or a U.S. county where you live or work. Living in Canada, my only option would be a San Francisco court.
- Liability is capped. Railway's liability is limited to the greater of US$100 or the amount you paid Railway over the previous 12 months. Indirect and consequential damages are excluded altogether.
We are on the Hobby plan, paying around US$15 a month. Under those terms, even winning a dispute would cap out around US$200—and potentially less if Railway argued that third-party Google charges count as indirect damages.
It was the first time I really felt what it means to entrust secrets to a hosting platform. On paper, if the platform gets breached, most of the financial risk still lands on the customer.
Two Weeks Later, the Refusal Reversed
The day after that categorical refusal, on October 30, Railway sent another email. They were collecting information from all affected customers through a form so they could guide customers toward the right path with Gemini—not to forward customer data directly to Gemini.
At the top of the form was a disclaimer to the effect that Railway was not responsible for how the compromised keys were used, and was only gathering details to help customers navigate provider processes. Up to that point, their stance against paying had not budged. On November 1, I compiled our usage evidence and submitted the form.
Then, on November 12, Railway published a compensation bulletin and reversed its position. It stated:
if the AI provider will not refund, we will pay for it
Eligibility covered unauthorized usage of keys exposed between October 20 at 13:50 UTC and October 21 at 09:25 UTC. Customers had until November 18 to submit the claim form, invoice, and provider case ID. Railway said it would pay out of its own funds up front and pursue insurance recovery behind the scenes.
The next day, November 13, I emailed Railway with our October invoice and supporting documents, once again requesting CA$398.30 in cash for the portion Google did not cover.
A reply arrived in 35 minutes. They apologized for the earlier refusal, explaining that it had been tied to legal and insurance constraints that were now resolved. Documented charges not covered by the AI provider were eligible for reimbursement, and because my November 1 form already counted as a formal claim, I did not need to resubmit. Payout instructions, they said, would be sent to all affected customers soon.
As of November 29, however, the payout still has not arrived.
Just When It Felt Over: A Google API Restriction a Month Later
On November 25—more than a month after the breach—when I thought only the payout was left, an email arrived from Google Trust & Safety. Gemini API access for the abused project had been restricted.
The cited reason was a violation of the Gemini API Additional Terms of Service, and the console flagged it under "Generative AI Prohibited Use Policy." Almost certainly, it traced back to the nearly 16,000 unauthorized requests someone had fired through the stolen key in a single day.
I filed an appeal the same day. The notice indicated responses typically arrive within two business days, but as of November 29, I still have no decision.
The saving grace was that our live service was completely unaffected. Right after the breach, I had moved the new key to a project under a different Google account. Had I simply rotated the key inside the compromised project, our service would have gone down all over again a month after the hack.
Making It Right With Our Customers
The Railway breach was not our fault. From our customers' perspective, though, it was our service that broke.
On October 27, I sent apology emails to the two customers who had been unable to run a single translation. I gave one a free month of the PRO plan, and completed compensation for the other customer who had been blocked right after subscribing. At least our system had not deducted credits for failed translations.
Summary: For a Solo Developer, Spending Limits Are Your Only Insurance
Here is where the numbers stand as of November 29:
| Item | Amount | Notes |
|---|---|---|
| Unauthorized usage | CA$2,877.08 | October 22 (single day) |
| Google October invoice usage | CA$1,517.35 | After automatic discounts, pre-tax |
| Google credit | -CA$1,138.02 | One-time exception (~75%) |
| Final invoice (actual loss) | CA$398.30 | Includes CA$18.97 GST |
| Card charges & refund | CA$800.00 charged → CA$374.22 refunded | CA$27.48 left as account credit |
| Railway compensation | CA$398.30 requested in cash | Approved; still unpaid as of Nov 29 |
What I am taking away from all of this:
- Spending limits are effectively your only real insurance. A lower cap would have meant a smaller bill. Reimbursement is never guaranteed, and even after approval, the money takes a long time to arrive.
- Collect evidence the day it happens. Anomaly alerts, card receipts, invoices, provider case IDs, and per-model usage logs were essential not just for Google, but later for Railway's compensation claim too.
- Contact the billing provider first, and fast. The party that cut the bill most at the outset was not where the key leaked, but the one charging for usage—and Railway's compensation process required a provider case ID anyway.
- Know your platform's liability cap, and watch for policy shifts. On paper, liability was capped near my annual hosting spend and the first response was a flat refusal, yet widespread customer impact eventually forced a reversal.
- Abandon compromised projects and isolate new keys in a clean one. Rotating a key in place does not erase abuse history; it can come back a month later as a project-level policy restriction.
- Assume secrets stored on third-party platforms can leak. Narrow permissions and tight caps per key keep any single leak small.
I will update this post once Railway's payout arrives and Google responds to the appeal.