ai-model-nodejs

Integrate AI text, streaming, and image generation into Node.js backends.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/neitui-coder/yolo-growth-map --skill ai-model-nodejs-neitui-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-nodejs
Source: https://github.com/neitui-coder/yolo-growth-map/tree/main/.agents/skills/cloudbase/references/ai-model-nodejs
Command: npx skills add https://github.com/neitui-coder/yolo-growth-map --skill ai-model-nodejs-neitui-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudbase/node-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the need for AI functionality in Node.js backend services and CloudBase cloud functions, allowing developers to integrate text generation, streaming, and image generation features seamlessly.

Core Features & Use Cases

  • Text Generation: Create dynamic text based on given inputs for various applications like content creation and chatbots.
  • Streaming: Stream text incrementally for real-time processing and applications.
  • Image Generation: Generate images using built-in models like Hunyuan and DeepSeek.
  • Use Case: Enhance your Node.js backend or CloudBase cloud function with AI-powered text generation for interactive chatbots or create custom image generation features for your application.

Quick Start

Integrate the ai-model-nodejs skill into your CloudBase cloud function to generate an image:

const tcb = require('@cloudbase/node-sdk');
const app = tcb.init({ env: '<YOUR_ENV_ID>' });
const ai = app.ai();
const imageModel = ai.createImageModel("hunyuan-image");
const res = await imageModel.generateImage({
  model: "hunyuan-image",
  prompt: "a serene landscape",
  size: "1024x1024"
});
console.log(res.data[0].url);

Frequently Asked Questions about ai-model-nodejs

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

FAQPage Schema
How do I integrate AI text generation into a Node.js backend?

To integrate AI text generation into a Node.js backend, use this Skill with @cloudbase/node-sdk to initialize the app, access the AI module, and generate dynamic text for server-side applications like chatbots.

Can I generate images using CloudBase cloud functions?

Yes, you can generate images in CloudBase cloud functions by creating an image model instance using @cloudbase/node-sdk and specifying a built-in model like hunyuan-image with your prompt and desired size.

Does this Skill support streaming text responses for real-time applications?

Yes, this Skill supports text streaming, allowing you to stream text incrementally within Node.js backend services and CloudBase cloud functions for real-time processing and interactive applications.

What AI models are available for text and image generation in CloudBase?

The Skill provides specific built-in models such as Hunyuan and DeepSeek for text and image generation, which are accessed directly through the @cloudbase/node-sdk AI module in your cloud functions.

Do I need @cloudbase/node-sdk to use AI features in my Node.js application?

Yes, @cloudbase/node-sdk is a required dependency to initialize the CloudBase environment and access the AI capabilities for text generation, streaming, and image generation within your Node.js backend.