ai-model-nodejs

Call CloudBase AI models from Node.js for text, streaming, and image generation.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/yyds-x/walk --skill ai-model-nodejs-yyds-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-nodejs
Source: https://github.com/yyds-x/walk/tree/main/.agents/skills/cloudbase/references/ai-model-nodejs
Command: npx skills add https://github.com/yyds-x/walk --skill ai-model-nodejs-yyds-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Node.js backends and CloudBase cloud functions need robust AI capabilities to perform text generation, streaming, and image generation without embedding models in client apps, ensuring security and scalability.

Core Features & Use Cases

  • Generate text with generateText using recommended models like hunyuan-2.0-instruct-20251111.
  • Stream results with streamText for responsive user experiences.
  • Generate images with generateImage using the hunyuan-image model for server-side image synthesis.
  • Use cases include building chatbots, content generation, and automated media assets in serverless workflows.

Quick Start

Initialize CloudBase AI in a Node.js project and call ai.createModel("hunyuan-exp") to start generating text.

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 a CloudBase AI model in a Node.js backend?

To generate text in a Node.js backend, initialize CloudBase AI and call generateText with a model like hunyuan-2.0-instruct-20251111 to produce server-side text responses.

Can I stream AI text responses from CloudBase cloud functions?

Yes, you can stream AI text responses from CloudBase cloud functions by using the streamText function, delivering responsive user experiences without waiting for the full payload.

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

The best way to generate images server-side is using the generateImage function with the hunyuan-image model, enabling automated media asset synthesis within Node.js workflows.

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

You need @cloudbase/node-sdk version 3.16.0 or higher to enable CloudBase AI capabilities like text generation and image synthesis in your Node.js applications.

What models are supported for text generation in CloudBase Node.js environments?

Supported models for text generation in CloudBase Node.js environments include hunyuan-2.0-instruct-20251111 and deepseek-v3.2, providing robust server-side AI capabilities.