Use Gemini code execution with Gemini 3.5 Flash-Lite

by GoogleCode execution

Gemini 3.5 Flash-Lite 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-Lite

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/gemini/gemini-3.5-flash-lite: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-Lite 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$0.30$2.50$0.03Not offered on this routeNot offered on this route
EUNo$0.33$2.75$0.03$0.41 writeNot offered on this route
USNo$0.30$2.50$0.03$0.38 write
MultiNo$0.30$2.50$0.03Not offered on this routeNot offered on this route
MultiNo$0.30$2.50$0.03$0.38 write

The model

by Google

Gemini 3.5 Flash Lite is Google's low-latency workhorse for high-volume automation, pairing 1M context with audio, video, and PDF understanding.

Available on

Pricing from$0.30/ 1M input$2.50/ 1M output$0.03/ 1M cache read1Mcontext

Privacy

ZDR
Training
No
Region
US, 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-Lite

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