Serverless Compute

E2B

standard

E2B is an reliable serverless compute provider offering Tool Management, Code Sandbox, Code Execution through Aweb's unified API. It features partial streaming support with standard-tier latency.

Try E2BOfficial docs

Specifications

CategoryServerless Compute
Auth Typeheader
Latency Tierstandard
Streamingpartial
Pricing Tierstandard
Reliabilitystandard
Qualitypremium
Base URLhttps://api.e2b.dev
SDK Package

Capabilities (3)

Tool Managementagent.tools
Score: 82
Code Sandboxcompute.sandbox
Score: 86DEFAULT
Code Executioncompute.execute
Score: 85DEFAULT

Quick start

Use E2B through Alfred's unified API — no provider-specific SDK needed.

cURL

curl -X POST https://api.alfred-ai.app/v1/execute \
  -H "Authorization: Bearer $ALFRED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "e2b",
    "capability": "agent.tools",
    "input": { "prompt": "Hello from E2B!" }
  }'

TypeScript

import { Alfred } from '@alfred/core';

const alfred = new Alfred({ apiKey: process.env.ALFRED_API_KEY });

const result = await alfred.execute({
  provider: 'e2b',
  capability: 'agent.tools',
  input: { prompt: 'Hello from E2B!' },
});

console.log(result.output);

Related Serverless Compute providers

Replicate

standard tier

RunPod

economy tier

Apify

standard tier

Cloudflare Workers

standard tier

Gretel AI

standard tier

Browserbase

standard tier

Getting started →API reference →All capabilities →All providers →