Judge0 alternatives in 2026: code execution APIs compared
Judge0 is the usual answer when you need to run other people's code for an online judge, a course or a coding assessment. It isn't the only option, and it isn't the cheapest. Here's how the hosted APIs compare on price, limits and judging, with the trade-offs of each.
Quick picks
- Judging built in (test cases, verdicts, custom checkers): Sphere Engine Problems, OnlineCompiler.io stored problems, or Judge0 for one expected output per submission. Building a LeetCode-style site or a contest? See how to build one on an online judge API.
- The most languages: JDoodle (114), OneCompiler (110+) or Judge0 CE (71 language versions).
- Self-hosting for free: Judge0 (GPL-3.0), Piston (MIT) or Codapi (Apache-2.0). How to self-host Judge0 covers the install; on WSL2, Docker Desktop or newer Ubuntu it fails on cgroup v2 (causes and workarounds). Piston's public API now answers 401: the fix. Choosing between the two engines: Piston vs Judge0.
- Judge0's own prices: every hosted plan, on judge0.com and RapidAPI, and what the same volume costs here.
- A large free tier and the lowest cost per run: OnlineCompiler.io, which also answers Judge0's API, so a Judge0 client moves by changing its base URL. Free tiers alone are compared in free code execution APIs.
At a glance
| Service | Free | Paid from | Languages | Time per run | Memory | Judging | Self-host | Official clients |
|---|---|---|---|---|---|---|---|---|
| OnlineCompiler.io | 100,000 runs a month | $10/month for 150,000 runs | 46 | 30 s, compile included | 512 MB by default; up to 2 GB per run on Pro and above with memory_limit, which can also lower it | Stored problems with hidden tests and custom checkers (/api/problems/), a verdict and score per test in one request (/api/run-tests/), a project's own pytest, Jest, JUnit, xUnit or NUnit suite as one run, with a PostgreSQL database on Pro (test suites), plus Judge0's expected output and batches through its Judge0-compatible API | Not needed: we run, patch and update it | Node.js and Python, MIT licensed on GitHub |
| Judge0 (hosted) | None at checkout (50 a day advertised) | $44.99/month on RapidAPI for 2,000 runs a day (€27 list price) | 71 (CE) | 5 s CPU default, up to 20 s | 256 MB default, up to 2 GB | Expected output, verdicts, batches of 20 | Yes, GPL-3.0 | Python and JavaScript, both pre-1.0 |
| Sphere Engine | 14-day trial | Quote only | 78 entries (about 56 languages) | 1–15 s run time, compile excluded (up to 60 s a test in Problems) | 1.5 GB | Test cases, verdicts, custom judges (Problems) | On request | PHP and Python (Python last released 2021); no Node.js |
| JDoodle | 20 runs a day | $10/month for 1,000 runs a day | 114 | Not published | Not published | No | No | None |
| OneCompiler | 100 credits to start | $1 for 2,000 credits | 110+ | Not published | Not published | No (batch stdin) | No | None |
| Codapi | 1,000 runs a month (cloud, no sign-up) | $5/month for 5,000 runs | 30+ sandboxes | Not published (cloud) | Not published (cloud) | No | Yes, Apache-2.0 | None for servers (a browser widget) |
| Piston | Public API closed | Self-host only | 84 | 3 s default, configurable | No limit by default | No | Yes, MIT | None (community wrappers) |
Judge0 pricing in 2026: every hosted plan
Judge0 sells hosted Judge0 two ways: its own shared cloud on judge0.com, in euros, and the same plans on RapidAPI, in dollars. Each plan is a daily quota, and every submission past it is charged. Prices as listed on 8 November 2026:
| Plan | Included | judge0.com | RapidAPI | Per 1,000 at full use |
|---|---|---|---|---|
| Basic (RapidAPI only) | No quota: every submission is charged | Not offered | $0.0017 a submission | $1.70 |
| Pro | 2,000 submissions a day (about 60,000 a month) | €27 a month | $44.99 a month | €0.45 or $0.75 |
| Ultra | 5,000 submissions a day (about 150,000 a month) | €54 a month | $89.99 a month | €0.36 or $0.60 |
| Mega | 10,000 submissions a day (about 300,000 a month) | €107 a month | $169.99 a month | €0.36 or $0.57 |
- Past the quota: €0.001 a submission on judge0.com and $0.0017 on RapidAPI. RapidAPI also charges $0.001 a MB once a month's traffic passes 10,240 MB, and lists batched submissions as their own line, with the same daily quota and price.
- Free hosted use is advertised, not sold. judge0.com's FAQ advertises 50 submissions a day at no cost on its Basic cloud plan, but none was offered at checkout when we checked, and RapidAPI's Basic charges from the first submission. The dependable free way to use Judge0 is to self-host it under GPL-3.0, on servers you pay for and keep patched.
A Judge0 submission is one run with one expected output, which is what one test is here, so the counts compare directly. The same volume on OnlineCompiler.io:
| Judge0 plan | Judge0 a month | OnlineCompiler.io plan | A month |
|---|---|---|---|
| Pro (2,000 a day) | €27 or $44.99 | Free (100,000 runs a month) | $0 |
| Ultra (5,000 a day) | €54 or $89.99 | Starter (150,000 runs a month) | $10 |
| Mega (10,000 a day) | €107 or $169.99 | Pro (1,000,000 runs a month) | $49 |
Our plans are monthly totals with no daily quota, so a deadline spike is fine as long as the month's total fits; instead, each plan has a per-minute rate (60 a minute on Free, 600 on Pro). Paid plans stop at their limit rather than charging for more, so a bill can't grow past the plan's price. See pricing.
What 300,000 runs a month costs on each service
A mid-sized course or assessment platform can easily run 10,000 submissions a day. At published prices, that's:
| Service | Plan | Monthly cost |
|---|---|---|
| OnlineCompiler.io | Pro (1,000,000 runs a month) | $49 |
| JDoodle | Business (10,000 runs a day) | $100 |
| Judge0 hosted | MEGA on RapidAPI (10,000 runs a day) | $169.99 (€107 list price on judge0.com) |
| OneCompiler | A $100 bundle (400,000 credits), if one run costs one credit; the API page doesn't say | About $100 |
| Sphere Engine | Custom | Quote |
| Piston or Judge0, self-hosted | Your own servers | Server costs plus upkeep |
Daily quotas matter too: Judge0's hosted plans and JDoodle count runs per day, so a deadline spike can hit the cap even when the monthly total is fine.
Judge0
The most widely used open-source option, and the one most "build an online judge" tutorials use.
- Strengths: judging built in (send
expected_outputand get a verdict such as Accepted or Wrong Answer), batches of up to 20 submissions, 71 language versions on CE plus 30 on Extra CE, and limits you can raise per submission (up to 2 GB and 20 s of CPU on the hosted CE instance). You can self-host it under GPL-3.0. Its free CE flavour runs R with 209 packages, tidyverse and ggplot2 among them (R image, checked 19 Oct 2026), which our R image does not have. - Trade-offs: hosted plans are daily quotas, from €27 a month on judge0.com or
$44.99 on RapidAPI for 2,000 runs a day (every plan).
Waiting for the result in one
request (
wait=true) is switched off on the official instance, so you submit and then poll or use a callback. Many CE language versions are old: Java tops out at JDK 17, Ruby at 2.7 and Haskell at GHC 8.8. The last open-source release is v1.13.1 from April 2024, which fixed three critical sandbox escapes. - Data science: the Extra CE flavour has "Python for ML" images, and a probe of its Python 3.14 image on 19 Oct 2026 found 198 packages, torch and transformers among them. It is a separate RapidAPI subscription from $44.99 a month, Judge0 publishes no package list for it, and importing that stack at the default 256 MB ended in Time Limit Exceeded, so it needs the 2 GB ceiling. Judge0 CE's Python is the standard library only. Plots come back as text only.
Sphere Engine
- Strengths: a mature judging product. The Problems module stores test cases, returns a verdict for each one, and supports custom judges, interactive problems and a problem widget. Runs get 1.5 GB of RAM, and the Compilers module returns up to 1 MB per output stream.
- Trade-offs: prices are quote-only. Problems returns at most 5 kB of stdout per test case, each run gets one core, and versions lag (Python 3.12, GCC 13.2, Go 1.22).
Full comparison: Sphere Engine alternative. Moving off the old Ideone API: Ideone API alternative.
JDoodle
- Strengths: 114 languages with current versions (Python 3.14, JDK 26, GCC 15), multi-file projects, a compile-only mode, WebSocket streaming, an embeddable IDE, and optional internet access on paid plans.
- Trade-offs: billing is in daily credits (20 free a day), and a WebSocket token, a multi-file upload or internet access each cost an extra credit. Per-run limits aren't published, and there's no judging.
Full comparison: JDoodle API alternative.
OneCompiler
- Strengths: 110+ languages, stdin up to 1,000,000 characters, and batch stdin: pass an array and the code runs once per input, which suits test cases.
- Trade-offs: the API page doesn't say how many credits a run costs or what the time, memory and output limits are. No judging.
Full comparison: OneCompiler API alternative.
Codapi
- Strengths: a small, simple sync API aimed at interactive docs and tutorials, open source under Apache-2.0, and an inexpensive cloud plan.
- Trade-offs: the cloud plan covers 5,000 runs a month and the vendor says pricing will probably change. No judging.
Piston
- Strengths: MIT-licensed, 84 languages, multi-file runs and command-line arguments, and per-request limits.
- Trade-offs: the public API at emkc.org has been whitelist-only since 15 February 2026, so for most projects it's self-host only. The public instance's versions are old (Python 3.10, Java 15). No judging. If you were on the public API, see moving off Piston.
OnlineCompiler.io
- Strengths: 100,000 free runs a month including commercial use, and $49 a month for 1,000,000. Current versions (Python 3.14, Java OpenJDK 25, Go 1.26, Rust 1.93
and more). 30 seconds and 2 CPUs per run.
Every run gets a fresh gVisor sandbox (a user-space kernel) with no network. One key works with a
sync endpoint, an async endpoint with callbacks, WebSocket, an embeddable editor, an MCP server, and
Judge0- and Piston-compatible endpoints; 67 of Judge0 CE's 71 language ids run, and
Extra CE's ids for the same languages (Python for ML among them) at the same base URL, with
command_line_argumentshonoured. Run-tests can also run async, with signed, retried webhooks and signed receipts you can verify offline, and a stored problem's earlier submissions can be re-judged after its tests change. - Data science: Python comes with numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow, duckdb, wordcloud, polars, pgmpy, nltk at published versions, plus a pandas 2 runtime, with CSV in and PNG out and the same price per run. See the code interpreter API. It is a fixed list with no GPU, no torch and no network.
- Starter code: the Node.js and Python clients, the MCP server and three starter apps are MIT licensed on GitHub: a LeetCode-style practice site (online-judge-starter), a React editor with a Run button, and a classroom autograder for GitHub Actions. The service itself is hosted only; you can't run it on your own servers.
- Where it falls short: 46 languages, fewer than Piston or JDoodle
offer. Output is kept up to
64 KB per stream (longer output is cut and flagged with
truncated), so tests with very large expected output need another approach. Judging goes further than Judge0's one expected output per submission: stored problems with hidden tests, versions and custom checkers, and run-tests (see the online judge guide), and a problem widget for your page. It has no interactive problems, runs get 512 MB of memory, and it's hosted only: there's no self-hosted version.
Moving from Judge0 to OnlineCompiler.io
Judge0 code keeps working: set its base URL to https://api.onlinecompiler.io/api/judge0 and send your
OnlineCompiler.io key in X-Auth-Token. The usual Judge0 flow (submit, get a token,
poll) runs unchanged:
// Judge0: submit, then poll until the status leaves In Queue (1) and Processing (2).
const b64 = (s) => Buffer.from(s).toString("base64");
const submit = await fetch(`${JUDGE0_URL}/submissions?base64_encoded=true`, {
method: "POST",
headers,
body: JSON.stringify({
language_id: 113, // Python 3.14.0
source_code: b64(code),
stdin: b64(input),
expected_output: b64(expected),
}),
});
const { token } = await submit.json();
let r;
do {
await new Promise((resolve) => setTimeout(resolve, 1000));
r = await (await fetch(`${JUDGE0_URL}/submissions/${token}?base64_encoded=true`, { headers })).json();
} while (r.status.id <= 2);
console.log(r.status.description); // "Accepted", "Wrong Answer", ...Or use the native API, with one request per test case and the result in the response:
// OnlineCompiler.io: one request per test case, then compare the output yourself.
async function judge(code, compiler, test) {
const res = await fetch("https://api.onlinecompiler.io/api/run-code-sync/", {
method: "POST",
headers: {
Authorization: process.env.ONLINECOMPILER_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ compiler, code, input: test.input }),
});
const r = await res.json();
if (r.exit_code === 124) return "Time Limit Exceeded";
if (r.exit_code === 137) return "Memory Limit Exceeded";
if (r.truncated) return "Output Limit Exceeded";
if (r.status !== "success") return "Runtime or Compilation Error"; // details in r.error
return r.output.trim() === test.expected.trim() ? "Accepted" : "Wrong Answer";
}
console.log(await judge(code, "python-3.14", { input: "21", expected: "42" }));Language ids map like this. For what carries over, statuses, callbacks and batches, see the full Judge0 migration guide; for how each call works, with examples, the Judge0 API guide.
Judge0 language_id | Judge0 version | compiler | Version |
|---|---|---|---|
| 113 | Python (3.14.0) | python-3.14 | Python 3.14 |
| 103 | C (GCC 14.1.0) | gcc-15 | C GCC 15 |
| 105 | C++ (GCC 14.1.0) | g++-15 | C++ G++ 15 |
| 91 | Java (JDK 17.0.6) | openjdk-25 | Java OpenJDK 25 |
| 51 | C# (Mono 6.6.0.161) | dotnet-csharp-10 | C# .NET SDK 10 |
| 87 | F# (.NET Core SDK 3.1.202) | dotnet-fsharp-10 | F# .NET SDK 10 |
| 107 | Go (1.23.5) | go-1.26 | Go 1.26 |
| 108 | Rust (1.85.0) | rust-1.93 | Rust 1.93 |
| 98 | PHP (8.3.11) | php-8.5 | PHP 8.5 |
| 72 | Ruby (2.7.0) | ruby-4.0 | Ruby 4.0 |
| 61 | Haskell (GHC 8.8.1) | haskell-9.12 | Haskell GHC 9.12 |
| 101 | TypeScript (5.6.2) | typescript-deno | TypeScript Deno |
| 102 | JavaScript (Node.js 22.08.0) | nodejs-24 | JavaScript Node.js 24 |
| 82 | SQL (SQLite 3.27.2) | sqlite-3 | SQL SQLite 3 |
| 46 | Bash (5.0.0) | bash-5.2 | Bash 5.2 |
| 59 | Fortran (GFortran 9.2.0) | gfortran-15 | Fortran gfortran 15 |
| 84 | Visual Basic.Net (vbnc 0.0.0.5943) | dotnet-vbnet-10 | Visual Basic .NET SDK 10 |
| 111 | Kotlin (2.1.10) | kotlin-2.4 | Kotlin 2.4 |
| 99 | R (4.4.1) | r-4.6 | R 4.6 |
| 83 | Swift (5.2.3) | swift-6.4 | Swift 6.4 |
| 77 | COBOL (GnuCOBOL 2.2) | gnucobol-3.2 | COBOL GnuCOBOL 3.2 |
| 85 | Perl (5.28.1) | perl-5.44 | Perl 5.44 |
| 67 | Pascal (FPC 3.0.4) | fpc-3.2 | Pascal Free Pascal 3.2 |
| 66 | Octave (5.1.0) | octave-11 | Octave 11 |
| 45 | Assembly (NASM 2.14.02) | nasm-3 | Assembly NASM 3 |
| 64 | Lua (5.3.5) | lua-5.5 | Lua 5.5 |
| 65 | OCaml (4.09.0) | ocaml-5.4 | OCaml 5.4 |
| 55 | Common Lisp (SBCL 2.0.0) | sbcl-2.6 | Common Lisp SBCL 2.6 |
| 58 | Erlang (OTP 22.2) | erlang-29 | Erlang OTP 29 |
| 57 | Elixir (1.9.4) | elixir-1.20 | Elixir 1.20 |
| 69 | Prolog (GNU Prolog 1.4.5) | swipl-10 | Prolog SWI-Prolog 10 |
| 56 | D (DMD 2.089.1) | ldc-1.43 | D LDC 1.43 |
| 47 | Basic (FBC 1.07.1) | fbc-1.10 | FreeBASIC 1.10 |
| 90 | Dart (2.19.2) | dart-3.13 | Dart 3.13 |
| 86 | Clojure (1.10.1) | clojure-1.12 | Clojure 1.12 |
| 88 | Groovy (3.0.3) | groovy-6.0 | Groovy 6.0 |
| 112 | Scala (3.4.2) | scala-3.10 | Scala 3.10 |
| 79 | Objective-C (Clang 7.0.1) | clang-objc-21 | Objective-C Clang 21 |
Frequently asked questions
Is Judge0 free?
Self-hosting is: Judge0 is open source under GPL-3.0, and you run the servers. judge0.com's FAQ advertises a Basic cloud plan with 50 submissions a day at no cost, but none was offered at checkout when we checked. RapidAPI's Basic plan charges $0.0017 a submission from the first one, and the monthly plans start at $44.99 for 2,000 submissions a day; judge0.com sells the same quota for €27 a month.
How much does Judge0 cost?
Judge0's hosted plans are daily quotas: Pro is 2,000 submissions a day for €27 a month on judge0.com or $44.99 on RapidAPI, Ultra is 5,000 submissions a day for €54 a month on judge0.com or $89.99 on RapidAPI, Mega is 10,000 submissions a day for €107 a month on judge0.com or $169.99 on RapidAPI. Each submission past the quota costs €0.001 or $0.0017 (prices listed on 8 November 2026). Self-hosting costs nothing but your servers and your time.
Can I still buy Judge0 pay-per-use on Sulu?
No. Sulu, the marketplace that sold Judge0's hosted API by the request, shut down in November 2025, and Judge0's maintainer said a pay-per-use plan would not be offered there until a new platform was found (Judge0 issue #572 on GitHub). Judge0's hosted plans are now sold on judge0.com and RapidAPI as daily quotas. OnlineCompiler.io's Judge0-compatible endpoint takes the same requests on its own plans, free up to 100,000 runs a month.
Is Judge0 secure?
Judge0 sandboxes code with isolate. Three critical sandbox-escape vulnerabilities (CVE-2024-28185, CVE-2024-28189 and CVE-2024-29021) were fixed in version 1.13.1 in April 2024, so self-hosted installs must run 1.13.1 or later.
Which Judge0 alternatives have built-in judging?
Sphere Engine Problems has stored test cases, a verdict for each, and custom judges, plus interactive problems and a problem widget. Judge0 itself compares one expected output per submission. OnlineCompiler.io does the same through its Judge0-compatible API, and also judges natively: stored problems keep the tests (hidden by default), versions, hidden drivers and custom checkers on the server, and you judge code by problem id with signed receipts; or one POST /api/run-tests/ request runs a program against the tests you send and returns a verdict for each, an overall verdict and a score. It also runs a project's own pytest, Jest, JUnit, xUnit or NUnit test suite as one run. Its widget shows a stored problem in your page, with Submit through a session your server creates. It has no interactive problems. JDoodle, OneCompiler, Codapi and Piston run code and return the output; you compare it yourself.
Can Judge0 run JUnit or pytest tests?
Not out of the box. Judge0 compares a program's output with one expected output; to run a test framework you write your own run script for a multi-file submission and install the framework yourself. OnlineCompiler.io runs a project's own pytest, Jest, Mocha, node:test, JUnit, xUnit or NUnit suite through POST /api/run-tests/ and returns every test by name, as one run. On Pro and above, the suite can also start a fresh PostgreSQL database in the sandbox, seeded from your .sql files, for tests that need one. Sphere Engine grades unit-test reports only in its separate Containers product.
Is there a free Judge0 alternative?
Yes. OnlineCompiler.io gives 100,000 runs a month free, commercial use included, and answers Judge0's own API, so a Judge0 client moves by changing its base URL. Codapi's cloud gives 1,000 runs a month without sign-up. Piston and Judge0 themselves are free to self-host, but you pay for and run the servers.
What is the cheapest hosted Judge0 alternative?
At published prices, OnlineCompiler.io: 100,000 runs a month are free, and paid plans start at $10 a month for 150,000. The free tier allows commercial use.
Should I use an AI sandbox such as E2B or Modal instead?
Those are built for AI agents that need long-lived machines with package installs, files and network access, and they bill by running time. For short, stateless runs against test cases, a code execution API is simpler and usually far cheaper.