AI models with code execution: they run the code, not guess it
| # | AI model | Capabilities | API $/1M (in / out) | Context window | Price / mo | Output $/1M | Overview | Visit site |
|---|---|---|---|---|---|---|---|---|
| 21 | Claude Sonnet 4.5 Anthropic | $3 / $15 | 1M tokens | API only | 15 | View | ||
| 22 | Claude Haiku 4.5 Anthropic | $1 / $5 | 200K tokens | API only | 5 | View | ||
| 23 | Gemma 4 31B Google | $0.09 / $0.34 | 262.1K tokens | API only | 0.34 | View | ||
| 24 | GPT-5.4 OpenAI | $2.5 / $15 | 1.05M tokens | API only | 15 | View | ||
| 25 | GPT-5.3-Codex OpenAI | $1.75 / $14 | 400K tokens | API only | 14 | View | ||
| 26 | GPT-Realtime-2.1 OpenAI | $4 / $24 | 128K tokens | API only | 24 | View | ||
| 27 | GPT-Realtime-2.1 Mini OpenAI | $0.6 / $2.4 | 128K tokens | API only | 2.4 | View | ||
| 28 | Gemini 3.1 Flash-Lite Google | $0.25 / $1.5 | 1.05M tokens | API only | 1.5 | View | ||
| 29 | Gemini Omni Flash Google | $1.5 / $9 | API only | 9 | View | |||
| 30 | GPT-5.6 Luna Pro OpenAI | $0.2 / $1.2 | 1.05M tokens | API only | 1.2 | View | ||
| 31 | Gemma 4 26B A4B Google | $0.07 / $0.34 | 262.1K tokens | API only | 0.34 | View | ||
| 32 | Claude Opus 4.6 Anthropic | $5 / $25 | 1M tokens | API only | 25 | View | ||
| 33 | GPT-5.6 Sol Pro OpenAI | $2 / $10 | 1.05M tokens | API only | 10 | View | ||
| 34 | GPT-6 Astra Pro OpenAI | $10 / $50 | 1.05M tokens | API only | 50 | View | ||
| 35 | Claude Opus 4.7 Anthropic | $5 / $25 | 1M tokens | API only | 25 | View | ||
| 36 | GPT-5.2 OpenAI | $1.75 / $14 | 400K tokens | API only | 14 | View | ||
| 37 | GPT-5.6 Terra Pro OpenAI | $2 / $12 | 1.05M tokens | API only | 12 | View | ||
| 38 | GPT-5.1 OpenAI | $1.25 / $10 | 400K tokens | API only | 10 | View | ||
| 39 | Claude Opus 4.5 Anthropic | $5 / $25 | 200K tokens | API only | 25 | View | ||
| 40 | gpt-oss-safeguard-20b OpenAI | $0.075 / $0.3 | 131.1K tokens | API only | 0.3 | View |
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.
Models with this capability
The 47 models below all support this capability. Prices are input and output per 1M tokens from the vendor official price list; for dirhams multiply by 3.6725. Tap a card to open the model page.
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
Who this suits
Related filters
Frequently asked questions
Where does the code run?
Is sandbox time billed separately?
Why does it matter for analysis?
Can the sandbox reach the internet?
Which languages are supported?
Frequently searched
Rate this page
Help us improve