aicoolies logo
ONNX Runtime logo
ONNX Runtime logo

ONNX Runtime

Cross-platform high-performance ML inference engine

open sourceupdated May 23, 2026

ONNX Runtime is Microsoft's open-source inference engine for machine learning models in ONNX format. It delivers cross-platform acceleration via execution providers for NVIDIA CUDA, TensorRT, DirectML, CoreML, OpenVINO, and more. Supports training acceleration, quantization, and GenAI workloads. Used in production across Windows, Azure, Office 365, and thousands of applications with pip-installable Python and native C++/C#/Java APIs.

ONNX Runtime is the industry-standard inference engine for running machine learning models across platforms and hardware. With over 15,000 GitHub stars and MIT license, it serves as the backbone for ML inference in Microsoft products including Windows, Office 365, Azure Cognitive Services, and Xbox, processing billions of inferences daily. The engine accepts models in ONNX format — an open interchange standard supported by PyTorch, TensorFlow, scikit-learn, and virtually every ML framework — and optimizes them for the target hardware through execution providers.

The execution provider architecture is ONNX Runtime's key differentiator, offering hardware-specific acceleration without code changes. Providers include NVIDIA CUDA and TensorRT for GPU inference, DirectML for Windows GPU, CoreML for Apple devices, OpenVINO for Intel hardware, QNN for Qualcomm, XNNPACK for mobile CPUs, and WebGPU/WebAssembly for browser deployment. This means a single model can run optimally on cloud GPUs, edge devices, browsers, and mobile phones. The onnxruntime-genai package extends support to generative AI workloads with features like KV cache management and beam search.

ONNX Runtime is installable via pip with a single command and provides APIs in Python, C++, C#, Java, JavaScript, and Objective-C. It supports both inference optimization and training acceleration through features like mixed-precision training and gradient graph optimizations. Quantization tools enable INT8 and INT4 model compression for edge deployment. For organizations deploying ML models across heterogeneous hardware environments, ONNX Runtime provides the portable, high-performance runtime that eliminates vendor lock-in while delivering near-native speed on each platform.

Pricing

Free and open-source (MIT license)

Platforms

Python/C++/C#/Java — all major platforms and hardware

Categories

Tags

Use Cases

ExecuTorch logo

ExecuTorch

PyTorch on-device AI for mobile and edge devices

ExecuTorch is PyTorch's official solution for deploying AI models on mobile, embedded, and edge devices. It features a 50KB base runtime, 12+ hardware backends including Apple CoreML, Qualcomm QNN, ARM, and Vulkan, and native PyTorch export without format conversions. Powers Meta's on-device AI across Instagram, WhatsApp, Quest 3, and Ray-Ban Smart Glasses, supporting LLMs, vision, speech, and multimodal models.

Open Source
TensorFlow Lite logo

TensorFlow Lite

Google's lightweight ML framework for mobile and embedded

TensorFlow Lite is Google's lightweight ML framework for deploying models on mobile and embedded devices. It supports quantization, GPU/NPU delegation, and runs on Android, iOS, Linux, and microcontrollers. Provides pre-trained models, model conversion tools from TensorFlow and JAX, and hardware acceleration via GPU, Hexagon DSP, and CoreML delegates. Powers on-device ML in billions of Google app installations.

Open Source
OpenVINO logo

OpenVINO

Intel's open-source AI inference optimization toolkit

OpenVINO is Intel's open-source toolkit for optimizing and deploying AI inference across CPUs, GPUs, and NPUs. It supports models from PyTorch, TensorFlow, ONNX, and TFLite, providing graph optimizations, quantization, and hardware-specific acceleration. The toolkit includes a GenAI API for LLM deployment and runs on Intel, ARM, and x86 platforms for edge, desktop, and cloud inference workloads.

Open Source
MLC LLM logo

MLC LLM

Run LLMs natively on any device with ML compilation

MLC LLM is an open-source engine for deploying large language models natively across diverse platforms using machine learning compilation. It runs models on NVIDIA/AMD GPUs, Apple Silicon, mobile devices, and browsers via WebGPU without cloud dependencies. Features include OpenAI-compatible API, quantization support, and optimized backends for CUDA, Metal, Vulkan, and WebAssembly.

Open Source

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

KTransformers parent kvcache-ai logo

KTransformers

Heterogeneous CPU-GPU inference and SFT for large MoE models

Open-source framework for running and fine-tuning large Mixture-of-Experts models with heterogeneous CPU-GPU execution, optimized kernels, limited VRAM and SGLang or LLaMA-Factory integrations.

Open Source
Hugging Face logo

Text Embeddings Inference

Hugging Face's open-source inference server for embeddings, rerankers, and classifiers

Text Embeddings Inference is Hugging Face's Apache-2.0 server for high-throughput embedding, reranking, and sequence-classification models. TEI packages token-based dynamic batching, optimized Transformers kernels, Safetensors loading, OpenAI-compatible embedding endpoints, Prometheus metrics, and configurable OpenTelemetry tracing in deployable CPU and GPU images.

Open Source
LMDeploy logo

LMDeploy

Open-source toolkit for quantizing, deploying, and serving LLMs and vision-language models

LMDeploy is an Apache-2.0 toolkit for self-hosting LLM and vision-language model inference with TurboMind and PyTorch engines. It combines continuous batching, blocked KV cache, tensor parallelism, AWQ and KV-cache quantization with OpenAI-compatible APIs, multi-GPU distribution, offline pipelines, and production metrics.

Open Source
Sakana Fugu logo

Sakana Fugu

Multi-agent model API that orchestrates frontier models behind one OpenAI-compatible endpoint

Sakana Fugu is a hosted model-provider API that exposes a learned multi-agent system as one OpenAI-compatible model. It dynamically routes coding, code review, research, and reasoning tasks across a frontier-model pool, with Fugu for lower-latency work and Fugu Ultra for harder workloads where answer quality matters more than cost or speed.

paidTelemetry
ElevenLabs logo

ElevenLabs

Lifelike AI voice generation, cloning, and voice agents

ElevenLabs is an AI voice platform for text-to-speech, voice cloning, and conversational AI agents, built on models like Multilingual v2 and the low-latency Flash v2.5 and Turbo v2.5. Developers call its API to generate lifelike narration, clone voices from short audio samples, dub content across 30+ languages, add sound effects, and deploy real-time voice agents for customer service, IVR, and interactive apps, with SDKs for Python, JavaScript, and more.

freemium
xAI Python SDK logo

xAI Python SDK

Official Python SDK for the xAI API

The xAI Python SDK is the official Python client for the xAI API, giving developers a direct way to build Grok-powered apps without relying on community proxies or unofficial wrappers. It supports synchronous and asynchronous Python clients for chat completions, streaming responses, function/tool calling, and multimodal workflows, making it a clean fit for backend services, agents, notebooks, and developer tools that need programmatic xAI access.

Open Source

FAQ

What is ONNX Runtime?

ONNX Runtime is Microsoft's open-source inference engine for machine learning models in ONNX format. It delivers cross-platform acceleration via execution providers for NVIDIA CUDA, TensorRT, DirectML, CoreML, OpenVINO, and more. Supports training acceleration, quantization, and GenAI workloads. Used in production across Windows, Azure, Office 365, and thousands of applications with pip-installable Python and native C++/C#/Java APIs.

Is ONNX Runtime free?

Yes — ONNX Runtime is open source and free to use. Free and open-source (MIT license)

Is ONNX Runtime open source?

Yes — ONNX Runtime is open source.

What are the best ONNX Runtime alternatives?

The top editor-verified ONNX Runtime alternatives are ExecuTorch, TensorFlow Lite, OpenVINO, and more.