ai-model-nodejs

Access CloudBase AI models from Node.js applications using the Node SDK.

72|5|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/TencentCloudBase/skills --skill ai-model-nodejs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-model-nodejs
Source: https://github.com/TencentCloudBase/skills/tree/main/skills/ai-model-nodejs
Command: npx skills add https://github.com/TencentCloudBase/skills --skill ai-model-nodejs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables Node.js backends and CloudBase cloud functions to access AI models via the CloudBase Node SDK, enabling server-side AI capabilities in a familiar runtime.

Core Features & Use Cases

  • Text generation and streaming in backend services using generateText and streamText with CloudBase AI models.
  • Image generation support through the hunyuan-image model for server-side workflows.
  • Cloud Functions integration to run AI tasks securely from CloudBase environments.

Quick Start

Install the CloudBase Node SDK and initialize AI in your Node.js project. Example: npm install @cloudbase/node-sdk Initialize and call AI: const tcb = require('@cloudbase/node-sdk'); const app = tcb.init({ env: '<YOUR_ENV_ID>' }); const ai = app.ai();

Frequently Asked Questions about ai-model-nodejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate text from AI models in a Node.js backend?▼

To generate text from AI models in a Node.js backend, initialize the CloudBase Node SDK and call the `generateText` function with models like hunyuan-2.0-instruct or deepseek-v3.2. This enables server-side text generation directly within your backend services.

Can I stream AI text generation results in CloudBase cloud functions?▼

Yes, you can stream AI text generation results in CloudBase cloud functions using the `streamText` function. By initializing the CloudBase Node SDK, your cloud functions can securely stream generated text responses from models like deepseek-v3.2.

What is the best way to generate images server-side using Node.js?▼

The best way to generate images server-side using Node.js is through the CloudBase Node SDK. It supports image generation via the hunyuan-image model, allowing backend services and cloud functions to produce images for server-side workflows.

Does the CloudBase AI Node SDK require a specific SDK version?▼

Yes, the CloudBase AI Node SDK requires @cloudbase/node-sdk version 3.16.0 or higher. You must install this specific version or above to access server-side AI models and execute text and image generation tasks.

Which AI models can I access using the CloudBase Node SDK?▼

Using the CloudBase Node SDK, you can access AI models such as hunyuan-2.0-instruct-20251111 and deepseek-v3.2 for text generation, as well as hunyuan-image for image generation. These models are available for backend integration.

Why use CloudBase cloud functions for AI text generation instead of direct client calls?▼

Using CloudBase cloud functions for AI text generation securely exposes AI models like deepseek-v3.2 to your backend. It keeps API credentials safe server-side while running tasks securely from your CloudBase environments.