R
Railway•7mo ago
CallMeFred

Pricing Question

I'm building a Python app to generate videos. The early tests show that each video generation would require 600Mb of memory and roughly 4% usage of a 2.3GHz processor. What would be the cost to generate one video on Railway?
9 Replies
Percy
Percy•7mo ago
Project ID: N/A
CallMeFred
CallMeFredOP•7mo ago
N/A
Fragly
Fragly•7mo ago
Not sure about your CPU usage cost but memory usage cost would be 6 dollars, doubtful CPU usage will add much though - usually memory is what incurs most cost
CallMeFred
CallMeFredOP•7mo ago
So just for a single video, $6?
Fragly
Fragly•7mo ago
If the video generation happens over a small timespan and memory drops down afterwards then it wouldn't be 6 dollars It's 10 dollars per GB memory per month, so 600mb memory used over the span of a month would be 6 dollars If you know your base memory usage and how long a video generates for then you can likely calculate your project cost using the information in https://railway.app/pricing
CallMeFred
CallMeFredOP•7mo ago
The process takes 180 seconds, but then another would start, etc. So let's say it's 600 Mb per video but they are queued, what would be the approximate cost?
Fragly
Fragly•7mo ago
You can take the resource usage of generating a single video and the length of time, then calculate its cost using Railway's pricing information Then multiply that by the amount of videos you expect to process each month, and add the cost for your base program usage I calculated your memory cost per video: Memory Cost per video: $0.0004158 You'll need to multiply this by the amount of videos per month and then add your program's base usage cost to get an estimate of your program's total cost
CallMeFred
CallMeFredOP•7mo ago
Thanks so much for the time spent.
Fragly
Fragly•7mo ago
Of course, happy to help 🙂
Want results from more Discord servers?
Add your server