Re:Deploy your side-projects at scale for basically nothing ...
by montychain on Sunday January 12, 2020 @01:37PM
(#22028127)
How much do you end up paying on average for a tweet-sized generated text?
[ Parent
| on HN ]
Re:Deploy your side-projects at scale for basically nothing ...
by minimaxir on Sunday January 12, 2020 @01:45PM
(#22028197)
I haven't create a service for auto-generated tweets yet (just human-curated ones), but for similar service which output tweet-length text (w/ a 2GiB RAM side), it takes about 30s on a cold boot (which makes sense as it has to load the model to RAM), and ~12s to generate text after a cold boot.
From the pricing (https://cloud.google.com/run/pricing):
12 * ($0.00002400) + 12 * (2 * $0.00000250) = $0.000348 per text
...and that's assuming you go over the free tier limit.