Skip to content

docs: add FAQ on calculating sandbox price - #330

Open
beran-t wants to merge 2 commits into
mainfrom
docs/faq-calculate-sandbox-price
Open

docs: add FAQ on calculating sandbox price#330
beran-t wants to merge 2 commits into
mainfrom
docs/faq-calculate-sandbox-price

Conversation

@beran-t

@beran-t beran-t commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new FAQ page: How do I calculate the price of a sandbox? (docs/faq/calculate-sandbox-price.mdx), registered in the FAQ nav group.

Customers building internal cost/usage tracking repeatedly ask how to turn sandbox usage into a dollar figure. This page answers it directly.

Contents

  • The pricing model and formula: (vCPU x vCPU_rate + RAM_GiB x RAM_rate) x seconds_running, billed per second only while running.
  • Current compute rates in a table, with a <Note> pointing to the pricing page / cost calculator as the source of truth so the numbers can't silently go stale.
  • A worked example (default 2 vCPU + 0.5 GiB ~= $0.109/hour).
  • How to get the inputs: getInfo() / Sandbox.list() for live sandboxes (cpuCount/memoryMB), and lifecycle webhooks (killed/paused carry event_data.execution with resources + duration) for completed runs.
  • A runnable webhook-receiver example (Express + Flask) that computes per-run cost.
  • A cost-reduction accordion.

Notes

  • Rates verified against the live pricing page. SDK field names verified against this repo's generated SDK reference (getInfo -> cpuCount/memoryMB; get_info -> cpu_count/memory_mb).
  • Previewed locally with mintlify dev (renders 200, nav entry shows).
  • No generated files touched.

New FAQ page explaining E2B's usage-based pricing formula
(vCPU + RAM per second while running), with a worked example,
how to read compute via getInfo and lifecycle webhooks, and a
webhook-receiver code example that computes per-run cost.
Registered in the FAQ nav group.
@mintlify

mintlify Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
e2b 🟢 Ready View Preview Aug 5, 2026, 3:27 PM

A timeout resolves to a pause or a kill, so listing timed-out separately
is redundant. Also remove the disk-storage sentence from the intro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant