Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ai-model-nodejs

Skill by TencentCloudBase

Guides AI calls from Node.js backends using @cloudbase/node-sdk. It covers text generation, streaming, and image generation for cloud functions, CloudRun, and Express, Koa, or NestJS services.

  • Score 89
  • 1.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ai-model-nodejs

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit /tmp/CloudBase-AI-Toolkit && mkdir -p ~/.claude/skills && cp -r /tmp/CloudBase-AI-Toolkit/config/source/skills/ai-model-nodejs ~/.claude/skills/ai-model-nodejs

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ai-model-nodejs in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This is a skill for calling AI models from server-side Node.js code through @cloudbase/node-sdk version 3.16.0 or later. It explains how to pick the correct createModel group argument, such as cloudbase, and how to put a concrete model id like deepseek-v4.1-flash in the model field of generateText or streamText. It also covers image generation with createImageModel and generateImage.

Before writing any SDK code, the skill requires a two-step preflight. The first step checks for an active Token Credits resource pack. The second step checks that the target model is enabled in the environment, and enables it through the CloudBase cloud API if needed. It is aimed at developers building serverless APIs, scheduled jobs, LLM proxies, and agent orchestration on CloudBase. Browser and Mini Program projects should use other sibling skills.

Written from the project's SKILL.md and checked against it.

What it can do

  • Text generationCalls generateText on a model created with ai.createModel("cloudbase") and a model id in the model field.
  • Streaming textUses streamText with the same group and model field pattern for streamed responses.
  • Image generationCreates an image model with ai.createImageModel("hunyuan-image") and calls generateImage.
  • Eligibility preflightChecks the environment for an active Token Credits resource pack with DescribeEnvPostpayPackage.
  • Model group readinessLists enabled groups and models with DescribeAIModels before any SDK call.
  • Managed model enablementReads the model catalog with DescribeManagedAIModelList and enables models with UpdateAIModel.
  • Custom model onboardingCovers onboarding models outside the managed catalog as custom-* groups via CreateAIModel.

What you need

  • @cloudbase/node-sdk version 3.16.0 or later
  • A Node.js backend runtime such as cloud functions or CloudRun
  • A CloudBase environment with an active Token Credits resource pack
  • Access to the CloudBase MCP tools queryEnv and callCloudApi

Try asking

  • Add a cloudbase text generation endpoint in my Node.js cloud function using deepseek-v4.1-flash.
  • Set up streamText in my Express service with the cloudbase model group.
  • Generate images with hunyuan-image in my CloudRun Node.js backend.

Good to know

  • No model is enabled by default in the cloudbase group, so the model must be checked and enabled first.
  • The hunyuan-v3 group is legacy and being retired, and only hy3 is available there.
  • The hunyuan-exp default model hunyuan-2.0-instruct-20251111 is offline from 2026-05-31.
  • Browser and WeChat Mini Program projects are out of scope and should use other skills.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: config/source/skills/ai-model-nodejs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • LICENSE.md1 KB
  • SKILL.md21 KB
  • references/api-reference.md5 KB
  • references/custom-onboarding.md1 KB

Alternatives to ai-model-nodejs

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

ai-model-nodejs: common questions

Which createModel argument should I use?

Use "cloudbase" for most server-side projects. Put the concrete model id, such as deepseek-v4.1-flash, in the model field of generateText or streamText.

Can I use this skill from a browser app?

No. The skill says browser and Web apps should use ai-model-web, and WeChat Mini Programs should use ai-model-wechat.

Why does the skill require a preflight before writing code?

Text and image generation draw from the same Token Credits resource pack, and the model must be enabled in the group. The preflight confirms both before code is written.

How do I install ai-model-nodejs?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ai-model-nodejs free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ai-model-nodejs safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ai-model-nodejs?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

ai-model-nodejs Install

Add to stack

Loading.