I spent Google's $1,000 GenAI credit on 86,000 pages of old books. I sweated the whole time.
Someone asks it every few weeks. Reddit, forums, the Google Cloud community pages.
I have this $1,000 "GenAI App Builder" credit. What can I actually spend it on?
I had one. I honestly can't tell you how I got it. Everyone who signs up for Google Cloud gets the $300 free trial, and that one I expected. The $1,000 just showed up. A surprise.
It sat there for nine months doing nothing.
Then I saw the expiry date, and in fourteen days I spent about $860 of it on one thing: turning 86,000 pages of public-domain books into clean, searchable text.
If you're still holding yours and still asking the question, this is one answer. It works. I just didn't know it worked until the bill came in.
The part where I was perspiring
The credit is not "$1,000 of Google Cloud." It covers some services. Google is vague about which.
I found that out the honest way. Gemini, the image models, the video models, Search grounding: I ran them, and they billed my card. Not the credit. My card.
I am a man with a business, a mortgage and opinions about exchange rates. A surprise charge in dollars is not a rounding error for me.
So before I sent anything big, I sent something tiny. A test on the Ranking API. Then I waited, because Google Cloud billing lagged up to 72 hours for me, every single time.
Three days of refreshing the billing page. Three days of doing math in pesos.
The credit moved. $1,000.00 to $999.80. Then $999.50.
It was the credit. Not my money. The credit.
Then I tested the one I actually wanted: Layout Parser, Document AI running through Vertex AI Search. You hand it a scanned page and it works out the columns, the headings, the tables, and gives you back clean text. One cent a page.
Covered.
At a cent a page, $1,000 is 100,000 pages. That is not an app. That is a library.
Lesson 1: run a $1 test, wait three days for billing to catch up, and read the bill by SKU before you spend real money. The credit's coverage is not what you assume.
What I fed it
Everything had to be public domain, so 1926 or earlier. And it had to be useful for the history videos I make.
- Mail-order catalogs: Sears, Roebuck from 1898 to 1912, Macy's, Carson Pirie Scott. Thousands of real prices. (Sears up to 1923 and two Montgomery Wards are parsing as I write, with the last of the credit.)
- Wall Street and money: Reminiscences of a Stock Operator, Extraordinary Popular Delusions and the Madness of Crowds, Tarbell's History of the Standard Oil Company, the old panic histories.
- Old advertising and selling: Printers' Ink, Advertising & Selling, salesmanship manuals.
- Fourteen years of the US Statistical Abstract, census volumes, price and wage reports.
About 150 titles, all from the Internet Archive.
The pipeline
Small and boring. On purpose.
- A manifest per shelf. A CSV of Archive items with page counts and estimated cost, checked before anything gets sent.
- A runner. Downloads each PDF, cuts the big ones into parts under Google's limits, uploads them, and imports them into a Vertex AI Search data store with layout parsing on.
- Export. Pulls the parsed document and its chunks back out as JSON, then cleans it into Markdown with page markers.
The interesting part was not the parsing. It was making a script safe to leave alone while it spent real money.
The bugs that almost cost me
Paying twice. My first runner marked a part "done" only after the import finished. Cloud Shell reset in the middle of an import, the answer was lost, and the next run sent the same part again. Fix: mark every part as started before the paid call, and never resend a part with a lost answer until a human checks the data store.
Cloud Shell resets. About every three parts. I moved the long run to my home PC, with a progress file copied to a bucket after every part, so either machine could pick up where the other stopped.
The cap that wasn't. I had a spending cap, checked once at the start, against the Archive's page counts. The real PDFs ran up to 10% longer. Now the cap is checked before every paid request, on the real page count.
Windows. The PC run died on a prime mark (′) from a gazetteer's coordinates, because Windows writes files in an old character set by default. Everything is now read and written as UTF-8. The parse had already been paid for, so the rerun only saved the text. No second charge. I checked. Of course I checked.
A book Google couldn't read. One 500-page part came back with no text at all, and the runner stopped dead, blocking the queue behind it. Now a part like that gets set aside, named, and the queue keeps moving.
Batching. Ten parts per import request instead of one, so far fewer requests to send and wait on. The first full run sent all 7 parts of a 1,221-page book in one request, for $12.22.
Lesson 2: for any script that spends money, write the test for "what happens if it crashes right after the paid call" before you run it.
The numbers
- About 14 days, first $1 probe to last queue.
- About 86,000 pages, about $860 of the credit.
- About $0.75 of my own money, for voices and music on the first videos.
- About 120 automated tests on the runner.
What it bought
A searchable library of America from 1870 to 1925, where every fact points back to a page.
So far it has turned into four long videos and three shorts: mail-order houses, a $532 house sold by catalog, a coin-slot talking machine from 1898, what people wore in 1912. Every line in them is checked word for word against the scanned page shown on screen.
Yes, I'm building a YouTube channel. How could I not.
I got lost in it.
Maybe it's my age. Maybe there really was a quieter time, and AI walked me back into it. I spent weeks reading catalogs and listening to old voices, and somewhere in there I stopped building and just read.
What I do with the rest of it, I'm still finding out.
If you're still sitting on yours
- Find out what it covers before you plan. Mine did not cover Gemini.
- Layout Parser at a cent a page turns the credit into something that outlives it. The text stays yours after the credit is gone.
- Check your expiry date. Mine is 18 February 2027, a year from when it started.
- Tear down your data stores and buckets before the credit ends, or they start billing your card. And you know how I feel about that.
I spent $1,000 on the cloud to read about a time when $532 bought you a house. It came by freight train. The labor was extra.
Yes. There was a time.