AI21 Labs API
Access AI21 Labs 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: "ai21/jamba-large-1.7"
}).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: "ai21/jamba-large-1.7"
}).then(response => {
console.log(response);
});
</script>
</body>
</html>
List of AI21 Labs Models
AI21: Jamba Large 1.7
ai21/jamba-large-1.7
Jamba Large 1.7 is AI21's flagship open model with 94B active/398B total parameters, featuring a hybrid SSM-Transformer architecture with a 256K context window optimized for enterprise-grade reasoning tasks. It offers improved grounding and instruction-following capabilities, supporting multiple languages including English, Spanish, French, German, and Arabic.
ChatAI21: Jamba Mini 1.7
ai21/jamba-mini-1.7
Jamba Mini 1.7 is AI21's lightweight and efficient open model built on the same hybrid SSM-Transformer architecture with a 256K context window, designed for fast and cost-effective everyday tasks. It delivers improved grounding and steerability in a compact form ideal for enterprise workflows like document analysis and RAG applications.
Frequently Asked Questions
The AI21 Labs API gives you access to models for AI chat. Through Puter.js, you can start using AI21 Labs models instantly with zero setup or configuration.
Puter.js supports a variety of AI21 Labs models, including AI21: Jamba Large 1.7 and AI21: Jamba Mini 1.7. 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 AI21 Labs 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.