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
Project ID:
N/A
N/A
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
So just for a single video, $6?
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
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?
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 costThanks so much for the time spent.
Of course, happy to help 🙂