AI models with code execution: they run the code, not guess it

Code execution
Services found: 47
#AI modelCapabilitiesAPI $/1M (in / out)Context windowPrice / moOutput $/1MOverviewVisit site
41

GPT-5.2-Codex

OpenAI
Text & chatVisionCoding
$1.75 / $14400K tokensAPI only14View
42

GPT-5.1-Codex-Mini

OpenAI
Text & chatVisionCoding
$0.25 / $2400K tokensAPI only2View
43

GPT-5.1-Codex

OpenAI
Text & chatVisionCoding
$1.25 / $10400K tokensAPI only10View
44

GPT-5.5 Pro

OpenAI
Text & chatVisionReasoning
$30 / $1801.05M tokensAPI only180View
45

GPT-5.1-Codex-Max

OpenAI
Text & chatVisionCoding
$1.25 / $10400K tokensAPI only10View
46

GPT Audio Mini

OpenAI
Text & chatAudioStructured JSON output
$0.6 / $2.4128K tokensAPI only2.4View
47

GPT-5.4 Pro

OpenAI
Text & chatVisionReasoning
$30 / $1801.05M tokensAPI only180View

Browse by need

Forty-seven models can run code in a vendor-hosted sandbox while producing an answer - doing arithmetic properly, parsing an uploaded file, plotting a chart, testing a snippet before returning it. The sandbox is the vendor, so there is nothing to provision on your side.

Anthropic, OpenAI and Google all offer it, with output from $0.34 to $50 per million tokens. Sandbox time is billed separately from tokens, so check both meters before estimating cost. The capability matters most for data analysis: a model that calculates in a sandbox is reliably right, while a model calculating in its head is confidently approximate.

Computed, not guessedArithmetic and data work run in a real interpreter instead of being predicted.
Two metersTokens and sandbox time are billed separately; estimate both.
Files in, charts outThe sandbox can parse uploads and return generated images.

Models with this capability

How to choose

  • Use it for anything numerical — model arithmetic remains unreliable without execution.
  • Check sandbox limits: memory, runtime and whether network access is available.
  • Watch session billing; short-lived containers are cheaper than long idle ones.
  • Validate outputs the same way you would validate a junior analyst.

Common mistakes

Trusting mental mathsA model without a sandbox will produce confident, wrong totals.
Leaving sessions openIdle containers bill by the minute on some platforms.

Who this suits

AnalyticsAd-hoc questions over uploaded spreadsheets.
FinanceCalculations that must be reproducible and checkable.
EngineeringTesting snippets before they reach a pull request.

Frequently asked questions

Where does the code run?

In a sandbox hosted by the vendor. Nothing to provision on your side.

Is sandbox time billed separately?

Yes. OpenAI charges per container session, Anthropic grants a monthly free allowance. Check both meters when estimating.

Why does it matter for analysis?

A model that calculates in a sandbox is reliably right; a model calculating in its head is confidently approximate.

Can the sandbox reach the internet?

Usually not by default — that is a deliberate safety boundary.

Which languages are supported?

Python dominates across vendors; some add shell access.

Frequently searched

Ratings 0

Avg. score 0

Rate this page

Help us improve