Hugging Face Sandboxes vs Upstash Box

Hugging Face Sandboxes costs $0.005 per vCPU-hour and Upstash Box costs $0.10 per vCPU-hour. Hugging Face Sandboxes runs full VMs, offers GPUs and limits a session to 24 hours. Upstash Box runs containers.

Updated

Hugging Face Sandboxes

Isolation
Full VM
Free tier
Not listed
Max session
24 hours

Upstash Box

Isolation
Container
Free tier
Free plan, 5 CPU hours per month
Max session
Not listed

What is different

5 fields differ. The rest are the same or not listed.

Hugging Face Sandboxes
Upstash Box
vCPU, per hour
Hugging Face Sandboxes: $0.005
Upstash Box: $0.10
Billing
Hugging Face Sandboxes: Bundled machine time
Upstash Box: Active CPU time only
Idle stop
Hugging Face Sandboxes: After 10 minutes
Upstash Box: After 360 minutes
Isolation
Hugging Face Sandboxes: Full VM
Upstash Box: Container
SDKs
Hugging Face Sandboxes: Python
Upstash Box: Python, TypeScript

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Hugging Face Sandboxes: $0.005
Upstash Box: $0.10
RAM, per GiB-hour
Hugging Face Sandboxes: Included
Upstash Box: Included
Storage
Hugging Face Sandboxes: Not listed
Upstash Box: $0.10 per GB per month, including snapshots. Included on Fixed.
Free tier
Hugging Face Sandboxes: Not listed
Upstash Box: Free plan, 5 CPU hours per month
Paid plan from
Hugging Face Sandboxes: Not listed
Upstash Box: Pay as you go
Billing
Hugging Face Sandboxes: Bundled machine time
Upstash Box: Active CPU time only

Limits

Max session
Hugging Face Sandboxes: 24 hours
Upstash Box: Not listed
Idle stop
Hugging Face Sandboxes: After 10 minutes
Upstash Box: After 360 minutes
Largest sandbox
Hugging Face Sandboxes: Not listed
Upstash Box: 8 vCPU · 16 GiB
Concurrent sandboxes
Hugging Face Sandboxes: Not listed
Upstash Box: Up to 1,000

Platform

Isolation
Hugging Face Sandboxes: Full VM
Upstash Box: Container
GPU
Hugging Face Sandboxes:
Upstash Box: Not listed
Snapshots
Hugging Face Sandboxes: Not listed
Upstash Box:
Pause and resume
Hugging Face Sandboxes: Not listed
Upstash Box:

Developer

SDKs
Hugging Face Sandboxes: Python
Upstash Box: Python, TypeScript
Integrations
Hugging Face Sandboxes: Not listed
Upstash Box: LangChain, Vercel AI SDK

Trust

License
Hugging Face Sandboxes: Not listed
Upstash Box: Not listed
BYOC
Hugging Face Sandboxes: Not listed
Upstash Box: Not listed

Hourly cost

One sandbox running for one hour

Hugging Face Sandboxes
Upstash Box
1 vCPU · 2 GiB
Hugging Face Sandboxes: $0.005
Upstash Box: $0.100
2 vCPU · 4 GiB
Hugging Face Sandboxes: $0.010
Upstash Box: $0.200
4 vCPU · 8 GiB
Hugging Face Sandboxes: $0.020
Upstash Box: $0.400

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Hugging Face Sandboxes fits when

  • You need GPUs.
  • You want each sandbox to be a full VM.
  • You want the lower list price: $0.010 against $0.200 an hour for 2 vCPU and 4 GiB.

Upstash Box fits when

  • You use LangChain or the Vercel AI SDK.
  • You need snapshots.
  • You need pause and resume.
  • Your code waits a lot: CPU is billed only while it is in use.

More comparisons

See all comparisons

Related