Use this skill when developing Node.js backend services or CloudBase cloud functions (Express/Koa/NestJS, serverless, backend APIs) that need AI capabilities. Features text generation (generateText), streaming (streamText), AND image generation (generateImage) via @cloudbase/node-sdk ≥3.16.0. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended), DeepSeek (deepseek-v3.2 recommended), and hunyuan-image for images. This is the ONLY SDK that supports image generation. NOT for
SkillScore95Maintained
Automatic
◆AI Engineer pack
Last verified 9/3/2026
What it changes
Passed 21 of 22 test cases with the skill, and 9 of 22 without it.
Without skill41%
With skill95%
Checks it passed that the model alone missed
Uses app.ai() to access AI capabilities.
Iterates over res.textStream using a for-await loop.
Identifies v1.8.1 as the default image generation version.
and 13 more in the full report
13 fixed8 passed either way0 still failing1 broke
Pass-rate lift
+55 pp
Tokens
+30%
Agent turns
0%
Response time
-65%
Model gemini-3.6-flashMeasured 9/3/2026v121 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 13
Prompt
What is the default version parameter for hunyuan-image in the CloudBase Node SDK when no explicit version string is supplied in generateImage?
What was checked, without and with the skill
Checked
Without skill
With skill
Identifies v1.8.1 as the default image generation version.
Missed
Passed
case-18 · gemini-3.6-flash · 9/3/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md216 linessingle file
When to use this skill
Use this skill for calling AI models in Node.js backend or CloudBase cloud functions using @cloudbase/node-sdk.
Use it when you need to:
Integrate AI text generation in backend services
Generate images with Hunyuan Image model
Call AI models from CloudBase cloud functions
Server-side AI processing
Do NOT use for:
Browser/Web apps → use ai-model-web skill
WeChat Mini Program → use ai-model-wechat skill
HTTP API integration → use http-api skill
Available Providers and Models
CloudBase provides these built-in providers and models:
Use this skill for WeChat Mini Program AI via wx.cloud.extend.AI (小程序, 企业微信小程序, wx.cloud apps). Features generateText and streamText with callbacks (onText, onEvent, onFinish). Models via wx.cloud.extend.AI.createModel with groups hunyuan-exp (小程序成长计划), cloudbase (main managed), or custom-*. Model IDs (deepseek-v4-flash, deepseek-v3.2, hunyuan-2.0-instruct-20251111, glm-5, kimi-k2.6) go in the data wrapper model field. API differs from JS/Node SDK — streamText needs data wrapper, generateText re