compute

Serverless Compute

Code Sandbox

Code Sandbox is a serverless compute capability available through E2B on Aweb. Create isolated sandbox environments for safe code execution. Access it through a single unified API with automatic failover and intelligent routing.

Try Code SandboxAPI docs

Best for

Highest quality

E2B

Premium tier

Contract

Max Latency5000ms
Streaming RequiredNo

Providers (1)

ProviderScoreQualityPricing
E2BDEFAULT
86premiumstandard

Public discovery and orchestration

Inspect the live capability descriptor directly, then route orchestration through a capability filter. Generic public execute examples are intentionally withheld until the canonical public execute contract is normalized.

cURL

curl "https://aweblabs.ai/api/v2/capabilities/compute.sandbox"

TypeScript

import Aweb from '@aweb/sdk';

const client = new Aweb({
  baseUrl: 'https://aweblabs.ai/api/v2',
});

const capability = await client.capabilities.get('compute.sandbox');

console.log(capability.data.runtime.providers);

Orchestration pipeline

import Aweb from '@aweb/sdk';

const aweb = new Aweb({ apiKey: process.env.AWEB_API_KEY });

const result = await aweb.orchestrate.run({
  query: 'Use Code Sandbox to help with a hello-world task and summarize the output',
  capabilities: ['compute.sandbox'],
  policy: 'balanced',
});

console.log(result.data.status);

Related Serverless Compute capabilities

Serverless GPU

compute

Code Execution

compute

Synthetic Data Generation

compute

Data Anonymization

compute

Cloud Browser

compute

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