Use OpenAI code interpreter with GPT-5.6 Luna

by OpenAICode execution

GPT-5.6 Luna uses OpenAI code interpreter through Opper on the Responses endpoint, passed through as OpenAI defines it.

UseOpenAI code interpreterwithin

Add OpenAI code interpreter to GPT-5.6 Luna

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/responses \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/gpt-5.6-luna",
"input": "Sum the first 50 primes and show your working.",
"tools": [{"type": "code_interpreter", "container": {"type": "auto"}}]}'

Where you can run it

GPT-5.6 Luna runs OpenAI code interpreter on the routes below. Its route also sells flex and priority processing: the same model at another price, picked per request with service_tier. How service tiers work.

ProviderRegionZero data retentionTrainingInputOutputCache read
USNo$0.20$1.20$0.02$0.25 write

The model

by OpenAI

GPT-5.6 Luna, the fast high-volume tier of OpenAI's GPT-5.6 family, handles classification, summarization, and bulk pipelines with 1M context.

Available on

Pricing from$0.20/ 1M input$1.20/ 1M output$0.02/ 1M cache read1.1Mcontext

Privacy

ZDR
Training
No
Region
Multi, EU, US

Use OpenAI code interpreter with other models

Step-by-step setup for OpenAI code interpreter on each of these models through Opper.

More tools on Opper

Use OpenAI code interpreter with GPT-5.6 Luna

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