What problem does it solve? Adding AI model calls (Hunyuan, DeepSeek, GLM, Kimi, MiniMax) to a browser-based web app usually tempts developers into building an unnecessary Node.js proxy, and the @cloudbase/js-sdk AI surface is easy to misuse — wrong createModel arguments, unenabled models, missing resource packs, and anonymous-auth failures all cause runtime errors. This Skill provides the correct routing, preflight checks, and code patterns to call AI models directly from the frontend. ## Core Features & Use Cases - Correct SDK usage patterns: Enforces the three legal ai.createModel arguments ("cloudbase", "hunyuan-exp", "custom-*") and places concrete model IDs in the model field of generateText/streamText. - Mandatory two-step preflight: Verifies the Token Credits resource pack (DescribeEnvPostpayPackage) and model group readiness (DescribeAIModels / DescribeManagedAIModelList / UpdateAIModel) before any code is written. - Streaming and non-streaming generation: Provides generateText and streamText patterns with auth gating via auth.getSession(), error handling, and TypeScript type definitions. - Use Case: A developer building a React dashboard wants to add a DeepSeek-powered chat panel; the Skill checks the environment's resource pack, enables deepseek-v4-flash via UpdateAIModel, and generates a streaming browser call with no backend proxy. ## Quick Start Ask the AI to add a streaming DeepSeek chat feature to your React page using @cloudbase/js-sdk, running the CloudBase preflight checks first.