Use OpenAI code interpreter with GPT-6.1 Terra

by OpenAICode execution

GPT-6.1 Terra 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.1 Terra

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

Where you can run it

GPT-6.1 Terra runs OpenAI code interpreter on the routes below.

ProviderRegionZero data retentionTrainingInputOutputCache read
USNo$1.00$5.00$0.05$1.25 write

The model

Visual reasoning, computer use, and clear writing.

Available on

Pricing from$1.00/ 1M input$5.00/ 1M output$0.05/ 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.1 Terra

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