Serverless Compute
E2B
standardE2B 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.
Specifications
Capabilities (3)
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);