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
1

Claude Fable 5.1

Anthropic
Text & chatVisionReasoning
$10 / $501M tokensAPI only50View
2

GPT-6 Astra

OpenAI
Text & chatVisionReasoning
$10 / $501.05M tokensAPI only50View
3

GPT-6.1 Sol

OpenAI
Text & chatVisionReasoning
$2 / $101.05M tokensAPI only10View
4

GPT-6 Sol

OpenAI
Text & chatVisionReasoning
$2 / $101.05M tokensAPI only10View
5

GPT-6 Luna

OpenAI
Text & chatVisionReasoning
$0.1 / $0.51.05M tokensAPI only0.5View
6

Claude Opus 5

Anthropic
Text & chatVisionReasoning
$5 / $251M tokensAPI only25View
7

Claude Fable 5

Anthropic
Text & chatVisionReasoning
$10 / $501M tokensAPI only50View
8

GPT-5.6 Sol

OpenAI
Text & chatVisionReasoning
$4 / $201.05M tokensAPI only20View
9

GPT-5.6 Terra

OpenAI
Text & chatVisionReasoning
$2 / $121.05M tokensAPI only12View
10

Claude Opus 4.8

Anthropic
Text & chatVisionReasoning
$5 / $251M tokensAPI only25View
11

Gemini 3.8 Flash

Google
Text & chatVisionAudio
$0.75 / $3.751.05M tokensAPI only3.75View
12

Gemini 3.7 Flash

Google
Text & chatVisionAudio
$0.75 / $3.751.05M tokensAPI only3.75View
13

GPT-5.5

OpenAI
Text & chatVisionReasoning
$5 / $301.05M tokensAPI only30View
14

Claude Sonnet 5

Anthropic
Text & chatVisionReasoning
$2 / $101M tokensAPI only10View
15

GPT-5.6 Luna

OpenAI
Text & chatVisionReasoning
$0.2 / $1.21.05M tokensAPI only1.2View
16

Gemini 3.6 Flash

Google
Text & chatVisionAudio
$0.75 / $3.751.05M tokensAPI only3.75View
17

Claude Sonnet 4.6

Anthropic
Text & chatVisionReasoning
$3 / $151M tokensAPI only15View
18

GPT-5.4 Mini

OpenAI
Text & chatVisionReasoning
$0.75 / $4.5400K tokensAPI only4.5View
19

Gemini 3.5 Flash-Lite

Google
Text & chatVisionAudio
$0.3 / $2.51.05M tokensAPI only2.5View
20

GPT-5.4 Nano

OpenAI
Text & chatVisionReasoning
$0.2 / $1.25400K tokensAPI only1.25View

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