Authentication
Updated at:
Get an API Key and configure the E2B SDK for the Sandbox API.
The Sandbox API uses API Key authentication. Control-plane requests carry the Bailian API Key in the HTTP header:
Authorization: Bearer <your-api-key>
When using the E2B SDK, the SDK-required X-API-Key / api_key only satisfies the E2B protocol format; Bailian does not use it for business authentication. We recommend e2b_${ALIYUN_UID}.
NoteE2B-compatible endpoints return response bodies close to the native E2B structure and are not wrapped in Bailian's unified Result<T> structure.
Get an API Key
- Open the Bailian console, sign in with your Alibaba Cloud account, and activate Bailian.
- Create and copy an API Key on the API Key page.
WarningAPI Keys carry account-level permissions. Keep them secure and never share them publicly or commit them to a code repository.
ImportantOnce configured, start with Create Instance.
Is this page helpful?