Pricing Question
callmefredcom
PROOP

2 years ago

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?

0 Replies

callmefredcom
PROOP

2 years ago

N/A


dev
MODERATOR

2 years 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


callmefredcom
PROOP

2 years ago

So just for a single video, $6?


dev
MODERATOR

2 years 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


callmefredcom
PROOP

2 years 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?


dev
MODERATOR

2 years 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


callmefredcom
PROOP

2 years ago

Thanks so much for the time spent.


dev
MODERATOR

2 years ago

Of course, happy to help 🙂


Loading...