Alibaba AI API
Access Alibaba AI instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain AI like I'm five!", {
model: "alibaba/tongyi-deepresearch-30b-a3b"
}).then(response => {
console.log(response);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain AI like I'm five!", {
model: "alibaba/tongyi-deepresearch-30b-a3b"
}).then(response => {
console.log(response);
});
</script>
</body>
</html>
Frequently Asked Questions
The Alibaba AI API gives you access to models for AI chat. Through Puter.js, you can start using Alibaba AI models instantly with zero setup or configuration.
Puter.js supports a variety of Alibaba AI models, including Tongyi DeepResearch 30B A3B. Find all AI models supported by Puter.js in the AI model list.
With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.
Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.
Yes — the Alibaba AI API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.