The pricing on this is a bit confusing. Does each execution of an agent session create a new environment? And is that environment then billed for at least a full hour (despite prices being quoted per 20 minutes), after which it naturally expires? Is there a way to deliberately shut down an environment so you don't have to keep paying for it?

Looks like you can opt-out of having an environment via

`environment.type: "none"`

When there is an environment, my impression is it's a floor of 5 minutes at that 1 GB @ $0.03/20 min rate. So $0.0015/minute * 5 minutes = $0.0075 minimum charge per activated environment.

https://developers.openai.com/api/docs/guides/agents-api/ses... https://developers.openai.com/api/docs/pricing#built-in-tool...