ADAAS
ADAASADAASMarketplace
About

The Cloud4.ai Node.js SDK lets developers interact seamlessly with the Cloud4.ai platform from Node.js. It exposes the platform's managed services — configurable through the C4AI Cloud Console or directly in code — as composable building blocks, so you can assemble AI applications and switch between AI providers, databases and other services without rebuilding integrations. Use a simple raw API or a typed OOP API to run prompts through the Elastic Endpoint, connect models via the AI API Connector, attach RAG knowledge bases, manage prompts and credentials, and control execution with priorities, retries, deduplication, callbacks and fallbacks.

What makes Cloud4.ai Node.js SDK worth your time.

  • One SDK for every C4AI service — AAC, AIL, KDB, EES, Prompt Library and Credentials Storage.
  • AI API Connector (AAC) — integrate any AI tool via a friendly interface or pre-made templates.
  • AI Lambda (AIL) — pay-as-you-go access to open-source models (e.g. Hugging Face) with no self-hosting.
  • Knowledgebase (KDB) — attachable RAG storage with per-filetype parsing, unlimited DBs and semantic search.
  • Elastic Endpoint (EES) — sync/async execution with retries, fallback models and RBAC.
  • Prompt Library (PL) — manage prompts with parameters, usage tracking and RBAC.
  • Credentials Storage (CSS) — secure credential switching, auto-expiration and RBAC.
  • Raw and OOP APIs — compose EES/AAC commands with execution priority, retries, deduplication, callbacks and fallbacks; switch providers without touching app code.

Install the SDK, provide your Cloud4.ai credentials, authenticate, then execute any managed service.

  1. Install the SDK
    npm i @c4ai/sdk-node
  2. Provide credentials
    C4AI_CLIENT_ID=… C4AI_CLIENT_SECRET=…

    Get a Client ID/Secret or an API key from console.cloud4.ai/api/credentials — or pass them in code.

  3. Authenticate
    await C4AI_SDK_Context.authenticate();
  4. Execute a service
    const result = await command.execute();

    Compose EES / AAC commands (raw or OOP) with priority, retries, callbacks and fallbacks.

Get Cloud4.ai Node.js SDK on your platform.

ResourcesSystem requirements
Runtime
Node.js 18 LTS or newer
Language
TypeScript — typed OOP API plus a simple raw API
Account
Cloud4.ai credentials (Client ID/Secret or API key from console.cloud4.ai)
Platform
Runs against your Cloud4.ai deployment / Cloud Console