ai-model-web

Integrate AI text generation and streaming into Web apps via @cloudbase/js-sdk.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/mbpz/poetry-atlas-mp --skill ai-model-web-mbpz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-web
Source: https://github.com/mbpz/poetry-atlas-mp/tree/main/.agents/skills/cloudbase/references/ai-model-web
Command: npx skills add https://github.com/mbpz/poetry-atlas-mp --skill ai-model-web-mbpz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudbase/js-sdk, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows developers to integrate AI models into their browser-based applications using @cloudbase/js-sdk, enabling text generation and streaming capabilities directly from the browser.

Core Features & Use Cases

  • Web AI Integration: Seamlessly integrate AI text generation and streaming features into Web applications.
  • Supported Models: Supports multiple AI models including Hunyuan, DeepSeek, GLM, Kimi, and MiniMax.
  • Use Case: Develop an interactive AI chat UI in a Web application, enabling real-time text generation and response streams.

Quick Start

Initialize the CloudBase SDK and use the ai.createModel function to integrate an AI model into your Web application.

Frequently Asked Questions about ai-model-web

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate AI text generation into a Web application?

Integrate AI text generation into a Web application by initializing the @cloudbase/js-sdk and calling the ai.createModel function to enable streaming responses directly from the browser.

Does the @cloudbase/js-sdk support streaming AI responses in React or Vue?

Yes, @cloudbase/js-sdk supports streaming AI responses in React, Vue, Angular, Next, Nuxt, and static sites, enabling real-time text generation for interactive chat UIs.

What AI models can I use with @cloudbase/js-sdk for text generation?

Supported AI models for text generation via @cloudbase/js-sdk include Hunyuan, DeepSeek, GLM, Kimi, and MiniMax.

What prerequisites are needed for AI streaming in a browser application?

Prerequisites for AI streaming in a browser application include initializing the @cloudbase/js-sdk and performing preflight checks for Token Credits and model readiness.

Can I build an AI chat UI with real-time text streams in a static site?

Yes, you can build an AI chat UI with real-time text streams in a static site, SPA, or dashboard by leveraging the @cloudbase/js-sdk to handle model initialization and response streaming.