Logo

AI Models with Code Execution Support

This page lists Large Language Models that offer Code Execution. Compare models, see how they implement this feature, and find the best option for projects requiring robust Code Execution.

Providers

Google
OpenAI
Google

Models with this Capability

Gemini 2.0 Flash

Google · Gemini

Current

Input

1M tokens

Output

0 tokens

Input Cost

$0.10/1M

Output Cost

$0.40/1M

Exceptional at:

instruction following
multimodal input
long context
vision
+14

computer-use-preview

OpenAI · Computer Use Preview

preview

Input

0 tokens

Output

0 tokens

Input Cost

$3.00/1M

Output Cost

$12.00/1M

Exceptional at:

system interaction
task automation
+1
tool use
code execution

Gemini 1.5 Pro

Google · Gemini

Current

Input

2M tokens

Output

0 tokens

Input Cost

$1.25/1M

Output Cost

$5.00/1M

Exceptional at:

long context processing
complex reasoning
+1
multimodal input
long context
structured output
+8