What Can You Build with KryonOS Cloud AI?
Artificial intelligence is becoming an important part of modern software, but bringing AI capabilities to microcontrollers is still a challenge. Developers often need to manage external APIs, handle network communication, process responses, and integrate everything with their hardware.
We wanted to make this process much simpler for developers building applications with KryonOS.
That's why we are developing KryonOS Cloud, a cloud platform designed to bring cloud-powered services directly into the KryonOS experience. It provides access to services such as KryonOS Cloud AI, KryonBeam, and cloud storage through a unified platform.
Currently, KryonOS Cloud is completely free for all users.
In this article, we will explore KryonOS Cloud AI, how it works, and what developers can actually build with it.
Introducing KryonOS Cloud AI
KryonOS Cloud AI connects JavaScript applications running on your ESP32 directly to the KryonOS Cloud Platform.
Instead of implementing complicated networking and API integrations yourself, you can use the built-in JavaScript APIs provided by KryonOS.
The AI engine currently offers several capabilities:
- Large Language Model integration
- Real-time token streaming
- Natural language processing
- Schema-constrained JSON extraction
- Image and vision analysis
- Custom system instructions and prompts
The interesting part is that you can use these capabilities directly inside your own KryonOS applications.
For example, you can create a chatbot, an intelligent hardware controller, a device monitoring dashboard, or even an AI-powered robotics application.
You are not limited to the built-in AI interface.
Getting Started with KryonOS Cloud AI
Before using the AI APIs, you need to connect your KryonOS device to KryonOS Cloud.
You can follow our setup guide here:
Once your device is connected, you can start using the AI directly from your JavaScript applications.
KryonOS provides the Kryon.ai API, which handles communication with the cloud platform.
Here are some of the capabilities available.
1. Real-Time AI Responses
With Kryon.ai.stream(), developers can receive AI-generated responses token by token as they are generated.
This is particularly useful for applications where you want to display responses immediately instead of waiting for the entire response to finish.
For example, you could build a chatbot that displays the AI response directly on the device screen.
Kryon.ai.stream({
prompt: "Give me 3 tips for battery conservation on ESP32.",
system: "You are a concise embedded systems assistant.",
onToken: function(token) {
System.print(token);
},
onComplete: function(fullText, usage) {
console.log("AI response completed.");
},
onError: function(error) {
console.error(error);
}
});This makes it possible to build responsive AI interfaces without needing to allocate large text buffers for the entire generated response.
2. Simple AI Requests
Sometimes you simply need to ask a question and receive a complete response.
The Kryon.ai.ask() API allows you to send a prompt and receive the generated answer.
var answer = Kryon.ai.ask("What is the speed of light?");
console.log(answer);You can also use its callback-based approach for handling responses asynchronously.
This is useful for applications that need explanations, recommendations, calculations, text generation, or intelligent assistance.
3. Structured Data Extraction
One of the most interesting features is Kryon.ai.extract().
AI does not always need to return a paragraph of text. Sometimes your application needs structured data that it can actually process.
For example, imagine an application receiving sensor information in an unstructured format:
var sensorData = "Room 101 status at 14:32 - Temperature reading is 23.4 Celsius, humidity 65%, fan active.";You can ask the AI to extract specific values and return them in a predefined structure.
Kryon.ai.extract({
prompt: "Extract temperature, humidity, and fan state.",
input: sensorData,
schema: {
temp_c: "number",
humidity_pct: "number",
fan_active: "boolean"
}
}, function(err, data) {
if (!err && data) {
console.log("Temperature:", data.temp_c);
console.log("Humidity:", data.humidity_pct);
console.log("Fan:", data.fan_active);
}
});Your application can then use the extracted values for dashboards, automation, monitoring, and other operations.
4. AI Vision
KryonOS Cloud AI also provides a vision API.
Using Kryon.ai.vision(), applications can submit image data for AI analysis.
This opens up possibilities for applications that can understand their visual environment.
For example:
- Identifying objects from camera images.
- Inspecting circuit boards for visible defects.
- Analyzing plants and identifying visible signs of disease.
- Recognizing products.
- Understanding screenshots and application interfaces.
- Building visual assistants that answer questions about images.
This is particularly interesting for developers experimenting with camera-equipped ESP32 devices.
What Can You Actually Build with KryonOS Cloud AI?
This is where things become interesting.
KryonOS is not just a platform for displaying AI-generated text. Its JavaScript APIs allow applications to interact with actual hardware.
Applications can work with GPIO, ADC, PWM, pulse measurement, I2C, storage, displays, touch input, system information, mathematics, 3D graphics, and other device capabilities.
When you combine these capabilities with cloud AI, you can build applications that understand natural language, analyze real-world information, and perform useful hardware operations.
Here are some practical examples.
1. Intelligent Hardware Control
Imagine controlling physical hardware using natural language.
Instead of manually configuring every setting, users could simply describe what they want.
AI Smart Home Controller
A user could type:
"Turn off all lights except the kitchen."
The application interprets the instruction, identifies the requested devices, and executes the corresponding operations through GPIO and connected relay modules.
AI Motor Controller
A user could simply say:
"Run the motor at 60% speed."
The AI interprets the request and returns the appropriate PWM configuration for the application to execute.
AI Robotics Controller
Developers could build robots that understand natural-language instructions and convert them into movement commands, servo positions, and other actions.
AI Lighting Designer
A user could request:
"Make my room look like a sunset."
The application could use AI-generated RGB values and brightness settings to configure connected LED strips.
AI Irrigation System
An intelligent irrigation application could analyze soil moisture and environmental readings, recommend watering schedules, and control a connected water pump.
Relevant APIs include:
System.gpio.digitalWrite()System.gpio.analogRead()System.gpio.analogWrite()System.gpio.pulseIn()
2. Intelligent Sensor Analysis
Sensors generate information, but understanding that information and identifying meaningful patterns can be more challenging.
KryonOS Cloud AI can help developers build applications that analyze sensor readings and explain what is happening.
Some possibilities include:
Environmental Intelligence
Analyze temperature, pressure, and humidity readings to identify environmental changes.
Motion Intelligence
Analyze accelerometer and gyroscope readings to identify unusual movement, falls, or vibrations.
Distance Intelligence
Understand distance measurements and help identify obstacles or approaching objects.
Power Intelligence
Analyze battery voltage, power consumption, and electrical readings to identify abnormal conditions.
Machine Diagnostics
Analyze vibration patterns and identify possible mechanical problems.
Safety Monitoring
Interpret gas, smoke, and other sensor readings to provide warnings when unusual conditions are detected.
For example, an application could collect 100 sensor readings, summarize the information, and send it to Kryon.ai.extract().
The AI could return structured results containing measurements, detected anomalies, and recommendations.
Relevant APIs include I2C, FastMath, and Kryon.ai.extract().
3. AI Vision and Camera Applications
Combining camera-equipped hardware with AI vision opens up another interesting category of applications.
Developers could build:
- Object recognition systems.
- Visual inspection tools for electronic circuits.
- Plant analysis applications.
- Product recognition systems.
- Barcode assistance where image input is available.
- Visual assistants that answer questions about captured images.
- Screen understanding applications that analyze the current interface.
For example, imagine pointing a camera at an electronic component and asking your application to explain what it is.
The application could submit the captured image to the vision API and display the AI-generated explanation.
4. AI Applications for T-Deck Plus and Handheld Devices
KryonOS also supports handheld devices such as the LilyGO T-Deck Plus, which makes AI-powered portable applications particularly interesting.
With its physical keyboard, trackball, display, speaker, and device APIs, developers have plenty of opportunities to experiment.
Here are some ideas:
| Application | What it could do |
|---|---|
| AI Voice Assistant | Generate spoken responses through audio output |
| AI Terminal | Understand commands and explain results |
| AI Messaging Assistant | Draft, summarize, and classify messages |
| AI Keyboard Assistant | Improve text and suggest responses |
| AI Navigation Assistant | Interpret GPS information and work with external navigation services |
| AI Radio Assistant | Explain received radio messages |
| AI Device Assistant | Answer questions about the current device |
| AI Sound Assistant | Generate suitable sound effects and melodies |
| AI Personal Assistant | Manage notes, reminders, and application workflows |
For example, a user could type:
"Analyze my device status and tell me if anything is wrong."
The application could collect device information such as memory, uptime, CPU details, and battery telemetry where supported. It could then send the information to KryonOS Cloud AI and display an explanation.
This turns a small handheld device into something much more capable than a traditional embedded interface.
5. AI-Powered Application Automation
This is one of the most interesting possibilities.
KryonOS applications can communicate with one another through IPC. This creates opportunities to build AI-powered workflows that connect multiple applications and hardware functions.
Imagine an AI assistant that can understand what you want and coordinate different applications to complete a task.
Some examples:
AI App Launcher
"Open my music player."
AI File Manager
"Find my latest saved configuration."
AI Device Manager
"Check the connected hardware."
AI Automation Builder
"Turn on the lights when the room becomes dark."
AI Dashboard Generator
Generate a dashboard based on the user's requirements.
AI Troubleshooter
Inspect system information and suggest possible solutions.
AI Configuration Assistant
Help users configure sensors and connected peripherals.
AI Workflow Builder
Convert natural-language instructions into multi-step application workflows.
With KryonOS IPC, applications can communicate, launch other applications, and exchange messages. This makes more advanced automation architectures possible.
6. AI Security and Device Intelligence
AI can also help developers build smarter monitoring and diagnostic applications.
Some possibilities include:
- Intelligent access-control interfaces.
- Unusual sensor activity detection.
- Device diagnostics.
- Connectivity and storage monitoring.
- Application error analysis.
- Predictive maintenance using historical measurements.
KryonOS also provides hardware cryptography APIs that can support secure authentication and encrypted device communications.
An important point here is that AI should not be responsible for bypassing security checks or independently authorizing sensitive hardware operations. Applications must retain control over authentication, permissions, and security validation.
7. AI-Powered Games and Interactive Experiences
AI is not limited to productivity and hardware control.
Developers can also experiment with AI-powered games and interactive applications.
Imagine games with:
- AI-generated NPC conversations.
- Dynamic missions and quests.
- Intelligent opponents.
- AI-generated stories and descriptions.
- Procedurally generated game content.
- AI-assisted puzzle generation.
- Adaptive difficulty based on player performance.
The combination of Kryon3D, FastMath, Kryon.ai, and local AI creates interesting opportunities for developers building interactive experiences on ESP32 hardware.
8. Combining Cloud AI with On-Device Local AI
KryonOS also supports on-device AI, which creates another interesting possibility.
You do not necessarily need to choose between Cloud AI and Local AI. They can complement each other.
Each approach has different strengths.
| Task | Suitable approach |
|---|---|
| Complex reasoning | Cloud AI |
| Natural-language instructions | Cloud AI |
| Advanced image understanding | Cloud AI |
| Detailed sensor analysis | Cloud AI |
| Lightweight local text generation | Local AI |
| Offline experimental image generation | Local AI |
| Lightweight local inference | Local AI |
For example, imagine a smart home application.
It could use local application logic to control lights even when the internet is unavailable. When connectivity is available, Cloud AI could handle more complex instructions and analyze larger amounts of information.
This combination makes it possible to build applications that benefit from both local processing and cloud intelligence.
How Does AI Actually Control Hardware?
There is one important architectural detail worth understanding.
KryonOS Cloud AI does not directly execute GPIO, PWM, or other hardware operations. Your JavaScript application remains responsible for controlling the device.
Consider this example:
A user requests:
"Set the fan speed to 50% and check the room temperature."
The process could work like this:
- The JavaScript application collects the current temperature from the connected sensor.
- It sends the user's instruction and relevant sensor information to KryonOS Cloud AI.
- The AI interprets the request and returns structured information or suggested actions.
- The application validates the response, permissions, and hardware limits.
- The application uses the appropriate hardware APIs to configure PWM and read the temperature.
- The results are displayed to the user.
This architecture gives developers flexibility while keeping actual hardware operations under application control.
Free AI Access for KryonOS Users
Currently, KryonOS Cloud AI is completely free to use.
Users receive approximately 100 AI credits per day under the current free allowance.
Another important aspect is how AI usage is managed.
When an application uses KryonOS Cloud AI, the usage is deducted from the connected user's account credits.
This means developers do not need to purchase and manage separate AI API credits for every person using their applications. Each user's usage is accounted for through their own KryonOS Cloud account.
You can also check connectivity, account pairing, and remaining AI credits through:
Kryon.ai.status()
This allows applications to display account status and available daily usage.
We want to keep KryonOS Cloud accessible to everyone. If you would like to support the development and help us maintain free cloud services for the community, you can support KryonOS here:
Start Building with KryonOS Cloud AI
We have only covered some of the possibilities here. The actual applications you can build depend on your creativity, the hardware you connect, and how you combine the available JavaScript APIs.
You can start by exploring the KryonOS JavaScript API documentation and experimenting with the Kryon.ai APIs inside your own applications.
Useful resources:
- KryonOS GitHub Repository
- KryonOS JavaScript API Guide
- KryonOS Cloud
- KryonOS Cloud Setup Guide
- Support KryonOS
Our Vision
We do not want KryonOS Cloud AI to be just another API for generating text.
Our goal is to give developers the ability to create intelligent applications that understand instructions, analyze real-world information, interact with connected hardware, and bring more advanced experiences to microcontrollers.
We believe ESP32 devices should be capable of much more than running simple embedded programs.
With KryonOS, developers can build graphical applications, interact with hardware through JavaScript, connect to cloud services, and experiment with both cloud-powered and on-device AI.
The possibilities are not limited to the examples in this article. They are limited by what developers can imagine and build.