ai-model-nodejs

Call AI models from Node.js and CloudBase using the CloudBase SDK.

8|1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill ai-model-nodejs-tugoukezhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-nodejs
Source: https://github.com/Tugoukezhang/workbuddy-skills/tree/main/skills/cloudbase/references/ai-model-nodejs
Command: npx skills add https://github.com/Tugoukezhang/workbuddy-skills --skill ai-model-nodejs-tugoukezhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backend Node.js applications and CloudBase functions often need to call AI models securely from server environments. This skill provides a streamlined method to use the CloudBase Node SDK to perform text generation (including streaming) and image generation, all within backend services.

Core Features & Use Cases

  • Text generation & streaming: Generate and stream responses from large language models in backend code.
  • Image generation: Create images using the hunyuan-image model in server-side contexts.
  • CloudBase integration: Seamlessly call AI models from CloudBase cloud functions and Node.js backends for scalable AI workloads.

Quick Start

Initialize the CloudBase Node.js SDK in your server code and call the AI model methods to start generating text or images.

Frequently Asked Questions about ai-model-nodejs

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

FAQPage Schema
How do I call AI models for text generation in a Node.js backend?

You can call AI models for text generation in a Node.js backend by initializing the CloudBase Node SDK and using its AI model methods. This enables server-side text generation and streaming directly within backend services.

Can I generate images server-side using CloudBase cloud functions?

Yes, you can generate images server-side using CloudBase cloud functions. The CloudBase Node SDK supports calling the hunyuan-image model to create images directly from your backend Node.js applications.

What Node.js SDK version is required to use AI models with CloudBase?

You need @cloudbase/node-sdk version 3.16.0 or higher to call AI models with CloudBase. This SDK version provides the methods required for server-side text and image generation.

Does CloudBase support streaming responses from large language models in Node.js?

Yes, CloudBase supports streaming responses from large language models in Node.js. Using the CloudBase Node SDK, you can generate and stream model responses directly within your backend code.

Which AI models can I call through the CloudBase Node SDK?

The CloudBase Node SDK supports calling models such as hunyuan-2.0-instruct-20251111, deepseek-v3.2, and hunyuan-image. These models enable server-side text generation, streaming, and image generation.

What is the best way to integrate AI into CloudBase cloud functions?

The best way to integrate AI into CloudBase cloud functions is using the CloudBase Node SDK to call AI models. This approach provides a streamlined method for scalable AI workloads like text and image generation.