What is it
GB-Hour Pricing is a billing unit where customers are charged for the memory their workloads consume over time, measured in gigabyte-hours.
A gigabyte-hour (GB-hour, sometimes written GiB-hour or memory-hour) is the product of two numbers: how much RAM a workload reserves and how long it holds it. Reserve 4 GB for 30 minutes and you have consumed 2 GB-hours. The unit exists because, on serverless and sandbox platforms, memory is a provisioned resource that costs the vendor money the entire time it is allocated — even when the CPU sits idle. Billing it separately, by time, aligns the invoice with the actual resource footprint rather than with a proxy like requests or seats.
GB-hours rarely travel alone. They are the second dimension in serverless billing, paired with CPU-hours (or vCPU-seconds) so the bill describes both halves of a container’s footprint. Modal bills memory at $0.00000222 per GiB-second right alongside its per-second CPU and GPU meters, and notes that idle containers still cost “only memory and storage” — a clean illustration of why memory needs its own line item. E2B does the same for code sandboxes, exposing a derived “RAM GB-hours” metric computed as run-hours times allocated RAM, and Together AI’s Code Sandbox bills GiB-hours separately from vCPU-hours for the same reason.
The unit is most common among compute-execution platforms: serverless functions, code-interpreter sandboxes, and the data-plane operations of usage-priced databases. Apify takes the idea to its logical conclusion, collapsing memory and runtime into a single synthetic “compute unit” defined as exactly 1 GB of RAM for 1 hour — so a GB-hour is the product’s headline meter rather than one input among several. At the database end of the spectrum, Qdrant meters the RAM its vector clusters consume by the hour, since a vector index lives largely in memory and the cluster’s memory footprint, not query volume, is what drives the bill.
How it works
The core formula is identical everywhere: memory cost equals allocated memory multiplied by the duration that memory is held, times a per-GB-hour rate. The variation is in what wraps around it — whether memory is billed per second or per hour, whether it is bundled into a synthetic unit, and what minimums apply.
| Dimension | What it controls | Example from this corpus |
|---|---|---|
| Rate granularity | How finely time is measured | E2B and Modal bill per GiB-second; Apify bills per GB-hour via its compute unit; Qdrant meters RAM hourly |
| Bundling | Whether memory is a standalone line or folded into a composite unit | Apify folds RAM and runtime into one “compute unit” (1 GB × 1 hr); Together AI lists GiB-hours separately from vCPU-hours |
| Minimums | Floors that prevent tiny workloads from rounding to zero | turbopuffer’s pinning meter has a 64 GB and 10-minute floor |
| Pairing | Which other meters ride alongside | Modal pairs GB-hours with CPU-hours and GPU-hours; Qdrant pairs RAM with vCPU and storage; Vercel pairs provisioned memory with bandwidth, edge requests, and invocations |
The per-unit rates span a surprisingly wide band. E2B bills RAM at $0.0000045 per GiB-second — about $0.0162 per GiB-hour — Together AI’s Code Sandbox lists $0.0149 per GiB-hour, and Vercel bills provisioned memory at $0.0106 per GB-hour on Pro, while Modal charges $0.00000222 per GiB-second, roughly $0.008 per GiB-hour. That is close to a 2x spread on the same physical resource, which is why memory rate, not just CPU rate, belongs in any serverless cost comparison.
Unit math: A sandbox holding 4 GiB of RAM for 30 minutes consumes 4 × 0.5 = 2 GiB-hours. On E2B that memory line is ~2 × $0.0162 = $0.032; on Modal it is ~2 × $0.008 = $0.016 — before any CPU or GPU charge is added.
Composite units change the arithmetic without changing the principle. On Apify, an Actor running on 2 GB of RAM for 90 minutes consumes 2 × 1.5 = 3 compute units, billed at $0.2/CU on Free/Starter, $0.16 on Scale, and $0.13 on Business — so the same run costs $0.60 or $0.39 depending on plan tier. Some vendors keep the rate off the page entirely: Qdrant states its clusters are “priced based on CPU, memory, and disk storage usage” but publishes no per-GB-hour number — you size a cluster in its in-app calculator, which puts a 1M-vector production cluster at roughly $25-45/month. For the standalone calculators that model these blended meters, see the pricing calculator hub.
Companies using this
Eight companies in the corpus meter memory in GB-hours, almost all of them compute-execution or usage-priced-database platforms. Modal and E2B are the cleanest examples — per-second memory billing paired with per-second CPU — while Apify is the outlier that makes GB-hours its primary headline meter, and Qdrant and turbopuffer bring the pattern into vector databases.
Patterns observed
- Memory never bills alone. Every company on this page pairs GB-hours with at least one other compute meter — Vercel buries it among seven parallel meters, and even database platforms like Qdrant meter RAM alongside vCPU and storage. The GB-hour exists to complete the resource picture, not to be the whole bill.
- Granularity splits by workload lifetime. Sandbox platforms meter per GiB-second because their jobs are short; always-on clusters like Qdrant’s can afford coarser hourly metering. The “GB-hour” label is a unit of account, not the resolution the meter actually runs at.
- Memory rates move down, not up. Apify cut compute-unit rates ~20-25% across all tiers in September 2025, and E2B’s vCPU rates have held flat across the entire tracked range. GB-hour meters in this corpus trend cheaper or stable, never more expensive.
Counterexamples & variants
The most interesting variant is turbopuffer, which is not a compute platform at all — it is a serverless vector database built on object storage. It bills the majority of usage per write, per query, and per GB-month of storage, with GB-hours appearing only for a narrow feature: namespace pinning, introduced in April 2026, which keeps a namespace warm in memory for latency-sensitive workloads. Pinned namespaces bill in GB-hours (scaling with size, replica count, and time pinned) with floors of 64 GB and 10 minutes. Here GB-hours are an opt-in alternative to per-query billing, not the default — the opposite of Apify, where they are the default. Qdrant sits at the far end of the same axis: it makes provisioned RAM the entire default bill and charges nothing per query, a deliberate capacity-not-query counter-position to serverless rivals — but it never publishes the per-GB-hour rate, so buyers can only see the number after sizing a cluster in-app.
Apify is the inverse counterexample — GB-hours as the entire compute story rather than a supporting meter — and the risk of that abstraction is opacity: a buyer who only sees “compute units” cannot tell whether a cost spike came from more memory, longer runtime, or both. Novita AI shows where the model gets thin: its agent sandbox bills “per second on vCPU and memory,” but the published example (~$0.3744 for a 1-hour job on 8 vCPU + 8 GiB RAM) blends the two so tightly the memory component is never quoted on its own. When memory disappears into a single per-second sandbox rate, the GB-hour stops being a meter the buyer can optimize against.
What this means for buyers vs vendors
For buyers
Ask for the per-GiB-hour (or per-GiB-second) memory rate separately from the CPU rate — the spread is large (Modal’s ~$0.008/GiB-hour versus E2B’s ~$0.0162/GiB-hour is roughly 2x), and over-provisioned RAM is the most common source of silent overage. If a vendor bundles memory into a synthetic unit like Apify’s compute unit, get the GB-per-unit definition so you can model the impact of right-sizing memory; if a vendor hides the rate behind a calculator like Qdrant does, size a representative cluster before you commit. Watch for minimums: turbopuffer’s 64 GB / 10-minute pinning floor means small or short workloads pay more than the headline rate implies, and Vercel includes only 360 GB-hours on Hobby before metered memory begins.
For vendors
GB-hour billing fits any product that provisions memory the customer can’t see consuming — serverless functions, sandboxes, warm database namespaces, and always-on vector clusters like Qdrant’s. It requires per-second (or at least hourly) metering infrastructure and the ability to attribute reserved memory to a tenant over time, which is heavier than counting requests. The packaging decision is whether to expose memory as its own line (transparent, like Modal, E2B, and Together AI) or fold it into a composite unit (simpler to reason about, like Apify) — the former wins trust with cost-conscious engineers, the latter lowers cognitive load for everyone else. For the broader trade-offs, see the introduction to usage-based pricing and our note on billing cycles and invoicing.
| Company | Product | Pricing model | Billing units | Free tier | Verified |
|---|---|---|---|---|---|
| Apify | Apify Platform — web scraping and browser-automation cloud with an Actors marketplace | Yes | 2026-06-03 | ||
| E2B | Open-source cloud sandboxes for AI agents — secure, isolated micro-VMs that run LLM-generated code, coding agents, and computer-use workflows | Yes | 2026-06-02 | ||
| Modal | Serverless compute and GPU platform — per-second billing for Python functions, batch jobs, and model serving | Yes | 2026-05-29 | ||
| Netlify | Web development & deployment platform (Agent Runners / AI) | Yes | 2026-07-06 | ||
| Novita AI | Pay-as-you-go AI cloud: 200+ model inference APIs, on-demand GPUs, and per-second agent sandboxes under one API | Yes | 2026-07-06 | ||
| Qdrant | Open-source vector database + Qdrant Cloud | Yes | 2026-06-09 | ||
| Together AI | AI Acceleration Cloud — serverless inference, dedicated endpoints, GPU clusters, Code Sandbox, fine-tuning | Yes | 2026-06-30 | ||
| turbopuffer | Serverless vector and full-text search database on object storage | No | 2026-06-04 | ||
| Vercel | Frontend cloud platform | Yes | 2026-07-06 |
Explore this theme in the knowledge graph
FAQ
What is a GB-hour in pricing?
A GB-hour (or memory-hour) is one gigabyte of memory allocated for one hour. It is calculated as allocated RAM multiplied by the time that memory is held, so 4 GB for 30 minutes equals 2 GB-hours.
Why do serverless platforms bill memory separately from CPU?
Provisioned memory costs the vendor money for as long as it is reserved, even when the CPU is idle. Billing GB-hours separately aligns the invoice with the workload's actual resource footprint. Modal notes that idle containers still cost only memory and storage.
How much does a GB-hour cost?
Rates vary widely. E2B bills RAM at about $0.0162 per GiB-hour ($0.0000045/GiB-second), Together AI's Code Sandbox lists $0.0149 per GiB-hour, and Modal charges roughly $0.008 per GiB-hour ($0.00000222/GiB-second) — close to a 2x spread on the same resource.
What is Apify's compute unit?
Apify's compute unit is a synthetic GB-hour: it is defined as exactly 1 GB of RAM allocated for 1 hour. It is priced from $0.2/CU on Free and Starter down to $0.13/CU on Business, and Apify cut these rates 20-25% in September 2025.
Which companies use GB-hour pricing?
In this corpus, Modal, E2B, Apify, Together AI, Novita AI, Vercel, Qdrant, and turbopuffer meter memory in GB-hours. Most pair it with CPU-hours for serverless or sandbox compute; Qdrant meters it hourly for provisioned database clusters, and turbopuffer uses it only for warm 'pinned' namespaces.
Related billing units
- Credit-Based BillingA billing unit where customers pre-purchase or are allocated a pool of credits that deplete as they use the product, often at variable rates per feature.
- Token-Based PricingA billing unit common in LLM and AI products, where customers are charged per input and output token processed.
- Per-Seat PricingA billing unit where the vendor charges a fixed fee per named user, regardless of how much each user consumes.
- Per-Resolution PricingA billing unit unique to AI customer-support products, where the vendor charges only when an AI agent resolves a customer issue without escalation.
- Bandwidth-Based PricingA billing unit where customers are charged per gigabyte of data transferred out of the platform.
- Per-Function-Invocation PricingA billing unit where customers are charged per serverless function invocation, often combined with a separate compute-time charge.
- CPU-Hour PricingA billing unit where customers are charged for the CPU time their workloads consume, typically measured in vCPU-seconds or vCPU-hours.
- GPU-Hour PricingA billing unit where customers are charged for GPU time consumed, typically measured per-second or per-hour by GPU type.
- Per-API-Call PricingA billing unit where customers are charged per API request, regardless of payload size or processing time.
- Per-GB Storage PricingA billing unit where customers are charged per gigabyte of data stored on the platform per month.
- Media-Minute PricingA billing unit where customers are charged per minute of audio or video processed — used by speech, voice, and video AI vendors.
- Per-Request PricingA billing unit where customers are charged per request served — the generic meter for inference endpoints, search, scraping, and browser infrastructure.
- Per-Event PricingA billing unit where customers are charged per event ingested — the native meter of observability and billing-infrastructure platforms.
- Vector Storage PricingA billing unit where customers are charged for vectors stored or indexed — the storage dimension of vector database pricing.
- Per-Character PricingA billing unit where customers are charged per character of text processed — the standard meter for text-to-speech and translation.
- Per-Document PricingA billing unit where customers are charged per document processed or generated — common in AI writing, SEO, and document-intelligence tools.
- Per-Page PricingA billing unit where customers are charged per page crawled, parsed, or rendered — the meter for web scraping and document parsing.
- Per-Transaction PricingA billing unit where customers are charged per financial or billing transaction processed — the meter of billing and accounting platforms.
- Active-User PricingA billing unit where customers are charged per monthly or daily active user rather than per provisioned seat.
- Per-Task PricingA billing unit where customers are charged per task an automation or agent executes — Zapier's historical unit, now spreading to AI agents.
- Per-Unit PricingA billing unit used by robotics, hardware AI, and some SaaS companies where the metered object is a physical or abstract 'unit' — a robot deployed, a device sold, or a defined deliverable.
- Workflow Execution PricingA billing unit where each end-to-end workflow or automation run is metered and billed, regardless of the compute steps it contains.
- Per-Message PricingA billing unit where each individual message or reply in a conversation is metered, common in AI chat and voice platforms.
- Per-Invoice PricingA billing unit used by billing infrastructure platforms where each invoice generated or processed is metered as the primary cost driver.
- Per-Action PricingA billing unit where each discrete action taken by an AI agent or automation is metered — common in browser automation and agentic workflow tools.
- Per-Image PricingA billing unit where each AI-generated image is metered, common in image generation APIs and multimodal AI platforms.
- Per-Conversation PricingA billing unit where each complete customer conversation — from first message to resolution — is metered as a single chargeable event.
- Per-Record PricingA billing unit where each data record processed, labeled, or extracted is metered — common in data platforms and web scraping services.
- Per-Word PricingA billing unit common in translation and localization platforms where the metered object is the word count of content processed.
- Per-Video PricingA billing unit where each AI-generated video is metered, common in video generation and synthetic media platforms.
- Milestone-Based PricingA billing unit used in drug discovery and biotech AI where payment is tied to achieving defined research milestones rather than time or compute consumed.
- Per-Outcome PricingA billing unit where payment is triggered by verified outcomes delivered — distinct from outcome-based pricing models, this refers specifically to 'outcomes' as a countable billing unit.
- Per-Datapoint PricingA billing unit where each individual data measurement or signal ingested is metered — common in cloud cost intelligence and ML evaluation platforms.
- Per-Interaction PricingA billing unit where each patient-agent or user-agent interaction is metered, common in healthcare AI and customer engagement platforms.
- Data Licensing PricingA pricing structure where access to proprietary datasets or data assets is licensed separately from the software or services, common in AI training data and clinical data platforms.
- Robot-Hour PricingA billing unit where each hour a robot or autonomous system operates is metered — the robotics equivalent of a GPU-hour.
- Per-Contact PricingA billing unit where each contact or lead in the database is metered, common in AI sales development and outbound automation platforms.
- Per-Mailbox PricingA billing unit where each connected email mailbox or sending account is metered, common in AI outbound sales and email automation platforms.
- Browser-Hour PricingA billing unit where each hour of headless browser compute time is metered, common in web scraping and browser automation platforms.
- Per-Generation PricingA billing unit where each AI-generated creative asset — image, video, or design — is counted as a 'generation' and metered accordingly.
- Per-Ticket PricingA billing unit where each customer support ticket handled by an AI agent is metered — common in AI customer service platforms.
- Per-Log PricingA billing unit where each LLM request log ingested or stored is metered — common in AI observability and evaluation platforms.
- Per-Trace PricingA billing unit where each distributed trace — a complete record of an LLM request chain — is metered, common in AI observability platforms.
- Per-IP PricingA billing unit where each IP address or proxy endpoint allocated is metered — used by web scraping proxy providers.
- Per-Device PricingA billing unit where each hardware device or endpoint connected to the AI platform is metered.
- Per-Case PricingA billing unit used in legal AI platforms where each case or matter processed by the AI is metered.
- Per-Report PricingA billing unit where each AI-generated report or analysis document is metered as a discrete output.