Free, Unlimited Perceptron AI API
On this page
This tutorial will show you how to use Puter.js to access Perceptron AI models for video understanding, image analysis, object detection, and document OCR—completely free, without any API keys or usage restrictions.
Puter is the pioneer of the "User-Pays" model, which allows developers to incorporate AI capabilities into their applications while each user will cover their own usage costs. This model enables developers to access advanced AI capabilities for free, without any API keys or server-side setup.
Getting Started
To use Puter.js, import our NPM library in your project:
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
Or alternatively, add our script via CDN if you are working directly with HTML, simply add it to the <head> or <body> section of your code:
<script src="https://js.puter.com/v2/"></script>
Nothing else is required to start using Puter.js for free access to Perceptron AI models and capabilities.
Example 1: Video Understanding
Perceptron Mk1 is a vision-language model designed for video and embodied reasoning. It can process native video at up to 2 frames per second within its 32K context window, making it ideal for video QA, summarization, and event detection. To analyze a video, simply pass a video URL to puter.ai.chat():
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(
"Summarize what happens in this video.",
"https://assets.puter.site/puppy.mp4",
{ model: 'perceptron/perceptron-mk1' }
).then(response => {
puter.print(response);
});
</script>
</body>
</html>
Example 2: Image Analysis
Perceptron Mk1 also works on still images. Pass an image URL as the second argument to puter.ai.chat() and the model will describe what it sees:
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai
.chat("What do you see in this image?", "https://assets.puter.site/doge.jpeg", {
model: "perceptron/perceptron-mk1",
})
.then(puter.print);
</script>
</body>
</html>
List of supported models
The following Perceptron AI models are supported by Puter.js:
perceptron/perceptron-mk1
Conclusion
Using Puter.js, you can access Perceptron AI's Mk1 vision-language model for video understanding, object detection, and document OCR without needing an API key or a backend. And thanks to the User-Pays model, your users cover their own AI usage, not you as the developer. This means you can build powerful video analysis, robotics, and multimodal applications without worrying about AI usage costs.
You can find all AI features supported by Puter.js in the documentation.
Related
Free, Serverless AI and Cloud
Start creating powerful web applications with Puter.js in seconds!
Get Started Now