onlinecompiler.io

Limits and usage

Each run gets 512 MB of memory, 2 CPUs, 16 processes (100 on Pro and above) and up to 30 seconds, with no network. Your account has a monthly allowance and per-minute, pending and running limits set by its plan, and GET /api/usage/ shows where you stand.

Code and stdin must be UTF-8 strings without NUL characters. Code is limited to 100,000 encoded bytes and stdin to 5 MB (5,242,880 bytes; 100 KB through the widget). Output floods exceeding 8 MB across both streams are stopped with exit code 153 (signal 25), while retained output stays capped at 64 KB per stream. HTTP 429 indicates account limits or execution capacity; wait the seconds in its Retry-After header before retrying, and back off further if it repeats (a spent monthly allowance sends no Retry-After). Timing and memory figures are informational and may be unavailable after a forced stop.

Memory512 MB per execution by default; a run may set memory_limit from 16 MB up to 512 MB on Free and Starter, and up to 2048 MB (2 GB) on Pro and above or with an exam tier: a higher one raises the sandbox's cap, a lower one is checked against the run's peak
CPU2 cores
Timeout30 seconds
Max Processes16 running at once on Free and Starter, 100 on Pro and Business or with an exam tier, 200 on Platform; more stops the run with exit code 71. Each process needs memory: past about 120 small ones a run also needs a memory_limit above 512 MB. GET /api/usage/ gives your account's number as max_processes
Writable Storage256 MB workspace + 128 MB temporary files, within the memory limit
Submission Rate60 per minute per account across API keys and widgets; higher on paid plans
Pending Submissions32 per account, queued or running; higher on paid plans
Runs at Once4 per account in a sandbox at the same moment; later runs wait their turn, and a synchronous request that finds them all busy gets 429 on Free; on paid plans it first waits up to 10 seconds for a free run, also when the service as a whole is busy, and queued runs start before free accounts' runs; higher on paid plans
Monthly Submissions100,000 per account on Free, up to 10,000,000 on paid plans and more on Enterprise (see pricing), per calendar month in UTC; refused requests and runs that fail on our side are not counted (see What counts toward your monthly runs, below)
Per-Key Monthly LimitOptional, set by you on each API key or widget key in the dashboard; stops that key only
NetworkDisabled (no outbound access); a test-suite run on run-tests has only its own 127.0.0.1
Code Size100 KB max
Input Size5 MB max per run or test (100 KB in the embeddable widget); an input over 64 KB is kept for download from the dashboard for 7 days after its last use
Request Size32 MB max per request to a run endpoint; past it the answer is 413. For many large tests, store them once in a problem
Command-line ArgumentsUp to 32 per run and 4,096 bytes in all; not for sqlite-3, duckdb-1.5 or erlang-29
OutputUp to 64 KB per stream; longer output is cut and truncated is true
Input FilesUp to 20 files and 1 MB in total per run, sent in the files field
Output FilesUp to 8 files and 2 MB per run, written to $OUTPUT_DIR (/tmp/outputs); png, svg, csv, json and txt come back, and files_truncated is true when some were left out
Output Files in Run TestsUp to 4 MB of files in one response, for visible tests only
Stored FilesA returned file's url works for 60 days; each account stores up to 1 GB, and past that url is null (the file is still in the response). Widget, WebSocket and RapidAPI runs store no files
Sync ConcurrencyLimited per server; returns 429 when at capacity
WebSocket Rate1 execution per second per connection

The memory a run reports includes the library files it maps, so a Python program that imports the whole data science stack reports about 430 MB while really using about 200 MB. A memory_limit is checked against that reported figure, so set it with headroom; see memory limit. Files and the stack are described in Files in and out.

What counts toward your monthly runs

Your plan's monthly runs count the programs we start for you. A program's own errors count, since it ran. If a run fails on our side, it doesn't count.

Counts, one run eachDoesn't count
  • A program that starts, whatever happens next: output, a compile error, a crash, or the time or memory limit
  • Each test in a run-tests call: 10 tests are 10 runs
  • A whole test suite, as one run however many tests it holds
  • Each Judge0 submission, one per item in a batch, Plain Text included
  • Each Piston and Jobe run, CodeRunner checks included
  • Widget runs, on the account that owns the widget key
  • A refused request: a limit's 429, an invalid request's 400 or 422, or a key used where it isn't allowed
  • A run that fails on our side: busy sandboxes, the job queue down, input files we could not store, or our sandbox failing during the run (the error is "Internal error: code execution failed")
  • Tests that never started: those after a compile error, after a failed test with stop_on_failure, or past the start cut-off

Every run, counted or not, stays on the dashboard's Runs page with its output or error. Refused requests are listed on the API keys page and in key.refused of GET /api/usage/.

Check limits and usage

GET /api/limits/ the limits above as JSON, file limits in bytes; no key needed
GET /api/usage/ your account's runs this month, its limits, and the calling key's own count, limit and refused requests; send your API key
GET /api/usage/
{
  "month": "2026-10",
  "submissions": 1520,
  "monthly_limit": 100000,
  "remaining": 98480,
  "resets_at": "2026-11-01T00:00:00Z",
  "submissions_per_minute": 60,
  "pending_submissions": 32,
  "running_submissions": 4,
  "max_memory_mb": 512,
  "key": {
    "submissions": 1200,
    "monthly_limit": 5000,
    "remaining": 3800,
    "refused": [
      {"day": "2026-10-14", "status": 429, "reason": "Submission rate limit exceeded.", "count": 12},
      {"day": "2026-10-09", "status": 400, "reason": "Unsupported or missing compiler", "count": 1}
    ]
  }
}

Over the monthly limit, runs answer HTTP 429 until the allowance resets at the start of the next month (UTC). What uses the allowance is listed in What counts toward your monthly runs. The dashboard shows the same count.

Refused requests are counted separately. key.refused lists the calling key's requests that were answered with an error status (400 and above: a limit's 429, an invalid request's 400 or 422, a key used where it isn't allowed, or a 500 on our side; the Jobe API's overload answer, outcome 21 with HTTP 200, counts as the 429 it is) in the last 30 days (UTC), one entry per day, status and reason with its count, newest day first. The reason is the error's first sentence with numbers and names masked, so one kind of refusal is one entry. The API keys page of the dashboard lists the same for every key of the account. A program that ran is never in it, even when it failed: those runs are on the dashboard's Runs page.

Service health

GET /api/health/ whether a run gets through right now; no key needed

A check reaches the database and sends a one-line Python program through the job queue into a real sandbox, the path widget and asynchronous runs take. It answers HTTP 200 when every check is ok and 503 otherwise, naming the check that failed: unreachable, timeout (no run within 20 seconds), busy (every sandbox stayed full) or failed. A report is reused for a minute, so checked_at can be up to a minute old; calling it costs no runs. Point an uptime monitor at it rather than at /api/ping/, which only shows the web server is up.

We watch it ourselves every three minutes: current status and past incidents are on status.onlinecompiler.io.

GET /api/health/
{
  "status": "ok",
  "checked_at": "2026-10-19T10:41:07.512345+00:00",
  "checks": {"database": "ok", "queue": "ok", "sandbox": "ok"},
  "run_seconds": 0.84
}

Per-key limits and usage emails

  • Give any API key or widget key its own monthly limit on the API keys or Widgets page of the dashboard. Once the key reaches it, runs through that key answer HTTP 429 (or a codeoutput error in the widget) until the next month; your other keys keep running. Use it to cap an AI agent, a public widget or a customer's integration.
  • A key's limit works inside your account's allowance, never above it. Leave it empty for no limit of its own.
  • The API keys and Widgets pages also show when each key was last used (an API call, an MCP call, or a widget connecting or embedding), to within a few minutes, so a key nothing uses any more can be found and disabled.
  • We email the account's address the first time in a month that usage reaches 80% and 100% of the account's allowance, and of each key's own limit.
  • In GET /api/usage/, key counts runs through the key you called with this month; its monthly_limit and remaining are null when the key has no limit. Calls through RapidAPI don't include key.

Questions

What happens when I reach a limit?
Requests over a limit get HTTP 429 and nothing runs, so nothing is billed. The error message names the plan that raises the limit, with a link to upgrade. A limit that clears by itself (per minute, pending, runs at once, busy sandboxes) also sends a Retry-After header with the seconds to wait before trying again. The monthly allowance resets at the start of the next month (UTC).
Can I limit a single API key?
Yes. Give any API key or widget key its own monthly limit in the dashboard. Once it's reached, that key gets 429 until the next month, and your other keys keep running.
Why does my data science program report more memory than it uses?
The memory field counts the library files a program maps as well as the memory it allocates. A hello world that imports the whole Python data stack reports about 430 MB while really using about 200 MB, so judge headroom by the 512 MB limit, not by the reported figure of a small program.
Do paid plans raise the limits per run?
Memory, yes: runs on Free and Starter get 512 MB, and runs on Pro and above (or with an exam tier) may ask for up to 2 GB with memory_limit. Every plan has the same 30 seconds, and a run on any plan may ask for less with memory_limit and time_limit; paid plans raise the runs a month, submissions a minute, runs at once and tests per request.