With Modal, you always pay for what you use, and nothing more. You never pay for idle resources — just actual compute time, down to the percentage.
Modal measures the CPU utilization continuously in terms of the number of fractional physical cores. Each physical core is equivalent to 2 vCPUs.
Memory consumption is measured continuously. For both memory and CPU, you only pay for what you actually use, and nothing more.
You schedule a job to run once an hour for 15 seconds. This job uses 50% of one CPU core and 256 MiB of memory.
This job will cost $0.016/day for the CPU, and $0.001/day for the memory, adding up to $0.017/day, or $0.51/month.
GPU tasks are charged a flat fee per hour. We don't charge extra for your additional CPU and memory usage; you get the entire machine.
Our GPU instances have NVIDIA T4 processors. Other server GPUs like A100s and multi-GPU options are coming soon!
You run stable diffusion on a GPU. This will run for about 30 seconds to generate each image, which will cost about $0.0175/image.
All Modal users get $30/month of free credits.Sign up