Muna helps you run AI models anywhere. Specifically:
  • AI Anywhere: Muna compiles and runs AI models for cloud, desktop, mobile, and web.
  • Zero dependencies: Muna compiles these models into self-contained binaries, meaning you can make predictions with zero dependencies.
  • Hardware acceleration: Muna is designed to use all available compute acceleration hardware (e.g. GPU, NPU) and instruction sets (e.g. CoreML, DirectML, CUDA).

Installing Muna

We provide SDKs for common development frameworks:
# Run this in Terminal
$ npm install muna
Most of our client SDKs are open-source. Star them on GitHub!

Making your First Prediction

First, head over to Muna to create an account and generate an access key. Now, let’s run the @fxn/greeting predictor which accepts a name and returns a friendly greeting:
import { Muna } from "muna"

// πŸ’₯ Create a Muna client
const muna = new Muna({ accessKey: "..." });

// πŸ”₯ Make a prediction
const prediction = await muna.predictions.create({
  tag: "@fxn/greeting",
  inputs: { name: "Yusuf" }
});

// πŸš€ Print the result
console.log(prediction.results[0]);
You should see a friendly greeting. Congrats on your first prediction πŸŽ‰