Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/ai-model-cloudbase
Complete guide for calling AI models with CloudBase - covers JS/Node SDK and WeChat Mini Program. Text generation, streaming, and image generation.
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
and 16 more in the full report
11 fixed11 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
Our Node.js Cloud Function fails with 'app.ai is not a function' when trying to call CloudBase AI models. We have @cloudbase/node-sdk installed in package.json. What version constraint must be satisfied for @cloudbase/node-sdk to support AI features?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies version 3.16.0 as the minimum required version of @cloudbase/node-sdk. | Missed | Passed |
The instructions your model reads when the skill loads.
Use this skill for calling AI models using CloudBase across all platforms.
Supported platforms:
| Platform | SDK/API | Section |
|---|---|---|
| Web (Browser) | @cloudbase/js-sdk | Part 1 |
| Node.js (Server/Cloud Functions) | @cloudbase/node-sdk ≥3.16.0 | Part 1 (same API, different init) |
| Any platform (HTTP) | HTTP API / OpenAI SDK | Part 2 |
| WeChat Mini Program | wx.cloud.extend.AI | Part 3 ⚠️ Different API |
env (environment ID) and credentialsJS SDK and Node SDK share the same AI API. Only initialization differs.
# For Web (Browser)
npm install @cloudbase/js-sdk
# For Node.js (Server/Cloud Functions)
npm install @cloudbase/node-sdk
⚠️ Node SDK AI feature requires version 3.16.0 or above. Check your version with npm list @cloudbase/node-sdk.
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.