Tools Web

Calculators

OpenAI Code Interpreter Cost Calculator

Estimate OpenAI Containers (Hosted Shell / Code Interpreter) spend. Pick 1, 4, 16, or 64 GB ($0.03 / $0.12 / $0.48 / $1.92 per 20-minute session), enter sessions per month and duration. Billed per minute with a 5-minute minimum. Optionally overlay model input/output tokens. Estimates only; official OpenAI pricing prevails.

Math runs in your browser. Nothing is uploaded.

Optional model token overlay

Billable minutes per session
—

Container monthly USD
—

Overlay token USD
—

Monthly USD
—

Estimates only; official vendor pricing prevails (2026-10-30). Billable minutes = max(duration, 5). Container = sessions × (billable ÷ 20) × $/20-min. Official: 1 GB $0.03, 4 GB $0.12, 16 GB $0.48, 64 GB $1.92 per 20-min session.Official pricing: OpenAI

AI Agent Cost Calculator · OpenAI Token Cost Calculator · LLM API Cost Calculator · OpenAI Batch API Savings Calculator

How it works

How is Code Interpreter / container cost calculated?
Per session, billable minutes = max(duration, 5). Container cost = sessions × (billable minutes ÷ 20) × $/20-min rate. Official rates: 1 GB $0.03, 4 GB $0.12, 16 GB $0.48, 64 GB $1.92 per 20-minute session. Example: 100 sessions × 20 min × 4 GB → 100 × $0.12 = $12.
Is billing per minute or per session?
OpenAI bills Containers by the minute with a 5-minute minimum, using the published per-20-minute session price as the rate basis.
Can I add model token cost?
Yes. Optional overlay fields add input/output tokens × $/1M on top of container spend for a combined agent-tool estimate.
How does this relate to the AI agent calculator?
The agent page models multi-step tool loops and LLM tokens. This page isolates Hosted Shell / Code Interpreter container fees.
Are results billing-grade?
No. Estimates only; official OpenAI Tools → Containers pricing prevails.