Use OpenAI code interpreter with GPT-6 Sol

by OpenAICode execution

GPT-6 Sol 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-6 Sol

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-6-sol",
"input": "Sum the first 50 primes and show your working.",
"tools": [{"type": "code_interpreter", "container": {"type": "auto"}}]}'

Where you can run it

GPT-6 Sol 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$2.00$10.00$0.20$2.50 write

The model

by OpenAI

GPT-6 Sol, OpenAI's mid-tier GPT-6 model built for complex coding and agentic workflows, with a 1.05M-token context, image input and six reasoning effort levels.

Available on

Pricing from$2.00/ 1M input$10.00/ 1M output$0.20/ 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-6 Sol

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