What problem does it solve?
It helps developers add AI text generation, streaming responses, and image generation capabilities to Node.js backends and CloudBase cloud functions without building the integration from scratch.
Core Features & Use Cases
- Server-side AI text generation (generateText): Produce non-streaming responses for tasks like drafting content, summarizing, and reasoning inside an API or workflow.
- Streaming AI responses (streamText): Stream incremental output for better user experience in backends that return live partial results.
- AI image generation (generateImage): Create images with Hunyuan Image on the server side, using the Node SDK (the only SDK here that supports image generation).
- Use case: An Express/CloudBase endpoint receives a prompt from your mobile app, generates structured text (or a streamed answer), and optionally returns an AI-generated image URL for the client to display.
Quick Start
Configure your CloudBase function or Node server with @cloudbase/node-sdk, create an ai model instance, then call generateText or streamText for text output and generateImage with hunyuan-image for image generation.