Use Gemini code execution with Gemini 3.5 Flash

by GoogleCode execution

Gemini 3.5 Flash uses Gemini code execution through Opper on the generateContent endpoint, passed through as Google defines it.

UseGemini code executionwithin

Add Gemini code execution to Gemini 3.5 Flash

Set up with agents

Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.

Get your API key

In your code

curl "https://api.opper.ai/v3/compat/v1beta/models/vertexai/gemini-3.5-flash:generateContent" \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents": [{"role": "user", "parts": [{"text": "Sum the first 50 primes and show your working."}]}],
"tools": [{"codeExecution": {}}]}'

Where you can run it

Gemini 3.5 Flash runs Gemini code execution on the routes below. Some routes also sell flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
EUNo$1.65$9.90$0.17$1.73 writeNot offered on this route
MultiNo$1.50$9.00$0.15$1.58 write

The model

by Google

Gemini 3.5 Flash by Google pairs frontier-level intelligence with fast throughput and a 1M token context for agentic and coding tasks.

Available on

Pricing from$1.50/ 1M input$9.00/ 1M output$0.15/ 1M cache read1Mcontext

Privacy

ZDR
Training
No
Region
Multi, EU

Use Gemini code execution with other models

Step-by-step setup for Gemini code execution on each of these models through Opper.

More tools on Opper

Use Gemini code execution with Gemini 3.5 Flash

One key, 700+ models, a choice of region, and zero data retention. Tools run in the same request, with every call in your traces.

Get startedView Documentation