ai-model-web

Call CloudBase generateText and streamText from frontend apps via the JS SDK.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/yyds-x/walk --skill ai-model-web-yyds-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-web
Source: https://github.com/yyds-x/walk/tree/main/.agents/skills/cloudbase/references/ai-model-web
Command: npx skills add https://github.com/yyds-x/walk --skill ai-model-web-yyds-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Frontend developers need to add AI capabilities directly in browser-based applications without relying on server-side backends or custom infrastructure.

Core Features & Use Cases

  • Text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk in frontend apps.
  • Real-time AI interactions in React, Vue, Angular, and static sites for chatbots, content generation, and interactive assistants.
  • Built-in support for Hunyuan and DeepSeek models to power browser-based AI tasks.

Quick Start

Install @cloudbase/js-sdk in your web app, initialize it, and call generateText with a user prompt to see a generated response.

Frequently Asked Questions about ai-model-web

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

FAQPage Schema
How do I add AI text generation directly in a browser frontend app?

Add AI text generation in browser apps by initializing the @cloudbase/js-sdk and calling generateText with a user prompt. This enables frontend frameworks like React, Vue, or Angular to execute text generation directly without custom server-side backends.

Can I stream AI text responses in a React or Vue web application?

Stream AI text responses in React or Vue web apps using the streamText function from the @cloudbase/js-sdk. This provides real-time AI interactions for browser-based chatbots and interactive assistants without relying on backend infrastructure.

What's the best way to build a browser-based chatbot without a backend server?

The best way to build a browser-based chatbot without a backend server is using the CloudBase JS SDK to call built-in Hunyuan and DeepSeek models. It supports frontend web apps and SPAs needing real-time text generation and streaming capabilities.

Do I need user authentication to run AI models from a frontend web app?

Yes, user authentication is required to run AI models from a frontend web app. Alongside the CloudBase environment and the @cloudbase/js-sdk initialization, user authentication is required to securely execute generateText and streamText functions in the browser.

Which AI models are supported for browser-based text generation via CloudBase?

Built-in support for Hunyuan and DeepSeek models is provided for browser-based text generation via CloudBase. These models power text generation and streaming capabilities directly within frontend web apps using the @cloudbase/js-sdk.